/* ============================================================
   BILLING SOFTWARE - AUTH UI
   UI ONLY
   ------------------------------------------------------------
   HTML / PHP / JS STRUCTURE IS NOT CHANGED
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');


:root {
    --brand: #2563eb;
    --brand-dark: #1d4ed8;
    --purple: #5b4ce8;

    --text: #111827;
    --muted: #64748b;

    --page-bg: #eef2ff;

    --glass-bg: rgba(255, 255, 255, 0.58);
    --glass-border: rgba(255, 255, 255, 0.78);

    --input-bg: rgba(255, 255, 255, 0.62);

    --shadow:
        0 30px 80px rgba(30, 41, 59, 0.14);
}


/* ============================================================
   GLOBAL
============================================================ */

* {
    box-sizing: border-box;
}

/* html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
  
} */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;

}



body.login-page {
    position: relative;

    /* min-height: 100vh; */

    overflow-x: hidden;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);

    background:
        radial-gradient(circle at 15% 25%,
            rgba(37, 99, 235, 0.22),
            transparent 30%),
        radial-gradient(circle at 85% 75%,
            rgba(124, 58, 237, 0.18),
            transparent 32%),
        linear-gradient(135deg,
            #f4f7ff 0%,
            #f8f6ff 48%,
            #eef3ff 100%);
}


/* ============================================================
   BACKGROUND GLOW
============================================================ */

body.login-page::before {
    content: "";

    position: fixed;

    width: 430px;
    height: 430px;

    left: -170px;
    top: -150px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(37, 99, 235, 0.22),
            transparent 68%);

    filter: blur(25px);

    pointer-events: none;

    animation:
        bgFloatOne 10s ease-in-out infinite alternate;

    z-index: 0;
}


body.login-page::after {
    content: "";

    position: fixed;

    width: 450px;
    height: 450px;

    right: -180px;
    bottom: -180px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(99, 102, 241, 0.20),
            transparent 68%);

    filter: blur(30px);

    pointer-events: none;

    animation:
        bgFloatTwo 12s ease-in-out infinite alternate;

    z-index: 0;
}


@keyframes bgFloatOne {

    0% {
        transform:
            translate(0, 0) scale(1);
    }

    100% {
        transform:
            translate(80px, 60px) scale(1.12);
    }
}


@keyframes bgFloatTwo {

    0% {
        transform:
            translate(0, 0) scale(1);
    }

    100% {
        transform:
            translate(-70px, -50px) scale(1.10);
    }
}


/* ============================================================
   MAIN WRAPPER
============================================================ */

.login-wrapper {
    position: relative;

    z-index: 2;

    width: 100%;
    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 35px 20px;
}


/* ============================================================
   MAIN CARD
============================================================ */

.login-card {
    position: relative;
    width: 100%;
    max-width: 1000px;
    min-height: 500px;
    padding: 30px 50px;
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.43));
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(25px);
    overflow: hidden;
    animation: cardIn .7s cubic-bezier(.22, 1, .36, 1);
}


@keyframes cardIn {

    from {
        opacity: 0;

        transform:
            translateY(25px) scale(.98);
    }

    to {
        opacity: 1;

        transform:
            translateY(0) scale(1);
    }
}


/* ============================================================
   DECORATIVE TOP LIGHT
============================================================ */

.login-card> :first-child::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    left: 20px;
    top: -180px;

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(255, 255, 255, .75),
            transparent 70%);

    pointer-events: none;
}


/* ============================================================
   LOGO
============================================================ */

.login-logo {
    position: relative;

    width: 420px;

    margin: 0 0 14px 0;

    text-align: left;

    z-index: 5;
}

.login-logo img {
    /* display: block; */

    max-width: 145px;
    max-height: 100px;

    width: auto;
    height: auto;

    object-fit: contain;

    filter:
        drop-shadow(0 8px 16px rgba(15, 23, 42, .10));

    animation:
        logoIn .7s .1s ease both;
}


@keyframes logoIn {

    from {
        opacity: 0;

        transform:
            translateY(-12px) scale(.9);
    }

    to {
        opacity: 1;

        transform:
            translateY(0) scale(1);
    }
}


/* ============================================================
   HEADER
============================================================ */

.login-header {
    position: relative;

    width: 420px;

    margin: 0 0 28px 0;

    text-align: left;

    z-index: 5;
}

.login-header h1 {
    margin: 0;

    color: #111827;

    font-size: 30px;

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.7px;
}

.login-header p {
    margin: 8px 0 0;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.5;
}


/* ============================================================
   FORM
============================================================ */

#myform {
    position: relative;

    width: 420px;

    margin: 0;

    z-index: 10;
}


/* ============================================================
   FORM FIELD
============================================================ */

.form-field {
    position: relative;

    width: 100%;

    margin-bottom: 20px;

    animation:
        fieldIn .5s ease both;
}


.form-field label {
    display: block;

    margin:
        0 0 7px 3px;

    color: #374151;

    font-size: 13px;

    font-weight: 600;
}


