/* ========================================================================== 
   EWER 2.0 CMS — AUTHENTICATION EXPERIENCE v1.2 — STABLE RESPONSIVE
   Presentation and accessibility only. Existing IDs, endpoints and auth
   workflows remain unchanged.
   ========================================================================== */

:root {
    --auth-navy: #10233f;
    --auth-navy-deep: #09182d;
    --auth-blue: #2563eb;
    --auth-blue-strong: #1d4ed8;
    --auth-green: #14804a;
    --auth-green-soft: #eaf8f0;
    --auth-surface: rgba(255, 255, 255, 0.96);
    --auth-border: rgba(15, 35, 63, 0.12);
    --auth-text: #172033;
    --auth-muted: #667085;
    --auth-shadow: 0 28px 80px rgba(9, 24, 45, 0.22);
    --auth-radius: 24px;
    --auth-control-height: 52px;
    --auth-touch-target: 44px;
    --auth-page-gutter: clamp(0.75rem, 2.6vw, 2.5rem);
}

.auth-experience {
    min-height: 100vh;
    min-height: 100dvh;
    padding: var(--auth-page-gutter) !important;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}

.auth-shell {
    position: relative;
    z-index: 2;
    width: min(100%, 1120px);
    min-height: min(720px, calc(100dvh - (2 * var(--auth-page-gutter))));
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: var(--auth-shadow);
    animation: authShellEnter 520ms cubic-bezier(.2, .8, .2, 1) both;
}

.auth-information-panel {
    position: relative;
    isolation: isolate;
    min-height: 100%;
    padding: clamp(2rem, 4vw, 4rem);
    display: flex;
    flex-direction: column;
    color: #fff;
    background:
        radial-gradient(circle at 82% 15%, rgba(84, 198, 126, 0.27), transparent 34%),
        radial-gradient(circle at 10% 86%, rgba(70, 127, 246, 0.22), transparent 38%),
        linear-gradient(145deg, var(--auth-navy) 0%, var(--auth-navy-deep) 100%);
    overflow: hidden;
}

.auth-information-panel::before,
.auth-information-panel::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    z-index: -1;
}

.auth-information-panel::before {
    width: 300px;
    height: 300px;
    right: -135px;
    top: 28%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 48px rgba(255, 255, 255, 0.025), 0 0 0 96px rgba(255, 255, 255, 0.018);
}

.auth-information-panel::after {
    width: 160px;
    height: 160px;
    left: -55px;
    bottom: -65px;
    background: rgba(42, 180, 103, 0.12);
    filter: blur(2px);
}

.auth-panel-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-panel-brand h1 {
    margin: 0.2rem 0 0.1rem;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    line-height: 1.15;
    color: #fff;
}

.auth-panel-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
}

.auth-brand-mark-large {
    width: 82px;
    height: 82px;
    margin: 0;
    flex: 0 0 auto;
    border-radius: 22px;
}

.auth-panel-copy {
    margin: auto 0;
    max-width: 520px;
    padding: 3rem 0;
}

.auth-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-panel-copy h2 {
    max-width: 480px;
    margin: 1.25rem 0 1rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.35rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.auth-panel-copy > p {
    max-width: 500px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.7;
}

.auth-assurance-list {
    display: grid;
    gap: 0.85rem;
}

.auth-assurance-list > div {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.055);
    backdrop-filter: blur(10px);
}

.auth-assurance-list > div > span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 12px;
    background: rgba(72, 199, 124, 0.16);
    color: #7ce3a8;
}

.auth-assurance-list p {
    margin: 0;
    display: grid;
    gap: 0.15rem;
}

.auth-assurance-list strong {
    color: #fff;
    font-size: 0.9rem;
}

.auth-assurance-list small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
}

.auth-panel-footer {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.78rem;
}

.auth-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #55d58b;
    box-shadow: 0 0 0 5px rgba(85, 213, 139, 0.13);
}

.auth-card.auth-card-premium {
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: clamp(2rem, 4vw, 4rem) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--auth-surface) !important;
    box-shadow: none !important;
    overflow-y: auto;
}

.auth-form {
    width: min(100%, 440px);
    animation: authFormEnter 360ms cubic-bezier(.2, .8, .2, 1) both;
}

#registerForm.auth-form {
    width: min(100%, 620px);
}

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

