/* Shared auth page styles (login, forgot-password) */

*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --auth-bg-deep: #071525;
    --auth-bg-mid: #0c2340;
    --auth-brand-accent: #22d3ee;
    --auth-brand-accent-strong: #06b6d4;
    --auth-brand-deep: #1e40af;
    --auth-brand-glow: rgba(34, 211, 238, 0.22);
    --auth-btn-start: #1e3a8a;
    --auth-btn-end: #0891b2;
    --auth-btn-hover-end: #22d3ee;
    --auth-btn-shadow: rgba(8, 145, 178, 0.38);
    --auth-card-bg: #ffffff;
    --auth-card-border: rgba(255, 255, 255, 0.08);
    --auth-text-muted: #6b7280;
    --auth-enter-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Base layout (forgot-password, centered card) ─────────────────────────── */

body {
    font-family: var(--wabi-font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
    background: var(--auth-bg-deep);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 15% 35%, rgba(30, 64, 175, 0.28) 0%, transparent 58%),
        radial-gradient(ellipse 55% 45% at 85% 75%, rgba(34, 211, 238, 0.14) 0%, transparent 52%),
        linear-gradient(165deg, var(--auth-bg-deep) 0%, var(--auth-bg-mid) 48%, #0f2847 100%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* ─── Login split layout ───────────────────────────────────────────────────── */

.auth-page--login {
    --auth-login-pad-y: clamp(2.5rem, 5vh, 3.5rem);
    --auth-login-pad-x: clamp(2rem, 4vw, 3rem);
    --auth-login-content-width: min(100%, 30rem);
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    min-height: 100dvh;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

.auth-page--login .auth-shell {
    width: 100%;
    min-height: 0;
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
}

.auth-page--login .auth-brand-panel {
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    padding: var(--auth-login-pad-y) var(--auth-login-pad-x);
    overflow: hidden;
}

.auth-page--login .auth-brand-panel__inner {
    width: var(--auth-login-content-width);
    max-width: var(--auth-login-content-width);
    height: auto;
    max-height: calc(100dvh - (2 * var(--auth-login-pad-y)));
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 1.125rem;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0;
    margin: 0 auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.auth-page--login .auth-brand-panel__brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

.auth-page--login .auth-brand-panel__eyebrow {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(151, 212, 255, 0.78);
    text-align: center;
}

.auth-page--login .auth-brand-panel__mark-surface {
    position: relative;
    width: min(100%, 34rem);
    padding: 1rem 1.125rem;
    border-radius: 1.75rem;
    background:
        linear-gradient(180deg, rgba(5, 12, 24, 0.82), rgba(3, 9, 20, 0.94)),
        radial-gradient(circle at 15% 10%, rgba(34, 211, 238, 0.22), transparent 40%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 26px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}

.auth-page--login .auth-brand-panel__mark-surface::after {
    content: '';
    position: absolute;
    inset: auto 1.125rem 0.75rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(34, 211, 238, 0), rgba(34, 211, 238, 0.38), rgba(34, 211, 238, 0));
}

.auth-page--login .auth-brand-panel__wordmark {
    width: min(100%, 32rem);
    height: auto;
    max-height: 7.75rem;
    margin: 0 auto;
    display: block;
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.36));
}

.auth-page--login .auth-brand-panel__institution {
    margin: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.52);
    text-align: center;
}

.auth-page--login .auth-brand-panel__content {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-self: stretch;
    padding-left: 0;
    box-sizing: border-box;
}

.auth-page--login .auth-brand-panel__lede {
    margin: 0;
    max-width: 26rem;
    font-size: clamp(1.1875rem, 2.25vh, 1.55rem);
    font-weight: 600;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.94);
}

.auth-page--login .auth-brand-panel__summary {
    margin: 0;
    max-width: 26rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(221, 232, 250, 0.74);
}

.auth-page--login .auth-brand-panel__summary:last-of-type {
    margin-bottom: 0;
}

.auth-page--login .auth-brand-panel__features {
    margin: 0.35rem 0 0;
    gap: 0.875rem;
    width: 100%;
    max-width: 100%;
    padding: 0;
}

.auth-page--login .auth-brand-panel__features li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem 0.95rem;
    border-radius: 1rem;
    background: rgba(8, 19, 38, 0.34);
    border: 1px solid rgba(151, 212, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-page--login .auth-brand-panel__feature-body {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    box-sizing: border-box;
}

.auth-page--login .auth-brand-panel__feature-title {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9375rem;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.96);
}