@keyframes fieldIn {

    from {
        opacity: 0;

        transform:
            translateY(10px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* ============================================================
   INPUT WRAPPER
============================================================ */

.input-wrapper {
    position: relative;

    width: 100%;
}


/* ============================================================
   ICON
============================================================ */

.input-icon {
    position: absolute;

    left: 15px;
    top: 50%;

    z-index: 2;

    width: 18px;

    text-align: center;

    color: #94a3b8;

    font-size: 14px;

    transform:
        translateY(-50%);

    pointer-events: none;

    transition:
        color .25s ease,
        transform .25s ease;
}


.input-wrapper:focus-within .input-icon {
    color: var(--brand);

    transform:
        translateY(-50%) scale(1.08);
}


/* ============================================================
   INPUT
============================================================ */

.login-input {
    width: 100%;

    height: 50px;

    padding:
        0 45px;

    border:
        1px solid rgba(203, 213, 225, .80);

    border-radius: 12px;

    outline: none;

    background:
        var(--input-bg);

    color: #111827;

    font-size: 14px;

    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}


.login-input::placeholder {
    color: #9ca3af;
}


.login-input:hover {
    background:
        rgba(255, 255, 255, .82);

    border-color:
        #cbd5e1;
}


.login-input:focus {
    background:
        rgba(255, 255, 255, .94);

    border-color:
        var(--brand);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, .08),

        0 8px 20px rgba(37, 99, 235, .06);

    transform:
        translateY(-1px);
}


/* ============================================================
   PASSWORD EYE
============================================================ */

.password-toggle {
    position: absolute;

    right: 8px;
    top: 50%;

    width: 34px;
    height: 34px;

    padding: 0;

    border: 0;

    border-radius: 8px;

    background: transparent;

    color: #94a3b8;

    transform:
        translateY(-50%);

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease,
        transform .2s ease;
}


.password-toggle:hover {
    color: var(--brand);

    background:
        rgba(37, 99, 235, .08);

    transform:
        translateY(-50%) scale(1.05);
}


/* ============================================================
   FORGOT PASSWORD
============================================================ */

.login-options {
    width: 100%;

    margin:
        -3px 0 22px;

    text-align: right;
}

.login-options a {
    color: var(--brand);

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;
}

.login-options a:hover {
    color: var(--brand-dark);

    text-decoration: underline;
}


/* ============================================================
   BUTTON
============================================================ */

.login-button {
    position: relative;

    width: 100%;

    height: 51px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 13px;

    overflow: hidden;

    background:
        linear-gradient(100deg,
            #2563eb,
            #4f46e5);

    background-size:
        200% 100%;

    color: #fff;

    font-size: 14px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 12px 25px rgba(37, 99, 235, .22);

    transition:
        transform .25s ease,
        box-shadow .25s ease;

    animation:
        buttonGradient 5s ease infinite;
}


@keyframes buttonGradient {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


.login-button:hover {
    color: #fff;
    transform:
        translateY(-2px);

    box-shadow:
        0 16px 30px rgba(37, 99, 235, .28);
}


.login-button:active {
    transform:
        translateY(0) scale(.99);
}


.login-button:disabled {
    opacity: .7;

    cursor: not-allowed;

    transform: none;
}


/* ============================================================
   BUTTON SHINE
============================================================ */

.login-button::before {
    content: "";

    position: absolute;

    top: 0;
    left: -120%;

    width: 70%;
    height: 100%;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, .25),
            transparent);

    transform:
        skewX(-20deg);

    animation:
        buttonShine 4s ease-in-out infinite;
}


@keyframes buttonShine {

    0% {
        left: -120%;
    }

    45%,
    100% {
        left: 150%;
    }
}


.button-text,
.button-loading {
    position: relative;

    z-index: 2;
}

.button-text {
    display: inline;
}




.button-loading {
    display: none;
}

.login-button.loading .button-text {
    display: none;
}

.login-button.loading .button-loading {
    display: inline-block;
}


/* ============================================================
   SIGN UP TEXT
============================================================ */

.signup-text {
    margin-top: 23px;

    text-align: center;

    color: #64748b;

    font-size: 13px;

    line-height: 1.5;
}

.signup-text a {
    color: var(--brand);

    font-weight: 700;

    text-decoration: none;
}

.signup-text a:hover {
    text-decoration: underline;
}


/* ============================================================
   GLASS ILLUSTRATION AREA
   ------------------------------------------------------------
   THIS DOES NOT ADD HTML.
   It uses the existing .login-card pseudo element.
============================================================ */




/* ============================================================
   LOGIN ILLUSTRATION ANIMATION
============================================================ */

@keyframes authIllustrationFloat {

    0%,
    100% {
        transform:
            translateY(-50%) translateY(0);
    }

    50% {
        transform:
            translateY(-50%) translateY(-14px);
    }
}

.login-card {
    isolation: isolate;
}


/* ============================================================
   MESSAGE
============================================================ */

.login-message {
    display: none;

    width: 100%;

    margin-bottom: 18px;

    padding: 12px 14px;

    border-radius: 11px;

    align-items: flex-start;

    gap: 10px;

    font-size: 13px;

    line-height: 1.4;

    animation:
        messageIn .3s ease;
}

.login-message.show {
    display: flex;
}

.login-message>i {
    flex-shrink: 0;

    margin-top: 2px;

    font-size: 16px;
}

.login-message>div {
    display: flex;

    flex-direction: column;

    gap: 2px;
}

.login-message strong {
    font-size: 13px;

    font-weight: 700;
}

.login-message span {
    font-size: 12px;
}


.login-message.error {
    background: rgba(254, 226, 226, .75);

    border:
        1px solid rgba(248, 113, 113, .45);

    color: #b91c1c;
}

.login-message.success {
    background: rgba(220, 252, 231, .75);

    border:
        1px solid rgba(74, 222, 128, .45);

    color: #15803d;
}

.login-message.warning {
    background: rgba(254, 249, 195, .75);

    border:
        1px solid rgba(250, 204, 21, .45);

    color: #a16207;
}


@keyframes messageIn {

    from {
        opacity: 0;

        transform:
            translateY(-5px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


/* ============================================================
   CONFIRM ALERT
============================================================ */

#confirmAlert {
    width: 420px;

    border-radius: 11px;

    font-size: 13px;
}


/* ============================================================
   SIGNUP PAGE
============================================================ */

.signup-card {
    max-width: 1180px;

    min-height: 690px;
}


/* Signup form */

.signup-card #myform {
    width: 570px;
}


/* Signup rows */

.signup-form-row {
    display: flex;

    width: 100%;

    gap: 15px;
}

.signup-form-column {
    flex: 1;

    min-width: 0;
}

.signup-card .form-field {
    margin-bottom: 16px;
}


/* Signup button */

/* .signup-card .login-button {
    background:
        linear-gradient(100deg,
            #f97316,
            #ff6b35,
            #ec4899);

    background-size: 200% 100%;

    animation:
        signupGradient 5s ease infinite;
} */


@keyframes signupGradient {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* ============================================================
   FORGOT PASSWORD BUTTON
============================================================ */

/* .login-card:has(#email) .login-button {
    background:
        linear-gradient(100deg,
            #0d9488,
            #14b8a6);

    background-size: 200% 100%;

    animation:
        forgotGradient 5s ease infinite;
} */


@keyframes forgotGradient {

    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}


/* ============================================================
   SUCCESS TOAST
============================================================ */

.login-success-toast {
    position: fixed;

    top: 22px;
    right: 22px;

    width: 370px;

    max-width:
        calc(100vw - 30px);

    z-index: 99999;

    overflow: hidden;

    background:
        rgba(255, 255, 255, .92);

    border:
        1px solid rgba(255, 255, 255, .9);

    border-radius: 16px;

    box-shadow:
        0 25px 60px rgba(15, 23, 42, .18);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    opacity: 0;

    visibility: hidden;

    transform:
        translateX(120%);

    transition:
        opacity .35s ease,
        transform .4s ease,
        visibility .35s ease;
}


.login-success-toast.show {
    opacity: 1;

    visibility: visible;

    transform:
        translateX(0);
}


.login-success-toast.hide {
    opacity: 0;

    visibility: hidden;

    transform:
        translateX(120%);
}


.login-success-content {
    display: flex;

    align-items: center;

    gap: 13px;

    padding: 17px 18px;
}


.login-success-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(135deg,
            #22c55e,
            #16a34a);

    color: #fff;
}


.login-success-text {
    display: flex;

    flex-direction: column;

    gap: 3px;
}

.login-success-text strong {
    color: #111827;

    font-size: 14px;

    font-weight: 700;
}

.login-success-text span {
    color: #64748b;

    font-size: 12px;
}


.login-success-progress {
    width: 100%;

    height: 3px;

    background: #e2e8f0;
}


.login-success-progress div {
    width: 0;

    height: 100%;

    background:
        linear-gradient(90deg,
            #2563eb,
            #7c3aed);
}


/* ============================================================
   SUCCESS TOAST (LEFT SIDE)
============================================================ */

.login-success-toast-left {
    position: fixed;
    top: 22px;
    left: 22px;
    width: 370px;
    max-width: calc(100vw - 30px);
    z-index: 99999;
    overflow: hidden;
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(15, 23, 42, .18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-120%);
    transition: opacity .35s ease, transform .4s ease, visibility .35s ease;
}

.login-success-toast-left.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.login-success-toast-left.hide {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-120%);
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;
    }
}

/* ============================================================
   AUTH ILLUSTRATION
   Uses existing HTML - NO STRUCTURE CHANGE
============================================================ */

.login-card::after {
    content: "";

    position: absolute;

    right: 45px;
    top: 50%;

    width: 410px;
    height: 410px;

    transform: translateY(-50%);

    background-image:
        url("../img/auth/login-illustration.svg");

    background-repeat: no-repeat;

    background-position: center;

    background-size: contain;

    pointer-events: none;

    z-index: 2;

    animation:
        authIllustrationFloat 5s ease-in-out infinite;
}




/* Soft illustration background */

.login-card::before {
    content: "";

    position: absolute;

    right: 20px;
    top: 50%;

    width: 410px;
    height: 410px;

    transform: translateY(-50%);

    border-radius: 50%;

    background:
        radial-gradient(circle,
            rgba(99, 102, 241, 0.16) 0%,
            rgba(129, 140, 248, 0.10) 35%,
            rgba(255, 255, 255, 0) 72%);

    filter: blur(8px);

    pointer-events: none;

    z-index: 1;

    animation:
        illustrationGlow 7s ease-in-out infinite alternate;
}


@keyframes illustrationGlow {

    from {
        transform:
            translateY(-50%) scale(0.95);
    }

    to {
        transform:
            translateY(-50%) scale(1.08);
    }
}

/* ============================================================
   SIGN UP ILLUSTRATION
============================================================ */

.signup-card::after {
    background-image:
        url("../img/auth/signup-illustration.svg");

    animation:
        signupIllustrationFloat 5.5s ease-in-out infinite;
}

.signup-card::before {
    background:
        radial-gradient(circle,
            rgba(249, 115, 22, 0.18) 0%,
            rgba(251, 146, 60, 0.10) 35%,
            transparent 72%);
}

@keyframes signupIllustrationFloat {

    0%,
    100% {
        transform:
            translateY(-50%) rotate(0deg);
    }

    50% {
        transform:
            translateY(-50%) translateY(-12px) rotate(1deg);
    }
}

/* ============================================================
   FORGOT PASSWORD ILLUSTRATION
============================================================ */

.login-card:not(.signup-card):has(#email)::after {
    background-image:
        url("../img/auth/forgot-password-illustration.svg");

    animation:
        forgotIllustrationFloat 5s ease-in-out infinite;
}


.login-card:not(.signup-card):has(#email)::before {
    background:
        radial-gradient(circle,
            rgba(20, 184, 166, 0.18) 0%,
            rgba(6, 182, 212, 0.10) 35%,
            transparent 72%);
}


@keyframes forgotIllustrationFloat {

    0%,
    100% {
        transform:
            translateY(-50%);
    }

    50% {
        transform:
            translateY(-50%) translateY(-13px);
    }
}

/* ============================================================
   RESPONSIVE AUTH LAYOUT
   Desktop → Tablet → Mobile
   HTML / PHP / JS unchanged
============================================================ */


/* ============================================================
   LARGE DESKTOP
   1200px+
============================================================ */

@media (min-width: 1200px) {

    .login-card {
        max-width: 1120px;
        min-height: 620px;

        /* padding: 60px; */
    }

    .login-logo,
    .login-header,
    #myform {
        width: 420px;
    }

    .login-card::before {
        right: 10px;
    }

    .login-card::after {
        right: 45px;

        width: 440px;
        height: 440px;
    }

}


/* ============================================================
   DESKTOP
   1001px - 1199px
============================================================ */

@media (min-width: 1001px) and (max-width: 1199px) {

    .login-wrapper {
        padding: 30px 20px;
    }

    .login-card {
        max-width: 950px;
        min-height: 590px;

        padding: 50px;
    }

    .login-logo,
    .login-header,
    #myform {
        width: 390px;
    }

    .login-card::before {
        right: -20px;

        width: 440px;
        height: 440px;
    }

    .login-card::after {
        right: 0;

        width: 390px;
        height: 390px;
    }

}


/* ============================================================
   TABLET LANDSCAPE
   769px - 1000px
============================================================ */

@media (min-width: 769px) and (max-width: 1000px) {

    .login-wrapper {
        min-height: 100vh;

        padding: 25px 18px;
    }

    .login-card {
        max-width: 760px;

        min-height: 540px;

        padding: 42px 38px;

        border-radius: 25px;
    }


    /* ----------------------------------------
       FORM AREA
    ---------------------------------------- */

    .login-logo,
    .login-header,
    #myform {
        width: 350px;
    }

    .login-logo {
        margin-bottom: 13px;
    }

    .login-logo img {
        max-width: 125px;
        max-height: 70px;
    }

    .login-header {
        margin-bottom: 23px;
    }

    .login-header h1 {
        font-size: 27px;
    }

    .login-header p {
        font-size: 13px;
    }


    /* ----------------------------------------
       INPUT
    ---------------------------------------- */

    .login-input {
        height: 47px;

        font-size: 13px;
    }

    .login-button {
        height: 48px;
    }


    /* ----------------------------------------
       ILLUSTRATION
    ---------------------------------------- */

    .login-card::before {
        right: -100px;
        top: 50%;

        width: 400px;
        height: 400px;

        opacity: .75;
    }

    .login-card::after {
        right: -55px;
        top: 50%;

        width: 330px;
        height: 330px;

        opacity: .92;
    }


    /* ----------------------------------------
       SIGNUP
    ---------------------------------------- */

    .signup-card {
        max-width: 900px;

        min-height: 620px;
    }

    .signup-card #myform {
        width: 450px;
    }

    .signup-form-row {
        gap: 12px;
    }

}