.auth-form-heading {
    margin-bottom: 2rem;
}

.auth-form-heading h2,
.recovery-step-intro h3 {
    margin: 0.35rem 0 0.55rem;
    color: var(--auth-text);
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.auth-form-heading p,
.recovery-step-intro p {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.6;
}

.auth-eyebrow,
.recovery-step-kicker {
    display: inline-block;
    color: var(--auth-green);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-eyebrow-light {
    color: #83e2ab;
}

.auth-field-group {
    margin-bottom: 1.15rem;
}

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.auth-label-row .form-label {
    margin: 0;
}

.auth-forgot-link {
    color: var(--auth-blue);
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
}

.auth-forgot-link:hover,
.auth-forgot-link:focus-visible {
    color: var(--auth-blue-strong);
    text-decoration: underline;
}

.auth-input-shell {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-shell .auth-input-icon {
    position: absolute;
    left: 1rem;
    z-index: 2;
    width: 1rem;
    color: #98a2b3;
    text-align: center;
    pointer-events: none;
    transition: color 180ms ease;
}

.auth-input-shell .form-input {
    min-height: var(--auth-control-height);
    padding: 0.82rem 3rem 0.82rem 2.8rem;
    border: 1px solid #d7deea;
    border-radius: 13px;
    background: #fbfcfe;
    color: var(--auth-text);
    font-size: 0.94rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.auth-input-shell .form-input:hover {
    border-color: #b9c5d6;
    background: #fff;
}

.auth-input-shell:focus-within .form-input {
    border-color: var(--auth-blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.auth-input-shell:focus-within .auth-input-icon {
    color: var(--auth-blue);
}

.auth-password-toggle {
    right: 0.7rem !important;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #667085;
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
    background: #eef3fb;
    color: var(--auth-blue);
    outline: none;
}

.auth-primary-action {
    min-height: var(--auth-control-height);
    justify-content: center;
    margin-top: 0.3rem;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--auth-blue), var(--auth-blue-strong));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.auth-primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.28);
    filter: saturate(1.08);
}

.auth-primary-action:active {
    transform: translateY(0);
}

.auth-secondary-action {
    min-height: 50px;
    justify-content: center;
    border: 1px solid #d7deea;
    border-radius: 13px;
    background: #fff;
    color: #344054;
    box-shadow: 0 4px 12px rgba(15, 35, 63, 0.04);
}

.auth-secondary-action:hover {
    border-color: #aebbd0;
    background: #f8fafc;
    color: var(--auth-blue);
}

.auth-divider {
    position: relative;
    margin: 1.55rem 0 0.65rem;
    text-align: center;
}

.auth-divider::before {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: 1px;
    background: #e4e8ef;
}

.auth-divider span {
    position: relative;
    padding: 0 0.75rem;
    background: var(--auth-surface);
    color: #98a2b3;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.auth-switch-copy {
    margin: 0 0 0.85rem;
    color: var(--auth-muted);
    font-size: 0.84rem;
    text-align: center;
}

.auth-privacy-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-top: 1.35rem;
    padding: 0.85rem 0.95rem;
    border-radius: 12px;
    background: #f5f7fa;
    color: #667085;
    font-size: 0.75rem;
    line-height: 1.55;
}

.auth-privacy-note i {
    margin-top: 0.16rem;
    color: var(--auth-green);
}

.auth-inline-alert {
    margin-bottom: 1rem;
    border-radius: 12px;
    line-height: 1.5;
}

.auth-registration-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem;
}

.auth-grid-span-2 {
    grid-column: 1 / -1;
}

.auth-form .form-select {
    min-height: var(--auth-control-height);
    border-radius: 13px;
    border-color: #d7deea;
    background-color: #fbfcfe;
}

.auth-text-action {
    width: 100%;
    margin-top: 0.85rem;
    padding: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    color: #667085;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-text-action:hover,
.auth-text-action:focus-visible {
    color: var(--auth-blue);
    outline: none;
}

/* Recovery modal ---------------------------------------------------------- */
#forgotPasswordModal,
#forceUpdatePasswordModal {
    --ewer-modal-width: 38rem;
}

.auth-recovery-overlay:not(.hidden) {
    background: rgba(7, 18, 35, 0.72) !important;
    backdrop-filter: blur(14px) saturate(1.1) !important;
}

.auth-recovery-modal {
    border: 1px solid rgba(255, 255, 255, 0.58) !important;
    border-radius: 24px !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 30px 90px rgba(5, 16, 34, 0.38) !important;
    animation: recoveryModalEnter 320ms cubic-bezier(.2, .8, .2, 1) both;
}

.auth-recovery-header {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.6rem 1.7rem 1.25rem;
    border-bottom: 1px solid #e8edf4;
    background: linear-gradient(180deg, #fff 0%, #fbfcfe 100%);
}

.auth-recovery-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
    background: var(--auth-green-soft);
    color: var(--auth-green);
    font-size: 1.15rem;
    box-shadow: inset 0 0 0 1px rgba(20, 128, 74, 0.08);
}

.auth-recovery-icon.is-warning {
    background: #fff7e8;
    color: #b35c00;
}

.auth-recovery-heading {
    min-width: 0;
    padding-right: 2.6rem;
}

.auth-recovery-heading h2 {
    margin: 0.25rem 0 0.35rem;
    color: var(--auth-text);
    font-size: 1.45rem;
    letter-spacing: -0.02em;
}

.auth-recovery-heading p {
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.auth-recovery-close {
    position: absolute !important;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px !important;
    height: 38px !important;
    display: grid !important;
    place-items: center !important;
    border-radius: 12px !important;
    color: #667085 !important;
}

.auth-recovery-close:hover,
.auth-recovery-close:focus-visible {
    background: #eef2f7 !important;
    color: #172033 !important;
    outline: none;
}

.auth-recovery-progress {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr auto;
    align-items: center;
    gap: 0.6rem;
    padding: 1.1rem 1.7rem;
    border-bottom: 1px solid #edf0f5;
    background: #f8fafc;
}

.recovery-progress-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #98a2b3;
    transition: color 200ms ease;
}

.recovery-progress-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid #d0d7e2;
    border-radius: 50%;
    background: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    transition: all 200ms ease;
}