.auth-page--login .auth-brand-panel__feature-desc {
    font-size: 0.875rem;
    line-height: 1.55;
    color: rgba(221, 232, 250, 0.66);
}

.auth-page--login .auth-brand-panel__feature-icon {
    position: static;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.875rem;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, rgba(20, 72, 118, 0.55), rgba(8, 145, 178, 0.22));
    border-color: rgba(103, 232, 249, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-page--login .auth-brand-panel__trust-strip {
    margin-top: 0.65rem;
    padding-top: 1rem;
    font-size: 0.6875rem;
    letter-spacing: 0.07em;
    text-align: left;
    width: 100%;
    max-width: 100%;
    color: rgba(186, 204, 228, 0.45);
}

.auth-page--login .auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 0;
    padding: var(--auth-login-pad-y) var(--auth-login-pad-x);
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(4, 12, 24, 0.18), rgba(5, 16, 30, 0.04)),
        radial-gradient(circle at 50% 50%, rgba(34, 211, 238, 0.08), transparent 55%);
}

.auth-page--login .auth-card--login {
    width: 100%;
    max-width: var(--auth-login-content-width);
    max-height: calc(100dvh - (2 * var(--auth-login-pad-y)));
    margin: 0 auto;
    border-radius: 1.5rem;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.06),
        0 32px 70px rgba(2, 12, 27, 0.32),
        0 10px 24px rgba(2, 12, 27, 0.14);
}

.auth-page--login .auth-card__header {
    padding: 2.1rem 2.25rem 0;
}

.auth-page--login .auth-card__title {
    font-size: 2rem;
    line-height: 1.2;
}

.auth-page--login .auth-card__subtitle {
    font-size: 0.9375rem;
    line-height: 1.5;
}

.auth-page--login .auth-body {
    padding: 1.65rem 2.25rem 1.85rem;
}

.auth-page--login .auth-footer {
    padding: 1rem 2.25rem 1.2rem;
    font-size: 0.75rem;
}

.auth-page--login .form-group {
    margin-bottom: 1.125rem;
}

@media (max-height: 820px) {
    .auth-page--login .auth-brand-panel__inner {
        gap: 0.875rem;
    }

    .auth-page--login .auth-brand-panel__mark-surface {
        padding: 0.85rem 1rem;
    }

    .auth-page--login .auth-brand-panel__features {
        gap: 0.75rem;
    }
}

@media (max-height: 720px) {
    .auth-page--login .auth-brand-panel__wordmark {
        max-height: 6.25rem;
    }

    .auth-page--login .auth-brand-panel__lede {
        font-size: 1.0625rem;
    }
}

.auth-page--login .skip-to-content:focus {
    z-index: 100;
}

.auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    width: 100%;
    min-height: 100vh;
}

.auth-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem);
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-brand-panel__inner {
    position: relative;
    z-index: 2;
    max-width: 34rem;
    animation: auth-brand-enter 0.7s var(--auth-enter-ease) both;
}

.auth-brand-wordmark {
    width: min(100%, 320px);
    height: auto;
    max-height: 96px;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.auth-brand-panel__institution {
    margin: 0 0 1.125rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.auth-brand-panel__eyebrow {
    margin: 0 0 1rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.auth-brand-panel__lede {
    margin: 0 0 1.25rem;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 30rem;
}

.auth-brand-panel__summary {
    margin: 0 0 0.875rem;
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
    max-width: 30rem;
}

.auth-brand-panel__summary:last-of-type {
    margin-bottom: 1.5rem;
}

.auth-brand-panel__features {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.auth-brand-panel__features li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.auth-brand-panel__feature-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.auth-brand-panel__feature-title {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.92);
}

.auth-brand-panel__feature-desc {
    display: block;
    font-size: 0.8125rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
}

.auth-brand-panel__trust-strip {
    margin: 0;
    padding-top: 1.125rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.auth-brand-panel__feature-icon {
    flex-shrink: 0;
    width: 2.125rem;
    height: 2.125rem;
    border-radius: 9px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--auth-brand-accent);
    font-size: 0.8125rem;
}

.auth-brand-panel__glow {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--auth-brand-glow) 0%, transparent 68%);
    bottom: -120px;
    left: -80px;
    pointer-events: none;
    animation: auth-glow-drift 20s ease-in-out infinite alternate;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.25rem, 4vw, 3rem);
    background: rgba(0, 0, 0, 0.12);
}