/* ============================================================
   TABLET PORTRAIT
   601px - 768px
============================================================ */

@media (min-width: 601px) and (max-width: 768px) {

    .login-wrapper {
        min-height: 100vh;

        padding: 25px 18px;
    }

    .login-card {
        max-width: 650px;

        min-height: auto;

        padding: 40px 35px;

        border-radius: 24px;
    }


    /* ----------------------------------------
       CENTER FORM
    ---------------------------------------- */

    .login-logo,
    .login-header,
    #myform {
        width: 100%;

        max-width: 440px;

        margin-left: auto;
        margin-right: auto;
    }

    .login-logo {
        text-align: center;

        margin-bottom: 14px;
    }

    .login-logo img {
        max-width: 125px;
        max-height: 70px;
    }

    .login-header {
        text-align: center;

        margin-bottom: 25px;
    }

    .login-header h1 {
        font-size: 27px;
    }

    .login-header p {
        font-size: 13px;
    }


    /* ----------------------------------------
       HIDE SIDE ILLUSTRATION
       Tablet portrait doesn't have enough
       horizontal space.
    ---------------------------------------- */

    .login-card::before,
    .login-card::after {
        display: none;
    }


    /* ----------------------------------------
       INPUT
    ---------------------------------------- */

    .login-input {
        height: 48px;

        font-size: 14px;
    }

    .login-button {
        height: 49px;
    }


    /* ----------------------------------------
       SIGNUP
    ---------------------------------------- */

    .signup-card {
        max-width: 650px;
    }

    .signup-card #myform {
        width: 100%;

        max-width: 520px;
    }

    .signup-form-row {
        gap: 14px;
    }

}