.recovery-progress-item span:last-child {
    display: grid;
    gap: 0.05rem;
}

.recovery-progress-item strong {
    font-size: 0.72rem;
}

.recovery-progress-item small {
    font-size: 0.64rem;
    white-space: nowrap;
}

.recovery-progress-item.is-active,
.recovery-progress-item.is-complete {
    color: var(--auth-green);
}

.recovery-progress-item.is-active .recovery-progress-number {
    border-color: var(--auth-green);
    background: var(--auth-green);
    color: #fff;
    box-shadow: 0 0 0 5px rgba(20, 128, 74, 0.1);
}

.recovery-progress-item.is-complete .recovery-progress-number {
    border-color: #99d7b4;
    background: var(--auth-green-soft);
    color: var(--auth-green);
}

.recovery-progress-line {
    height: 2px;
    border-radius: 999px;
    background: #dde3ec;
}

.auth-recovery-body {
    padding: 1.6rem 1.7rem !important;
}

.recovery-step {
    animation: recoveryStepEnter 260ms ease both;
}

.recovery-step-intro {
    margin-bottom: 1.35rem;
}

.recovery-step-intro h3 {
    font-size: 1.3rem;
}

.auth-question-card {
    min-height: 62px;
    padding: 0.95rem 1rem;
    display: flex;
    align-items: center;
    border: 1px solid #dce5f0;
    border-left: 4px solid var(--auth-green);
    border-radius: 12px;
    background: #f8fbf9;
    color: #344054;
    font-weight: 700;
    line-height: 1.5;
}

.auth-feedback {
    margin-bottom: 1rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.84rem;
    line-height: 1.5;
}

.auth-feedback.is-error {
    border-color: #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

.auth-feedback.is-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.password-strength {
    margin-top: 0.55rem;
    display: grid;
    gap: 0.35rem;
}

.password-strength-bar {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e8edf4;
}

.password-strength-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #d14343;
    transition: width 220ms ease, background 220ms ease;
}

.password-strength small {
    color: #7b8494;
    font-size: 0.72rem;
}

