@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap");

:root {
    --bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

* {
    font-family: var(--bs-font-sans-serif);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h2 {
    color: #1e2022;
    font-size: 32px;
    font-weight: 500;
    padding-bottom: 15px;
}

.head h2 {
    padding-bottom: 20px;
}

h2>a {
    font-weight: 700;
    text-decoration: none !important;
}

a {
    color: #0d6efd;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.input-field {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    margin-bottom: 20px;
}

.icon-log {
    position: absolute;
    top: 14px;
    left: 10px;
    background-color: transparent !important;
    color: #007bff;
    border: none;
    z-index: 10;
    font-size: 20px;
}

.icon-log:nth-child(3) {
    right: 10px !important;
    left: auto !important;
}

main#login-form-data,
#forgot-form-data,
#reset-form-data {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.form-control {
    display: block;
    width: 100%;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #1e2022;
    background-color: transparent;
    background-clip: padding-box;
    border: none;
    border-bottom: 1px solid #eeeeff;
    border-radius: 0;
    height: 50px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    appearance: none;
}

.form-control:focus {
    color: #212529;
    background-color: #fff;
    border-color: #0d6efd;
    outline: 0;
}

/* Placeholder styling */
.form-control::placeholder {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.col {
    padding: 20px;
    width: 80%;
}

.container {
    width: 100%;
    padding: 0px 45px;
    margin: auto;

}

.row {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
}

#login-bg-side {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    position: relative;
    top: 0;
    right: 0;
    background-image: url("../images/HRMS_page_1.webp");
    background-size: cover;
    background-position: center;
}

#login-bg-side .overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.3);
}

#forgot-bg-side {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    position: relative;
    top: 0;
    right: 0;
    background-image: url("../images/HRMS_page_1.webp");
    background-size: cover;
    background-position: center;
}

#forgot-bg-side .overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.3);
}

#reset-bg-side {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    position: relative;
    top: 0;
    right: 0;
    background-image: url("../images/background1.jpg");
    background-size: cover;
    background-position: center;
}

#reset-bg-side .overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 123, 255, 0.3);
}

.btn {
    display: inline-block;
    font-weight: 600;
    line-height: 1.5;
    color: #212529;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 8px 25px;
    font-size: 14px;
    border-radius: 5px;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn-primary {
    color: #fff;
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #0b5ed7;
}

.form-inner {
    display: flex;
    align-items: end;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo-icon img {
    width: 100%;
    max-width: 40px;
}

.forgot-pass {
    font-size: 14px;
    line-height: 24px;
}

p {
    font-size: 14px;
    line-height: 24px;
    text-align: left;
    padding-bottom: 10px;
}

.far {
    cursor: pointer;
}

.error {
    border-bottom: 1px solid red;
}

.footer-text p {
    padding-top: 40px;
    text-align: center;
}

@media screen and (max-width:991px) {

    div#login-bg-side,
    #forgot-bg-side,
    #reset-bg-side {
        display: none;
    }

    .container {
        padding: 0px;
    }

    h2 {
        font-size: 28px;
    }

    p {
        font-size: 12px;
        line-height: 22px;
        text-align: left;
    }

    .footer-text p {
        padding-top: 20px;
    }
}

.alert {
    position: fixed;
    top: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    z-index: 99999;
    color: #fff;
    font-size: 1.2rem;
    width: 100%;
    max-width: 100%;
    font-weight: 400;
    text-align: center;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
    padding: 1.6rem 1rem;
    -webkit-box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.25);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.25);
}

.alert--success {
    background-color: #20bf6b;
}

.alert--error {
    background-color: #eb4d4b;
}



/* HTML: <div class="loader"></div> */
.overlay {
    position: fixed;
    display: none;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    cursor: pointer;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid #FFF;
    border-radius: 50%;
    display: inline-block;
    z-index: 999;
    position: absolute;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    right: 50%;
    top: 50%;
}

.loader::after {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-bottom-color: #FF3D00;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ============================================================
   PREMIUM OTP 2FA VERIFICATION STYLES
   ============================================================ */

#loginOtpSection {
    animation: fadeInOtp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 10px 0;
}

.otp-card-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 24px;
}

.otp-shield-icon {
    width: 68px;
    height: 68px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 50%, #eff6ff 100%);
    border: 2px solid #bfdbfe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    font-size: 34px;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.2), 0 0 0 8px rgba(219, 234, 254, 0.5);
    animation: pulseIcon 2.5s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% {
        box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.2), 0 0 0 8px rgba(219, 234, 254, 0.4);
    }
    50% {
        box-shadow: 0 12px 28px -4px rgba(37, 99, 235, 0.3), 0 0 0 12px rgba(219, 234, 254, 0.15);
    }
}

.otp-title {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    margin: 0 0 8px 0 !important;
    padding: 0 !important;
    letter-spacing: -0.4px;
}

.otp-subtitle {
    font-size: 13.5px !important;
    color: #64748b !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.6 !important;
    text-align: center !important;
}

.otp-email-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 5px 14px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    color: #1e293b;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.otp-email-chip i {
    color: #0284c7;
    font-size: 15px;
}

/* 6-Digit OTP Box Grid */
.otp-boxes-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 26px 0;
}

.otp-box {
    width: 50px;
    height: 58px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background-color: #f8fafc;
    color: #0f172a;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
    caret-color: #2563eb;
    -moz-appearance: textfield;
}

.otp-box::-webkit-outer-spin-button,
.otp-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.otp-box:focus {
    background-color: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15), 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-2px);
}

.otp-box.filled {
    border-color: #93c5fd;
    background-color: #ffffff;
    color: #1e3a8a;
}

.otp-box.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    color: #b91c1c !important;
    animation: shakeBox 0.4s ease-in-out;
}

.otp-divider {
    color: #cbd5e1;
    font-size: 22px;
    font-weight: 600;
    user-select: none;
    margin: 0 2px;
}

/* Verify CTA Button */
.btn-verify-submit {
    width: 100%;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 600;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    letter-spacing: 0.3px;
}

.btn-verify-submit:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    transform: translateY(-1px);
}

.btn-verify-submit:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

/* Bottom Navigation */
.otp-footer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #f1f5f9;
}

.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 500;
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s ease;
    cursor: pointer;
}

.btn-back-link:hover {
    color: #0f172a;
    text-decoration: none;
}

.otp-timer-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 5px 12px;
    border-radius: 20px;
    font-variant-numeric: tabular-nums;
}

.otp-timer-badge i {
    font-size: 14px;
    color: #f59e0b;
}

.btn-resend-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13.5px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    transition: all 0.15s ease;
    cursor: pointer;
}

.btn-resend-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

@keyframes fadeInOtp {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shakeBox {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-4px); }
    40%, 80% { transform: translateX(4px); }
}

/* Mobile Responsiveness */
@media screen and (max-width: 480px) {
    .otp-box {
        width: 42px;
        height: 50px;
        font-size: 20px;
        border-radius: 8px;
    }
    .otp-boxes-group {
        gap: 5px;
    }
    .otp-shield-icon {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }
    .otp-title {
        font-size: 22px !important;
    }
}