/* ============================================================
   LARGE MOBILE
   481px - 600px
============================================================ */

@media (min-width: 481px) and (max-width: 600px) {

    .login-wrapper {
        min-height: 100vh;

        padding: 20px 15px;
    }

    .login-card {
        max-width: 500px;

        min-height: auto;

        padding: 35px 25px 28px;

        border-radius: 22px;
    }


    /* ----------------------------------------
       CENTER EVERYTHING
    ---------------------------------------- */

    .login-logo,
    .login-header,
    #myform {
        width: 100%;
    }

    .login-logo {
        text-align: center;

        margin-bottom: 14px;
    }

    .login-logo img {
        max-width: 125px;
        max-height: 70px;
    }

    .login-header {
        text-align: center;

        margin-bottom: 24px;
    }

    .login-header h1 {
        font-size: 25px;
    }

    .login-header p {
        font-size: 13px;
    }


    /* ----------------------------------------
       REMOVE ILLUSTRATION
    ---------------------------------------- */

    .login-card::before,
    .login-card::after {
        display: none;
    }


    /* ----------------------------------------
       INPUT
    ---------------------------------------- */

    .login-input {
        height: 48px;

        font-size: 14px;
    }

    .login-button {
        height: 48px;
    }


    /* ----------------------------------------
       SIGNUP
    ---------------------------------------- */

    .signup-card {
        max-width: 500px;
    }

    .signup-card #myform {
        width: 100%;
    }

    .signup-form-row {
        display: block;

        width: 100%;
    }

    .signup-form-column {
        width: 100%;
    }

}


