.auth-page {
    position: relative;
    gap: 22px;
    padding: 40px 24px;
    overflow: hidden;
    isolation: isolate;
}

.auth-page::before,
.auth-page::after {
    content: "";
    position: fixed;
    inset: auto;
    pointer-events: none;
    z-index: -2;
    border-radius: 999px;
}

.auth-page::before {
    top: -220px;
    right: -220px;
    width: 760px;
    height: 760px;
    background: radial-gradient(
        circle,
        rgba(244, 201, 192, 0.46) 0%,
        rgba(244, 201, 192, 0.26) 20%,
        rgba(244, 201, 192, 0.14) 36%,
        rgba(244, 201, 192, 0.08) 50%,
        rgba(244, 201, 192, 0.03) 63%,
        rgba(244, 201, 192, 0.01) 72%,
        rgba(244, 201, 192, 0) 84%
    );
    filter: blur(18px);
}

.auth-page::after {
    left: -260px;
    bottom: -320px;
    width: 860px;
    height: 860px;
    background: radial-gradient(
        circle,
        rgba(23, 77, 149, 0.30) 0%,
        rgba(23, 77, 149, 0.18) 20%,
        rgba(23, 77, 149, 0.11) 34%,
        rgba(76, 132, 204, 0.07) 48%,
        rgba(112, 161, 223, 0.04) 62%,
        rgba(112, 161, 223, 0.015) 74%,
        rgba(112, 161, 223, 0) 86%
    );
    filter: blur(28px);
}