.password-strength[data-level="1"] .password-strength-bar span { width: 25%; background: #d14343; }
.password-strength[data-level="2"] .password-strength-bar span { width: 50%; background: #d97706; }
.password-strength[data-level="3"] .password-strength-bar span { width: 75%; background: #1d7ab8; }
.password-strength[data-level="4"] .password-strength-bar span { width: 100%; background: var(--auth-green); }

.auth-recovery-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.9rem 1.4rem;
    border-top: 1px solid #edf0f5;
    background: #f8fafc;
    color: #7a8493;
    font-size: 0.72rem;
    text-align: center;
}

.auth-security-notice {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border: 1px solid #fde3b5;
    border-radius: 12px;
    background: #fffbeb;
    color: #8a4b09;
    font-size: 0.82rem;
    line-height: 1.5;
}

/* Dark mode --------------------------------------------------------------- */
html.dark .auth-card.auth-card-premium,
body.dark-mode .auth-card.auth-card-premium {
    --auth-surface: rgba(15, 23, 42, 0.97);
    --auth-text: #f3f6fb;
    --auth-muted: #aab4c5;
    background: var(--auth-surface) !important;
}

html.dark .auth-input-shell .form-input,
body.dark-mode .auth-input-shell .form-input,
html.dark .auth-form .form-select,
body.dark-mode .auth-form .form-select {
    border-color: #334155;
    background: #111c2e;
    color: #f5f7fb;
}

html.dark .auth-secondary-action,
body.dark-mode .auth-secondary-action {
    border-color: #334155;
    background: #111c2e;
    color: #d9e2ef;
}

html.dark .auth-privacy-note,
body.dark-mode .auth-privacy-note {
    background: #111c2e;
    color: #aab4c5;
}

html.dark .auth-recovery-modal,
body.dark-mode .auth-recovery-modal {
    --auth-text: #f3f6fb;
    --auth-muted: #aab4c5;
    border-color: rgba(148, 163, 184, 0.2) !important;
    background: #111c2e !important;
}

html.dark .auth-recovery-header,
body.dark-mode .auth-recovery-header,
html.dark .auth-recovery-progress,
body.dark-mode .auth-recovery-progress,
html.dark .auth-recovery-footer,
body.dark-mode .auth-recovery-footer {
    border-color: #26354a;
    background: #0f192a;
}

html.dark .auth-question-card,
body.dark-mode .auth-question-card {
    border-color: #334155;
    border-left-color: #55d58b;
    background: #142337;
    color: #e5edf7;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 940px) {
    .auth-experience {
        --auth-page-gutter: clamp(0.75rem, 2.5vw, 1.25rem);
        align-items: flex-start !important;
    }

    .auth-shell {
        width: min(100%, 620px);
        min-height: 0;
        margin: 0 auto;
        grid-template-columns: 1fr;
        border-radius: clamp(20px, 3vw, 26px);
    }

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

    .auth-card.auth-card-premium {
        min-height: 0;
        padding: clamp(1.5rem, 5vw, 2.5rem) !important;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        overflow: visible;
        border-radius: inherit !important;
    }

    .auth-mobile-brand {
        width: 100%;
        margin: 0 0 clamp(1.25rem, 4vw, 1.9rem);
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 0.85rem;
        flex: 0 0 auto;
    }

    .auth-mobile-brand .auth-brand-mark {
        width: clamp(48px, 10vw, 58px);
        height: clamp(48px, 10vw, 58px);
        margin: 0;
        padding: 5px;
        flex: 0 0 auto;
        border-radius: 16px;
    }

    .auth-mobile-brand > div:last-child {
        min-width: 0;
        display: grid;
        gap: 0.15rem;
    }

    .auth-mobile-brand strong {
        color: var(--auth-text);
        font-size: clamp(0.95rem, 3vw, 1.05rem);
        line-height: 1.2;
    }

    .auth-mobile-brand span {
        color: var(--auth-muted);
        font-size: 0.76rem;
    }

    .auth-form,
    #registerForm.auth-form {
        width: min(100%, 500px);
        margin-inline: auto;
    }
}

@media (max-width: 640px) {
    .auth-experience {
        --auth-page-gutter: 0.75rem;
        padding-top: max(var(--auth-page-gutter), env(safe-area-inset-top)) !important;
        padding-right: max(var(--auth-page-gutter), env(safe-area-inset-right)) !important;
        padding-bottom: max(var(--auth-page-gutter), env(safe-area-inset-bottom)) !important;
        padding-left: max(var(--auth-page-gutter), env(safe-area-inset-left)) !important;
    }

    .auth-shell {
        width: 100%;
        border-radius: 20px;
        box-shadow: 0 16px 42px rgba(9, 24, 45, 0.18);
    }

    .auth-card.auth-card-premium {
        padding: clamp(1.1rem, 5vw, 1.6rem) !important;
        border-radius: 20px !important;
    }

    .auth-form-heading {
        margin-bottom: clamp(1.25rem, 5vw, 1.75rem);
    }

    .auth-form-heading h2 {
        font-size: clamp(1.55rem, 8vw, 1.95rem);
    }

    .auth-form-heading p,
    .recovery-step-intro p {
        font-size: clamp(0.86rem, 3.6vw, 0.94rem);
    }

    .auth-label-row {
        flex-wrap: wrap;
        row-gap: 0.35rem;
    }

    .auth-forgot-link {
        min-height: var(--auth-touch-target);
        display: inline-flex;
        align-items: center;
        padding: 0.45rem 0;
        white-space: nowrap;
    }

    .auth-input-shell .form-input,
    .auth-form .form-select,
    .auth-primary-action,
    .auth-secondary-action {
        min-height: max(var(--auth-control-height), var(--auth-touch-target));
        font-size: 1rem;
    }

    .auth-password-toggle {
        width: var(--auth-touch-target);
        height: var(--auth-touch-target);
        right: 0.35rem !important;
    }

    .auth-registration-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-grid-span-2 {
        grid-column: auto;
    }

    .auth-primary-action:hover {
        transform: none;
    }

    .auth-recovery-overlay:not(.hidden) {
        padding: max(0.65rem, env(safe-area-inset-top)) max(0.65rem, env(safe-area-inset-right)) max(0.65rem, env(safe-area-inset-bottom)) max(0.65rem, env(safe-area-inset-left)) !important;
        align-items: flex-end !important;
    }

    .auth-recovery-modal {
        width: 100% !important;
        max-height: calc(100dvh - 1.3rem) !important;
        border-radius: 22px 22px 16px 16px !important;
    }

    .auth-recovery-header,
    .auth-recovery-body {
        padding-left: 1.15rem !important;
        padding-right: 1.15rem !important;
    }

    .auth-recovery-progress {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.35rem;
        padding: 0.9rem 1rem;
    }

    .recovery-progress-line,
    .recovery-progress-item span:last-child {
        display: none;
    }

    .recovery-progress-item {
        justify-content: center;
    }

    .auth-recovery-heading {
        padding-right: 2.25rem;
    }

    .auth-recovery-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }
}