/* ============================================================
   MOBILE
   376px - 480px
============================================================ */

@media (min-width: 376px) and (max-width: 480px) {

    .login-wrapper {
        min-height: 100vh;

        padding: 16px 12px;
    }

    .login-card {
        max-width: 100%;

        min-height: auto;

        padding: 30px 20px 25px;

        border-radius: 20px;
    }


    /* ----------------------------------------
       CENTER CONTENT
    ---------------------------------------- */

    .login-logo,
    .login-header,
    #myform {
        width: 100%;
    }

    .login-logo {
        text-align: center;

        margin-bottom: 13px;
    }

    .login-logo img {
        max-width: 115px;
        max-height: 65px;
    }

    .login-header {
        text-align: center;

        margin-bottom: 23px;
    }

    .login-header h1 {
        font-size: 23px;

        letter-spacing: -.4px;
    }

    .login-header p {
        font-size: 12.5px;
    }


    /* ----------------------------------------
       HIDE ILLUSTRATION
    ---------------------------------------- */

    .login-card::before,
    .login-card::after {
        display: none;
    }


    /* ----------------------------------------
       FORM
    ---------------------------------------- */

    .form-field {
        margin-bottom: 17px;
    }

    .form-field label {
        font-size: 13px;
    }

    .login-input {
        height: 46px;

        padding-left: 42px;

        font-size: 13px;

        border-radius: 11px;
    }

    .password-toggle {
        right: 7px;
    }


    .login-options {
        margin-bottom: 19px;
    }

    .login-button {
        height: 47px;

        border-radius: 11px;

        font-size: 14px;
    }

    .signup-text {
        margin-top: 19px;

        font-size: 12.5px;
    }


    /* ----------------------------------------
       SIGNUP
    ---------------------------------------- */

    .signup-card {
        max-width: 100%;
    }

    .signup-card #myform {
        width: 100%;
    }

    .signup-form-row {
        display: block;
    }

    .signup-form-column {
        width: 100%;
    }

}


/* ============================================================
   SMALL MOBILE
   320px - 375px
============================================================ */

@media (max-width: 375px) {

    .login-wrapper {
        min-height: 100vh;

        padding: 12px 9px;
    }

    .login-card {
        width: 100%;

        min-height: auto;

        padding: 25px 16px 22px;

        border-radius: 18px;
    }


    /* ----------------------------------------
       CENTER
    ---------------------------------------- */

    .login-logo,
    .login-header,
    #myform {
        width: 100%;
    }

    .login-logo {
        text-align: center;

        margin-bottom: 11px;
    }

    .login-logo img {
        max-width: 105px;
        max-height: 60px;
    }

    .login-header {
        text-align: center;

        margin-bottom: 20px;
    }

    .login-header h1 {
        font-size: 21px;

        letter-spacing: -.3px;
    }

    .login-header p {
        margin-top: 6px;

        font-size: 12px;
    }


    /* ----------------------------------------
       NO ILLUSTRATION
    ---------------------------------------- */

    .login-card::before,
    .login-card::after {
        display: none;
    }


    /* ----------------------------------------
       FORM
    ---------------------------------------- */

    .form-field {
        margin-bottom: 15px;
    }

    .form-field label {
        margin-bottom: 6px;

        font-size: 12px;
    }

    .login-input {
        height: 44px;

        padding:
            0 40px;

        border-radius: 10px;

        font-size: 13px;
    }

    .input-icon {
        left: 13px;

        font-size: 13px;
    }

    .password-toggle {
        right: 5px;

        width: 32px;
        height: 32px;
    }


    .login-options {
        margin-top: -1px;

        margin-bottom: 17px;
    }

    .login-options a {
        font-size: 12px;
    }


    .login-button {
        height: 45px;

        border-radius: 10px;

        font-size: 13px;
    }


    .signup-text {
        margin-top: 17px;

        font-size: 12px;
    }


    /* ----------------------------------------
       SIGNUP
    ---------------------------------------- */

    .signup-card {
        width: 100%;
    }

    .signup-card #myform {
        width: 100%;
    }

    .signup-form-row {
        display: block;
    }

    .signup-form-column {
        width: 100%;
    }


    /* ----------------------------------------
       TOAST
    ---------------------------------------- */

    .login-success-toast {
        top: 10px;

        right: 10px;

        left: 10px;

        width: auto;

        max-width: none;
    }

    .login-success-content {
        padding: 13px;
    }

    .login-success-icon {
        width: 36px;
        height: 36px;
    }

    .login-success-text strong {
        font-size: 13px;
    }

    .login-success-text span {
        font-size: 11px;
    }

}