.auth-card {
    position: relative;
    width: 100%;
    border: 1px solid rgba(205, 213, 225, 0.95);
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.10),
        0 8px 24px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.auth-card__header {
    padding: 28px 32px 14px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    background:
        linear-gradient(180deg, rgba(249, 250, 251, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.auth-card__body {
    padding: 20px 32px 32px;
    background: transparent;
}

.auth-brand {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.auth-brand__logos {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.auth-brand__logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.auth-brand__logo--habib {
    max-height: 50px;
}

.auth-brand__divider {
    width: 1px;
    height: 28px;
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.25) 0%, rgba(148, 163, 184, 0.95) 50%, rgba(148, 163, 184, 0.25) 100%);
}

.auth-brand__platform {
    display: grid;
    gap: 2px;
    align-content: center;
    min-height: 52px;
    padding: 8px 12px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.98));
    color: #111827;
}

.auth-brand__platform strong {
    display: block;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.auth-brand__platform small {
    display: block;
    color: #475569;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-brand__caption {
    margin: 0;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.auth-card .eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 0 14px;
    padding: 7px 14px;
    border: 1px solid rgba(99, 102, 241, 0.14);
    border-radius: 999px;
    background: rgba(238, 242, 255, 0.88);
    box-shadow: inset 0 0 0 1px rgba(99, 102, 241, 0.04);
    color: #4338ca;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.09em;
}

.auth-card h1 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 42px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.auth-card .subtitle {
    max-width: 58ch;
    margin: 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 400;
}

.auth-card .form,
.auth-card .form--branch-select {
    gap: 18px;
}

.auth-card .form-group,
.auth-card .field {
    gap: 9px;
}

.auth-card label {
    color: #111827;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.auth-card .input,
.auth-card select {
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid #b8c2d1;
    border-radius: 16px;
    background: #f5f7fa;
    color: #111827;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.15s ease,
        transform 0.08s ease;
}

.auth-card .input:hover,
.auth-card select:hover {
    border-color: #94a3b8;
    background: #f9fbff;
}

.auth-card .input:focus,
.auth-card select:focus {
    border-color: #818cf8;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(129, 140, 248, 0.14),
        0 8px 18px rgba(99, 102, 241, 0.08);
}

.auth-card .help-text,
.auth-card .muted {
    max-width: 60ch;
    color: #667085;
    font-size: 13px;
    line-height: 1.6;
}

.auth-card .alert {
    margin-bottom: 22px;
    border-radius: 16px;
}

.auth-card .actions {
    margin-top: 8px;
}

.auth-card .button {
    justify-content: center;
    min-height: 54px;
    border: 1px solid #0f172a;
    border-radius: 16px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    box-shadow:
        0 18px 35px rgba(15, 23, 42, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.auth-card .button:hover {
    opacity: 1;
    filter: brightness(1.03);
}

.auth-card .button:focus {
    box-shadow:
        0 0 0 4px rgba(15, 23, 42, 0.14),
        0 18px 35px rgba(15, 23, 42, 0.18);
}

.auth-card--login .form--login .actions {
    display: block;
}

.auth-card--login .form--login .button {
    width: 100%;
}

.auth-card--login .footer-note {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(226, 232, 240, 0.95);
    color: #667085;
    font-size: 12px;
    line-height: 1.7;
}

.auth-card--branch-select .muted {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
    color: #374151;
}

.auth-user-card {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f5f7fa 0%, #d1d5db73 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 10px 24px rgba(15, 23, 42, 0.05);
}

.auth-user-card__avatar {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #173b70 0%, #174d95 100%);
    box-shadow:
        0 12px 24px rgba(23, 77, 149, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.auth-user-card__icon {
    width: 24px;
    height: 24px;
    display: block;
}

.auth-user-card__content {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.auth-user-card__name,
.auth-user-card__username {
    margin: 0;
    min-width: 0;
    overflow-wrap: anywhere;
}

.auth-user-card__name {
    color: #0f172a;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.auth-user-card__username {
    color: #64748b;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 500;
}

.auth-card--branch-select .form--branch-select {
    gap: 18px;
}

.auth-card--branch-select .form--branch-select .actions {
    display: block;
}

.auth-card--branch-select .form--branch-select .button {
    width: 100%;
}

.auth-card--branch-select .inline-form {
    width: 100%;
}

.auth-card--branch-select .inline-form .button {
    width: 100%;
}

.auth-layout__footer {
    position: relative;
    text-align: center;
}

.auth-layout__footer-text {
    color: #667085;
    font-size: 12px;
    line-height: 1.7;
}

@media (min-width: 641px) {
    .auth-page {
        gap: 24px;
    }

    .auth-card--branch-select .actions {
        align-items: stretch;
    }

    .auth-card--branch-select .inline-form {
        width: auto;
    }

    .auth-card--branch-select .inline-form .button {
        width: auto;
        min-width: 180px;
    }
}

@media (max-width: 640px) {
    .auth-page {
        padding: 24px 16px;
    }

    .auth-card {
        border-radius: 24px;
    }

    .auth-card__header {
        padding: 22px 20px 12px;
    }

    .auth-card__body {
        padding: 18px 20px 24px;
    }

    .auth-card h1 {
        font-size: 32px;
        line-height: 1.08;
    }

    .auth-brand__logos {
        gap: 10px;
    }

    .auth-brand__logo--habib {
        max-height: 42px;
    }

    .auth-brand__platform {
        min-height: 44px;
        padding: 7px 10px;
    }

    .auth-brand__platform strong {
        font-size: 13px;
    }

    .auth-brand__platform small {
        font-size: 10px;
    }

    .auth-brand__divider {
        height: 22px;
    }

    .auth-card .button,
    .auth-card .button-secondary {
        width: 100%;
    }

    .auth-card .actions {
        display: grid;
    }
        .auth-user-card {
        align-items: flex-start;
        padding: 14px;
    }

    .auth-user-card__avatar {
        flex-basis: 46px;
        width: 46px;
        height: 46px;
    }

    .auth-user-card__icon {
        width: 21px;
        height: 21px;
    }
}

.eyebrow {
    background: #000 !important;
    color: #fff!important;
}
.auth-card {
    border: none !important;
}
.auth-card .input {
        border: none !important;

}
.auth-card select {
    border: none!important;
}
