* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Arial, sans-serif;
    /* background: #12385d; */
}

button,
input {
    -webkit-tap-highlight-color: transparent;
}

/* =====================================================
   PAGE
===================================================== */

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;
    align-items: center;

    position: relative;
    overflow: hidden;

    padding: 35px 20px 25px;

    background-image:
        linear-gradient(rgb(255 255 255 / 82%), rgb(56 66 78 / 88%)), var(--auth-bg-image);

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}



/* =====================================================
   BRANDING
===================================================== */

.auth-brand {
    text-align: center;

    color: white;

    position: relative;
    z-index: 2;

    margin-bottom: 26px;
}

.auth-brand-logo {
    width: 98px;
    height: 98px;

    object-fit: contain;

    display: block;

    margin: 0 auto 12px;

   filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.18));

    transition:
        transform 0.3s ease,
        filter 0.3s ease;
}

.auth-brand-logo:hover {
   transform: translateY(-3px) scale(1.04);

    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}


.auth-brand h1 {
        font-family: "Noto Sans Devanagari", sans-serif;
    font-size: 30px;

    line-height: 1.2;

    font-weight: bolder;

    letter-spacing: 0.3px;

    color: #000000;

    margin-bottom: 7px;
}

.auth-brand p {
    font-size: 13px;

    color: rgba(255, 255, 255, 0.72);

    letter-spacing: 0.2px;
}

/* =====================================================
   CARD
===================================================== */

.auth-card {
    width: 100%;
    max-width: 410px;

    background: rgb(220 220 220 / 42%);

    border-radius: 20px;

    padding: 22px 32px 17px;;

    position: relative;
    z-index: 5;

    border: 1px solid rgba(255, 255, 255, 0.85);

    box-shadow:
        0 28px 65px rgba(245, 247, 249, 0.28),
        0 8px 20px rgb(4, 24, 44),
        inset 0 1px 0 rgba(252, 251, 251, 0.9);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.auth-card:hover {
    transform: translateY(-7px);

    border-color: rgba(255, 255, 255, 1);

    box-shadow:
        0 36px 78px rgba(4, 24, 44, 0.34),
        0 12px 24px rgba(4, 24, 44, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}
/* Orange accent at top */

.auth-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    transform: translateX(-50%);

    width: 70px;
    height: 4px;

    background: #ef7b24;

    border-radius: 0 0 8px 8px;

    box-shadow: 0 3px 12px rgba(239, 123, 36, 0.35);

    transition:
        width 0.3s ease,
        box-shadow 0.3s ease;
}

.auth-card:hover::before {
    width: 100px;

    box-shadow: 0 4px 16px rgba(239, 123, 36, 0.48);
}

/* =====================================================
   CARD LOGO
===================================================== */

.auth-card-logo {
    width: 58px;
    height: 58px;

    margin: 0 auto 14px;

    display: flex;

    align-items: center;
    justify-content: center;
}


/* =====================================================
   HEADING
===================================================== */

.auth-heading {
    text-align: center;

    margin-bottom: 27px;
}

.auth-heading h2 {
    color: #183f66;

    font-size: 25px;

    line-height: 1.3;

    font-weight: 700;

    margin-bottom: 6px;
}

.auth-heading p {
    color:#213e62;

    font-size: 12px;

    line-height: 1.5;

    margin: 0;
}

/* =====================================================
   FIELD
===================================================== */

.auth-field {
    margin-bottom: 18px;
}

.auth-field label {
    display: block;

    margin-bottom: 7px;

    color: #344963;

    font-size: 13px;

    font-weight: 600;
}
/* =====================================================
   HIDE NATIVE BROWSER PASSWORD ICON
===================================================== */

.auth-password::-ms-reveal,
.auth-password::-ms-clear {
    display: none;
}

.auth-password::-webkit-credentials-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
}

/* =====================================================
   INPUT
===================================================== */

.auth-input-wrapper {
    position: relative;
}

.auth-input-wrapper > i {
    position: absolute;

    left: 14px;
    top: 50%;

    transform: translateY(-50%);

    color: #8c99a8;

    font-size: 18px;

    z-index: 2;
}