/* country code */
/* ============================================================
   PHONE INPUT
   ============================================================ */

.phone-input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
    gap: 8px;
}

/* Country Code */

.country-code {
    flex: 0 0 78px;

    height: 50px;

    padding: 0 10px;

    border: 1px solid rgba(203, 213, 225, .80);
    border-radius: 12px;

    background: rgba(255, 255, 255, .62);

    color: #334155;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    outline: none;

    cursor: pointer;

    appearance: auto;

    transition:
        background .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.country-code:hover {
    background: rgba(255, 255, 255, .85);

    border-color: #cbd5e1;
}

.country-code:focus {
    background: rgba(255, 255, 255, .94);

    border-color: var(--brand);

    box-shadow:
        0 0 0 4px rgba(37, 99, 235, .08);
}


/* Phone Number */

.phone-number-wrapper {
    position: relative;

    flex: 1;

    min-width: 0;
}

.phone-number-wrapper .login-input {
    width: 100%;

    padding-left: 42px;
}

.phone-input-icon {
    position: absolute;

    left: 15px;
    top: 50%;

    z-index: 2;

    color: #94a3b8;

    font-size: 14px;

    transform: translateY(-50%);

    pointer-events: none;

    transition: color .25s ease;
}

.phone-number-wrapper:focus-within .phone-input-icon {
    color: var(--brand);
}

@media (max-width: 600px) {

    .phone-input-group {
        gap: 7px;
    }

    .country-code {
        flex: 0 0 72px;

        height: 48px;

        padding: 0 8px;

        font-size: 12px;
    }

    .phone-number-wrapper .login-input {
        height: 48px;
    }
}


/* reset pass page */

/* ============================================================
   RESET PASSWORD
   FINAL RESPONSIVE SPLIT LAYOUT
   ============================================================ */

.reset-page {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 30px;

    box-sizing: border-box;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(circle at 10% 10%,
            rgba(37, 99, 235, 0.16),
            transparent 32%),
        radial-gradient(circle at 90% 90%,
            rgba(99, 102, 241, 0.12),
            transparent 32%),
        #f5f7ff;
}


/* ============================================================
   MAIN CARD
   ============================================================ */

.reset-wrapper {
    width: 100%;
    max-width: 1080px;
}


.reset-card {
    width: 100%;

    /* display: grid; */
    /* grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); */

    background: #ffffff;

    border-radius: 24px;

    overflow: hidden;

    box-shadow:
        0 20px 60px rgba(30, 64, 175, 0.12);
}


/* ============================================================
   LEFT SIDE
   ============================================================ */

.reset-content {
    min-width: 0;

    padding: 55px 60px;

    background: #ffffff;

    display: flex;
    flex-direction: column;
    justify-content: center;
}


/* ============================================================
   LOGO
   ============================================================ */

.reset-logo {
    margin-bottom: 42px;
}


.reset-logo img {
    display: block;

    width: auto;
    max-width: 170px;
    height: auto;
    max-height: 58px;

    object-fit: contain;
}


/* ============================================================
   HEADER
   ============================================================ */

.reset-header {
    margin-bottom: 28px;
}


.reset-header h1 {
    margin: 0 0 10px;

    color: #172033;

    font-size: 32px;
    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.5px;
}


.reset-header p {
    margin: 0;

    max-width: 450px;

    color: #64748b;

    font-size: 14px;
    line-height: 1.6;
}


/* ============================================================
   INVALID LINK ICON
   ============================================================ */

.reset-status-icon {
    width: 50px;
    height: 50px;

    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 20px;
}


/* ============================================================
   RESET FORM
   ============================================================ */

#resetForm {
    width: 100%;
}


.reset-field {
    width: 100%;
    margin-bottom: 19px;
}


.reset-field label {
    display: block;

    margin: 0 0 8px 1px;

    color: #334155;

    font-size: 13px;

    font-weight: 600;
}


/* ============================================================
   INPUT
   ============================================================ */

.reset-input-wrapper {
    position: relative;

    width: 100%;
}