/* ─── Card ─────────────────────────────────────────────────────────────────── */

.auth-card {
    position: relative;
    z-index: 1;
    background: var(--auth-card-bg);
    border-radius: 20px;
    box-shadow:
        0 0 0 1px var(--auth-card-border),
        0 24px 64px rgba(0, 0, 0, 0.42),
        0 8px 24px rgba(0, 0, 0, 0.18);
    width: 100%;
    max-width: 420px;
    overflow: hidden;
    animation: card-enter 0.5s var(--auth-enter-ease) both;
}

.auth-card--login {
    max-width: 440px;
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(15, 23, 42, 0.06),
        0 20px 50px rgba(0, 0, 0, 0.28),
        0 6px 18px rgba(0, 0, 0, 0.12);
}

.auth-card__mobile-brand {
    display: none;
    flex-direction: column;
    padding: 1.5rem 1.5rem 0;
    align-items: center;
    justify-content: center;
    gap: 0.875rem;
    text-align: center;
}

.auth-card__header {
    padding: 2rem 2rem 0;
}

.auth-card__title {
    margin: 0 0 0.375rem;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--wabi-color-text, #111827);
}

.auth-card__subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: var(--auth-text-muted);
}

/* Legacy gradient header (forgot-password) */
.auth-header {
    background: linear-gradient(135deg, var(--wabi-color-primary, #4f46e5) 0%, #5b52e8 55%, #4338ca 100%);
    padding: 2.25rem 2rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.auth-brand-logo {
    height: 64px;
    width: 64px;
    object-fit: contain;
    margin: 0 auto 1.25rem;
    filter: drop-shadow(0 4px 12px rgba(15, 23, 42, 0.12));
    display: block;
    position: relative;
    z-index: 1;
}

.auth-brand-logo.auth-brand-wordmark {
    width: min(100%, 280px);
    height: auto;
    max-height: 72px;
    margin-left: auto;
    margin-right: auto;
    object-position: center center;
}

.auth-page--login .auth-card__mobile-brand .auth-brand-wordmark {
    width: min(100%, 22rem);
    max-height: 6rem;
    margin-bottom: 0.125rem;
}

.auth-header h1 {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.375rem;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 1;
}

.auth-header p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.auth-body {
    padding: 1.75rem 2rem 2rem;
}

/* ─── Form ─────────────────────────────────────────────────────────────────── */

.auth-form__field {
    animation: auth-field-enter 0.55s var(--auth-enter-ease) both;
    animation-delay: var(--field-delay, 0s);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wabi-color-text-secondary, #374151);
    margin-bottom: 0.5rem;
    display: block;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    width: 100%;
}

.auth-input-icon {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wabi-color-muted, #9ca3af);
    font-size: 0.8125rem;
    pointer-events: none;
    z-index: 2;
    transition: color 0.15s ease;
}

.auth-input-wrap:focus-within .auth-input-icon {
    color: var(--auth-brand-accent-strong, #06b6d4);
}

.auth-input {
    border: 1.5px solid var(--wabi-color-border, #e5e7eb);
    border-radius: 11px;
    padding: 0.72rem 0.875rem 0.72rem 2.5rem;
    font-size: 0.9375rem;
    color: var(--wabi-color-text, #111827);
    background: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-family: inherit;
    width: 100%;
}

.auth-input-wrap--password .auth-input {
    padding-right: 2.75rem;
}

.form-control.auth-input:focus {
    border-color: var(--auth-brand-accent-strong, #06b6d4);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.14);
    background: #fff;
    outline: none;
}

.auth-input::placeholder {
    color: #9ca3af;
    font-size: 0.875rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--wabi-color-muted, #9ca3af);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, background 0.15s ease;
}

.auth-password-toggle:hover {
    color: var(--auth-brand-accent-strong, #06b6d4);
    background: rgba(34, 211, 238, 0.1);
}

.auth-password-toggle:focus-visible {
    outline: 2px solid var(--wabi-color-primary, #4f46e5);
    outline-offset: 2px;
}

/* Legacy form-control (forgot-password + bootstrap validation) */
.auth-input-wrap .form-control.auth-input {
    padding: 0.72rem 0.875rem 0.72rem 2.75rem;
    border-radius: 11px;
    background: #f9fafb;
}

.auth-input-wrap--password .form-control.auth-input {
    padding-right: 2.75rem;
}

.form-control::placeholder {
    color: #9ca3af;
    font-size: 0.875rem;
}

.auth-form__actions {
    margin-top: 0.25rem;
}

.auth-form__help {
    text-align: center;
    margin: 0.875rem 0 0;
}

/* ─── Button ───────────────────────────────────────────────────────────────── */

.btn-auth {
    width: 100%;
    padding: 0.78rem 1rem;
    background: linear-gradient(135deg, var(--auth-btn-start) 0%, var(--auth-btn-end) 100%);
    border: none;
    border-radius: 11px;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: inherit;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    box-shadow: 0 4px 16px var(--auth-btn-shadow);
    position: relative;
    overflow: hidden;
}

.btn-auth::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, transparent 48%);
    pointer-events: none;
}

.btn-auth:hover:not(:disabled) {
    opacity: 0.98;
    transform: translateY(-1px);
    background: linear-gradient(135deg, var(--auth-brand-deep) 0%, var(--auth-btn-hover-end) 100%);
    box-shadow: 0 8px 22px rgba(34, 211, 238, 0.34);
}

.btn-auth:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(8, 145, 178, 0.28);
}

.btn-auth:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-auth:focus-visible {
    outline: 2px solid var(--auth-brand-accent-strong, #06b6d4);
    outline-offset: 3px;
}

.btn-auth.btn-auth--success {
    background: linear-gradient(135deg, var(--wabi-color-success, #16a34a) 0%, #15803d 100%) !important;
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35) !important;
}

/* ─── Alerts & links ───────────────────────────────────────────────────────── */

.auth-alert {
    border-radius: 10px;
    border: none;
    border-left: 4px solid var(--wabi-color-danger, #dc2626);
    background: #fef2f2;
    color: #991b1b;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.auth-alert.auth-alert--animate {
    animation: shake 0.4s ease;
}

.link-forgot {
    color: var(--auth-brand-deep, #1e40af);
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.15s ease;
}

.link-forgot:hover {
    color: var(--auth-brand-accent-strong, #06b6d4);
    text-decoration: underline;
}

.auth-footer {
    padding: 0.875rem 2rem 1.25rem;
    text-align: center;
    border-top: 1px solid #f3f4f6;
}

.auth-footer p {
    margin: 0;
    color: var(--auth-text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.auth-footer i {
    color: var(--wabi-color-primary, #4f46e5);
    font-size: 0.6875rem;
}

.spinner-border-sm {
    width: 0.9rem;
    height: 0.9rem;
    border-width: 0.14em;
}

/* ─── Animations ───────────────────────────────────────────────────────────── */

@keyframes card-enter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes auth-brand-enter {
    from {
        opacity: 0;
        transform: translateX(-16px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes auth-field-enter {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes auth-glow-drift {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(30px, -20px) scale(1.06); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

@media (prefers-reduced-motion: reduce) {
    .auth-card,
    .auth-brand-panel__inner,
    .auth-form__field,
    .auth-brand-panel__glow {
        animation: none;
    }

    .btn-auth:hover:not(:disabled) {
        transform: none;
    }
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */

@media (max-width: 960px) {
    .auth-page--login {
        height: auto;
        max-height: none;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .auth-page--login .auth-shell {
        height: auto;
        max-height: none;
        min-height: 100dvh;
        overflow: visible;
    }

    .auth-page--login .auth-form-panel {
        height: auto;
        overflow: visible;
    }

    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        background: transparent;
        min-height: 100vh;
    }

    .auth-card__mobile-brand {
        display: flex;
    }

    .auth-card__mobile-brand .auth-brand-logo {
        margin-bottom: 0;
    }

    .auth-card__header {
        padding-top: 1.25rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-card,
    .auth-card--login {
        border-radius: 16px;
    }

    .auth-header {
        padding: 1.75rem 1.5rem 1.5rem;
    }

    .auth-body {
        padding: 1.5rem;
    }

    .auth-card__header {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .auth-footer {
        padding: 0.75rem 1.5rem 1rem;
    }
}