.auth-input-wrapper input {
    width: 100%;

    height: 42px;

    border: 1px solid #d9e0e7;

    border-radius: 9px;

    background: #fdfefe;

    padding: 0 44px;

    color: #263d57;

    font-family: inherit;

    font-size: 13px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.auth-input-wrapper input:hover {
    border-color: #c5cfd9;

    box-shadow: 0 4px 12px rgba(24, 63, 102, 0.06);
}

.auth-input-wrapper input:focus {
    background: #ffffff;

    border-color: #2d91d0;

    box-shadow: 0 0 0 4px rgba(45, 145, 208, 0.09);
}

.auth-input-wrapper:focus-within > i {
    color: #2d91d0;
}

.auth-input-wrapper input::placeholder {
    color: #aeb6c0;
}

/* =====================================================
   PASSWORD
===================================================== */

.auth-password-toggle {
    position: absolute;

    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: none;

    background: transparent;

    color: #8d99a7;

    cursor: pointer;

    border-radius: 6px;
}

.auth-password-toggle:hover {
    background: #f1f4f7;

    color: #173f68;

    box-shadow: 0 3px 8px rgba(23, 63, 104, 0.12);
}

.auth-password-toggle:focus-visible,
.auth-options a:focus-visible,
.auth-checkbox input:focus-visible {
    outline: 3px solid rgba(45, 145, 208, 0.28);
    outline-offset: 2px;
}

/* =====================================================
   OPTIONS
===================================================== */

.auth-options {
    display: flex;

    align-items: center;
    justify-content: space-between;

    margin: 3px 0 22px;

    font-size: 12px;
}

.auth-checkbox {
    display: flex;

    align-items: center;

    gap: 7px;

    color: #162c49;

    cursor: pointer;
}

.auth-checkbox input {
    width: 15px;
    height: 15px;

    accent-color: #2d91d0;

    cursor: pointer;
}

.auth-options a {
    color: #df4d4d;

    text-decoration: none;

    font-weight: 500;
}

.auth-options a:hover {
    color: #c23838;

    text-decoration: underline;
}

/* =====================================================
   BUTTON
===================================================== */

.auth-submit {
    width: 100%;

    height: 48px;

    border: none;

    border-radius: 9px;

    background: linear-gradient(135deg, #3096d5, #247fb9);

    color: #ffffff;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    box-shadow: 0 7px 16px rgba(45, 145, 208, 0.2);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.auth-submit:hover {
    transform: translateY(-3px);

    filter: brightness(1.06);

    box-shadow:
        0 13px 25px rgba(45, 145, 208, 0.3),
        0 3px 7px rgba(23, 63, 104, 0.12);
}

.auth-submit:active {
    transform: translateY(0);

    box-shadow: 0 5px 11px rgba(45, 145, 208, 0.2);
}

.auth-submit:focus-visible {
    outline: 3px solid rgba(45, 145, 208, 0.32);
    outline-offset: 3px;
}

/* =====================================================
   ERROR
===================================================== */

.auth-error {
    margin-top: 5px;

    color: #dc3545;

    font-size: 11px;
}

/* =====================================================
   FOOTER
===================================================== */

.auth-footer {
    margin-top: 23px;

    text-align: center;

    color: #272e36;

    font-size: 10px;
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 768px) {
    .auth-page {
        padding: 28px 18px 24px;
    }

    .auth-brand-logo {
        width: 68px;
        height: 68px;
    }

    .auth-brand h1 {
        font-size: 26px;
    }

    .auth-card {
        max-width: 400px;
    }
}

/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 480px) {
    .auth-page {
        padding: 22px 14px 20px;
    }

    .auth-brand {
        margin-bottom: 20px;
    }

    .auth-brand-logo {
        width: 60px;
        height: 60px;

        margin-bottom: 8px;
    }

    .auth-brand h1 {
        font-size: 21px;
    }

    .auth-brand p {
        font-size: 10px;
    }

    .auth-card {
        max-width: 100%;

        padding: 29px 21px 22px;

        border-radius: 16px;
    }

    .auth-card-logo {
        width: 50px;
        height: 50px;
    }

    .auth-heading h2 {
        font-size: 21px;
    }

    .auth-heading p {
        font-size: 11px;
    }

    .auth-input-wrapper input {
        height: 46px;
    }

    .auth-submit {
        height: 46px;
    }
}

/* =====================================================
   SMALL PHONES
===================================================== */

@media (max-width: 360px) {
    .auth-page {
        padding-left: 10px;
        padding-right: 10px;
    }

    .auth-brand h1 {
        font-size: 19px;
    }

    .auth-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .auth-options {
        font-size: 10px;
    }
}


/* Forget Password */
/* =====================================================
   AUTH BACK LINK
===================================================== */

.auth-back-link {
    text-align: center;
    margin-top: 18px;
}

.auth-back-link a {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #3e5678;

    font-size: 12px;
    font-weight: 500;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.auth-back-link a:hover {
    color: #173f68;
    transform: translateX(-2px);
}

.auth-back-link i {
    font-size: 15px;
}


/* OTP Verify */
/* =====================================================
   OTP PAGE
===================================================== */

.auth-otp-card {
    max-width: 500px;
}


/* Mobile number shown under heading */

.auth-otp-mobile {
    margin-top: 8px;

    font-size: 12px;

    color: #7b8794;
}

.auth-otp-mobile strong {
    color: #173f68;

    font-weight: 600;
}


/* OTP label */

.auth-otp-wrapper {
    margin-top: 24px;
}

.auth-otp-label {
    display: block;

    margin-bottom: 10px;

    color: #173f68;

    font-size: 13px;

    font-weight: 600;
}


/* OTP boxes */

.auth-otp-inputs {
    display: flex;

    justify-content: center;

    gap: 12px;
}


.auth-otp-inputs .otp-digit {
    width: 58px;
    height: 62px;

    border: 1px solid #d7dee7;

    border-radius: 10px;

    background: rgba(255, 255, 255, 0.9);

    color: #173f68;

    font-size: 24px;

    font-weight: 700;

    text-align: center;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}


.auth-otp-inputs .otp-digit:hover {
    border-color: #9fb4c9;
}


.auth-otp-inputs .otp-digit:focus {
    border-color: #2998d5;

    box-shadow:
        0 0 0 3px rgba(41, 152, 213, 0.13);

    transform: translateY(-1px);
}


/* Timer */

.auth-otp-timer {
    width: fit-content;

    margin: 18px auto 14px;

    padding: 7px 14px;

    display: flex;

    align-items: center;

    gap: 6px;

    border-radius: 20px;

    background: rgba(220, 53, 69, 0.08);

    color: #dc3545;

    font-size: 12px;

    font-weight: 600;
}

.auth-otp-timer i {
    font-size: 15px;
}


/* Resend */

.auth-resend {
    margin-bottom: 20px;

    text-align: center;

    color: #395b7e;
;

    font-size: 12px;
}


.auth-resend-button {
    padding: 0;

    border: none;

    background: transparent;

    color: #586d83;

    font-size: 12px;

    font-weight: 600;

    cursor: pointer;
}


.auth-resend-button:hover:not(:disabled) {
    color: #173f68;

    text-decoration: underline;
}


.auth-resend-button:disabled {
    color: #aab4bf;

    cursor: not-allowed;
}


.auth-resend-timer {
    margin-left: 3px;

    color: #273646;
}

        .password-strength {
            display: flex;

            gap: 4px;

            margin-top: 8px;

            margin-bottom: 6px;
        }


        .password-strength span {
            height: 4px;

            flex: 1;

            background: #e5e7eb;

            border-radius: 3px;

            transition: background 0.2s ease;
        }


        .password-strength span.active {
            background: #22c55e;
        }


        .password-strength span#poor.active {
            background: #dc3545;
        }


        .password-strength span#weak.active {
            background: #ffc107;
        }


        .password-strength span#strong.active {
            background: #0dcaf0;
        }


        .password-strength span#heavy.active {
            background: #198754;
        }


        #passwordInfo {
            font-size: 11px;

            min-height: 18px;

            margin-bottom: 4px;
        }


        .password-help {
            margin: 0;

            color: #2e4663;

            font-size: 10px;

            line-height: 1.5;
        }

/* =====================================================
   RESPONSIVE OTP
===================================================== */

@media (max-width: 576px) {

    .auth-otp-card {
        width: 100%;
    }

    .auth-otp-inputs {
        gap: 8px;
    }

    .auth-otp-inputs .otp-digit {
        width: 52px;
        height: 56px;

        font-size: 22px;
    }

}


@media (max-width: 380px) {

    .auth-otp-inputs {
        gap: 6px;
    }

    .auth-otp-inputs .otp-digit {
        width: 46px;
        height: 52px;

        font-size: 20px;
    }

}


/* Password Toggle */
.auth-password-toggle {
    position: absolute;

    right: 12px;
    top: 50%;

    transform: translateY(-50%);

    width: 32px;
    height: 32px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: none;
    border-radius: 7px;

    background: transparent;

    color: #8995a3;

    cursor: pointer;

    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease;
}

.auth-password-toggle:hover {
    color: #173f68;

    background: rgba(23, 63, 104, 0.07);

    transform: translateY(-50%) scale(1.05);
}

.auth-password-toggle:focus {
    outline: none;

    color: #173f68;

    background: rgba(23, 63, 104, 0.08);
}

.auth-password-toggle i {
    font-size: 17px;
}