.reset-input {
    width: 100%;
    height: 52px;

    box-sizing: border-box;

    padding: 0 46px 0 43px;

    border: 1px solid #d5deeb;

    border-radius: 11px;

    background: #ffffff;

    color: #172033;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.reset-input::placeholder {
    color: #9aa8bc;
}


.reset-input:hover {
    border-color: #b9c7dc;
}


.reset-input:focus {
    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.10);
}


/* ============================================================
   INPUT LOCK
   ============================================================ */

.reset-input-icon {
    position: absolute;

    left: 15px;
    top: 50%;

    transform: translateY(-50%);

    color: #94a3b8;

    font-size: 14px;

    pointer-events: none;
}


/* ============================================================
   SHOW / HIDE PASSWORD
   ============================================================ */

.reset-password-toggle {
    position: absolute;

    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    padding: 0;

    border: 0;

    background: transparent;

    color: #94a3b8;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}


.reset-password-toggle:hover {
    color: #2563eb;
}


/* ============================================================
   BLUE BUTTON
   ============================================================ */

.reset-action-button {
    width: 100%;
    height: 52px;

    margin-top: 5px;

    padding: 0 20px;

    border: 0;
    border-radius: 11px;

    background:
        linear-gradient(135deg,
            #2563eb 0%,
            #1d4ed8 100%);

    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(37, 99, 235, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.reset-action-button:hover {
    color: #ffffff;
    text-decoration: none;

    transform: translateY(-1px);

    box-shadow:
        0 12px 25px rgba(37, 99, 235, 0.28);
}


.reset-action-button:active {
    transform: translateY(0);
}


/* ============================================================
   LOADING
   ============================================================ */

.reset-action-button .button-loading {
    display: none;
}


.reset-action-button.loading .button-text {
    display: none;
}


.reset-action-button.loading .button-loading {
    display: inline-flex;

    align-items: center;

    gap: 7px;
}


/* ============================================================
   FOOTER
   ============================================================ */

.reset-footer {
    margin-top: 22px;

    text-align: center;

    color: #64748b;

    font-size: 13px;
}


.reset-footer a {
    margin-left: 4px;

    color: #2563eb;

    font-weight: 600;

    text-decoration: none;
}


.reset-footer a:hover {
    text-decoration: underline;
}


.reset-footer i {
    margin-left: 3px;

    font-size: 11px;
}


/* ============================================================
   RIGHT ILLUSTRATION PANEL
   ============================================================ */

.reset-illustration {
    position: relative;

    min-width: 0;
    min-height: 600px;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 45px;

    box-sizing: border-box;

    background:
        radial-gradient(circle at 75% 18%,
            rgba(255, 255, 255, 0.65),
            transparent 25%),
        linear-gradient(145deg,
            #dbe8ff 0%,
            #cbdcff 50%,
            #e7ebff 100%);
}


/* ============================================================
   DECORATIVE CIRCLES
   ============================================================ */

.reset-illustration::before {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    top: -100px;
    right: -100px;

    border-radius: 50%;

    background: rgba(37, 99, 235, 0.09);
}


.reset-illustration::after {
    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    left: -120px;
    bottom: -120px;

    border-radius: 50%;

    background: rgba(99, 102, 241, 0.08);
}


/* ============================================================
   ILLUSTRATION CONTENT
   ============================================================ */

.illustration-content {
    position: relative;

    z-index: 2;

    width: 100%;

    text-align: center;
}


.illustration-badge {
    width: 52px;
    height: 52px;

    margin: 0 auto 15px;

    border-radius: 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(37, 99, 235, 0.10);

    color: #2563eb;

    font-size: 22px;
}


.illustration-content h2 {
    margin: 0 0 8px;

    color: #172554;

    font-size: 23px;
    line-height: 1.3;

    font-weight: 700;
}


.illustration-content p {
    max-width: 370px;

    margin: 0 auto 24px;

    color: #64748b;

    font-size: 13px;

    line-height: 1.6;
}


/* ============================================================
   ACTUAL ILLUSTRATION
   ============================================================ */

.reset-illustration-image {
    display: block;

    width: 100%;
    max-width: 430px;

    height: auto;

    max-height: 330px;

    margin: 0 auto;

    object-fit: contain;
}


/* ============================================================
   DESKTOP HEIGHT CONTROL
   ============================================================ */

@media (min-width: 769px) {

    .reset-card {
        min-height: 600px;
    }

    .reset-content {
        min-height: 600px;
    }

    .reset-illustration {
        min-height: 600px;
    }

}


/* ============================================================
   TABLET
   ============================================================ */

@media (max-width: 1024px) and (min-width: 769px) {

    .reset-page {
        padding: 20px;
    }


    .reset-content {
        padding: 45px 40px;
    }


    .reset-illustration {
        padding: 35px;
    }


    .reset-header h1 {
        font-size: 29px;
    }


    .reset-illustration-image {
        max-width: 350px;
        max-height: 290px;
    }

}


/* ============================================================
   MOBILE / TABLET STACK
   ============================================================ */

@media (max-width: 768px) {

    .reset-page {
        min-height: 100vh;

        padding: 15px;

        align-items: flex-start;
    }


    .reset-wrapper {
        margin: 10px 0;
    }


    .reset-card {
        display: flex;

        flex-direction: column;

        border-radius: 20px;
    }


    /* LEFT CONTENT FIRST */

    .reset-content {
        width: 100%;

        min-height: auto;

        padding: 38px 32px;

        box-sizing: border-box;
    }


    .reset-logo {
        margin-bottom: 30px;
    }


    .reset-logo img {
        max-width: 155px;
        max-height: 55px;
    }


    .reset-header h1 {
        font-size: 27px;
    }


    /* RIGHT ILLUSTRATION SECOND */

    .reset-illustration {
        width: 100%;

        min-height: 360px;

        padding: 35px 25px;

        box-sizing: border-box;
    }


    .reset-illustration-image {
        max-width: 330px;
        max-height: 250px;
    }

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 480px) {

    .reset-page {
        padding: 10px;
    }


    .reset-wrapper {
        margin: 5px 0;
    }


    .reset-card {
        border-radius: 17px;
    }


    .reset-content {
        padding: 30px 20px;
    }


    .reset-logo {
        margin-bottom: 25px;

        text-align: center;
    }


    .reset-logo img {
        max-width: 145px;
    }


    .reset-header {
        margin-bottom: 24px;
    }


    .reset-header h1 {
        font-size: 24px;

        letter-spacing: -0.3px;
    }


    .reset-header p {
        font-size: 13px;
    }


    .reset-status-icon {
        width: 46px;
        height: 46px;

        margin-bottom: 17px;
    }


    .reset-field {
        margin-bottom: 16px;
    }


    .reset-input {
        height: 50px;

        font-size: 14px;
    }


    .reset-action-button {
        height: 50px;

        font-size: 14px;
    }


    .reset-footer {
        margin-top: 19px;

        font-size: 12px;
    }


    .reset-illustration {
        min-height: 300px;

        padding: 30px 18px;
    }


    .illustration-badge {
        width: 48px;
        height: 48px;

        font-size: 20px;
    }


    .illustration-content h2 {
        font-size: 20px;
    }


    .illustration-content p {
        font-size: 12px;

        margin-bottom: 18px;
    }


    .reset-illustration-image {
        max-width: 250px;

        max-height: 190px;
    }

}


/* ============================================================
   VERY SMALL MOBILE
   ============================================================ */

@media (max-width: 360px) {

    .reset-content {
        padding: 25px 16px;
    }


    .reset-header h1 {
        font-size: 22px;
    }


    .reset-input {
        height: 48px;
    }


    .reset-action-button {
        height: 48px;
    }


    .reset-illustration {
        min-height: 270px;

        padding: 25px 15px;
    }


    .reset-illustration-image {
        max-width: 215px;
    }

}


/* ============================================================
   RESET PASSWORD PAGE
   Reuses login UI classes for visual consistency with the
   login / sign-up pages. HTML in reset_password.php uses
   .login-card.reset-card with .login-*, .form-field,
   .login-input and .login-button.
============================================================ */

.login-card.reset-card .login-logo,
.login-card.reset-card .login-header,
.login-card.reset-card #resetForm {
    width: 420px;
}

.login-card.reset-card .login-logo img {
    max-width: 145px;
    max-height: 100px;
}

.login-card.reset-card a.login-button {
    text-decoration: none;
}

/* Right-side illustration: match the forgot-password theme */
.login-card.reset-card::after {
    background-image:
        url("../img/auth/forgot-password-illustration.svg");

    animation:
        forgotIllustrationFloat 5s ease-in-out infinite;
}

.login-card.reset-card::before {
    background:
        radial-gradient(circle,
            rgba(20, 184, 166, 0.18) 0%,
            rgba(6, 182, 212, 0.10) 35%,
            transparent 72%);
}

/* Center content and hide the illustration on small screens
   (same behaviour as the other auth pages) */
@media (max-width: 768px) {

    .login-card.reset-card .login-logo,
    .login-card.reset-card .login-header,
    .login-card.reset-card #resetForm {
        width: 100%;
        max-width: 440px;
        margin-left: auto;
        margin-right: auto;
    }

    .login-card.reset-card .login-logo {
        text-align: center;
    }

    .login-card.reset-card .login-header {
        text-align: center;
    }

    .login-card.reset-card::before,
    .login-card.reset-card::after {
        display: none;
    }
}


/* Expired / invalid link view:
   show the right-side illustration (same as login page),
   content sits in the left 420px column */
.login-card.reset-card.reset-invalid .login-header {
    margin-bottom: 26px;
}

.login-card.reset-card.reset-invalid a.login-button {
    width: 420px;
    max-width: 100%;
    margin-top: 4px;
}

.login-card.reset-card.reset-invalid .signup-text {
    width: 420px;
    max-width: 100%;
    margin-top: 22px;
}

/* =========================================
   FORGOT PASSWORD - FULL HEIGHT FIX
   ========================================= */

html,
body {
    min-height: 100%;
    height: auto;
    margin: 0;
}

body.login-page {
    min-height: 100vh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
}

.login-page .login-wrapper {
    width: 100%;
    min-height: 100vh;
    height: auto;
    box-sizing: border-box;

    padding: 35px 20px 60px;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    overflow: visible;
}

.login-page .login-card {
    width: 100%;
    max-width: 1120px;
    height: auto;
    min-height: 600px;

    margin: 0 auto;

    box-sizing: border-box;
    overflow: visible;
}

@media (max-height: 700px) {
    .login-page .login-wrapper {
        padding-top: 20px;
        padding-bottom: 50px;
    }

    .login-page .login-card {
        min-height: 560px;
    }
}