@media (max-width: 420px) {
    .auth-shell,
    .auth-card.auth-card-premium {
        border-radius: 16px !important;
    }

    .auth-card.auth-card-premium {
        padding: 1rem !important;
    }

    .auth-mobile-brand {
        margin-bottom: 1.15rem;
    }

    .auth-mobile-brand .auth-brand-mark {
        width: 46px;
        height: 46px;
        border-radius: 13px;
    }

    .auth-form-heading h2 {
        font-size: clamp(1.45rem, 8.5vw, 1.7rem);
    }
}

@media (max-width: 360px) {
    .auth-label-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-height: 700px) and (min-width: 941px) {
    .auth-shell {
        min-height: 560px;
    }

    .auth-information-panel {
        padding-top: 1.75rem;
        padding-bottom: 1.75rem;
    }

    .auth-panel-copy {
        padding: 1.25rem 0;
    }

    .auth-assurance-list {
        gap: 0.55rem;
    }

    .auth-assurance-list > div {
        padding: 0.6rem 0.75rem;
    }
}

@media (hover: none), (pointer: coarse) {
    .auth-primary-action,
    .auth-secondary-action,
    .auth-password-toggle,
    .auth-text-action,
    .auth-recovery-close {
        min-height: var(--auth-touch-target);
    }

    .auth-primary-action:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-shell,
    .auth-form,
    .auth-recovery-modal,
    .recovery-step,
    .auth-primary-action,
    .auth-input-shell .form-input,
    .password-strength-bar span {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes authShellEnter {
    from { opacity: 0; transform: translateY(16px) scale(0.99); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes authFormEnter {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes recoveryModalEnter {
    from { opacity: 0; transform: translateY(18px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes recoveryStepEnter {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}
