/* Shared responsive authentication flow */
.auth-body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-primary);
    background: var(--theme-primary-soft);
    font-family: "Nunito Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] .auth-body { background: var(--app-background); }
.auth-body *, .auth-body *::before, .auth-body *::after { box-sizing: border-box; }

.auth-skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 9px 14px;
    border-radius: 10px;
    color: var(--theme-on-primary);
    background: var(--theme-primary);
    font-weight: 800;
    text-decoration: none;
    transform: translateY(-160%);
}
.auth-skip-link:focus { transform: translateY(0); }

.auth-shell {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    isolation: isolate;
}
.auth-shell::before,
.auth-shell::after {
    position: fixed;
    z-index: -1;
    border-radius: 50%;
    background: color-mix(in srgb, var(--theme-primary) 3.5%, transparent);
    content: "";
    pointer-events: none;
}
.auth-shell::before { width: 430px; height: 430px; top: -260px; right: -80px; }
.auth-shell::after { width: 330px; height: 330px; right: -140px; bottom: -170px; }

.auth-shell-header {
    width: min(100% - 64px, 1280px);
    min-height: 96px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.auth-shell-brand { width: min(380px, 45vw); }
.auth-shell-brand .site-brand-flyer { width: 100%; display: inline-flex; }
.auth-shell-brand .site-brand-flyer-image { width: 100%; height: auto; max-width: 100%; max-height: 85px; object-fit: contain; }
.auth-shell-actions { display: flex; align-items: center; gap: 22px; }
.auth-home-link { color: var(--text-secondary); font-size: 12px; font-weight: 700; text-decoration: none; }
.auth-home-link:hover { color: var(--primary); }
.auth-theme-toggle {
    width: 64px;
    height: 34px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-secondary);
    background: var(--surface);
    box-shadow: 0 3px 10px color-mix(in srgb, var(--theme-primary) 8.0%, transparent);
    cursor: pointer;
}
.auth-theme-toggle span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; }
.auth-theme-sun { color: var(--theme-on-primary); background: var(--theme-primary); }
.auth-theme-moon { background: transparent; }
html[data-theme="dark"] .auth-theme-sun { color: var(--text-muted); background: transparent; }
html[data-theme="dark"] .auth-theme-moon { color: var(--theme-primary); background: var(--theme-primary); }

.auth-main {
    width: min(100% - 64px, 1280px);
    margin-inline: auto;
    padding: 18px 0 36px;
    display: grid;
    grid-template-columns: minmax(420px, 560px) minmax(520px, 1fr);
    align-items: stretch;
    gap: clamp(52px, 7vw, 108px);
}
.auth-promo {
    min-height: 620px;
    border-radius: 28px;
    display: flex;
    align-items: flex-start;
    color: var(--theme-on-primary);
    background: var(--theme-primary);
    overflow: hidden;
}
.auth-promo-inner { width: 100%; padding: 54px 48px; }
.auth-promo-badge {
    display: inline-flex;
    padding: 8px 13px;
    border-radius: 9px;
    color: var(--theme-on-primary);
    background: var(--theme-primary);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.auth-promo h1 { max-width: 430px; margin: 32px 0 0; font-size: clamp(38px, 3.4vw, 50px); line-height: 1.25; letter-spacing: -.035em; }
.auth-promo p { max-width: 440px; margin: 26px 0 0; color: color-mix(in srgb, var(--text-inverse) 88.0%, transparent); font-size: 15px; line-height: 1.55; }
.auth-promo-list { margin: 24px 0 0; padding: 0; display: grid; gap: 15px; list-style: none; font-size: 13px; font-weight: 700; }
.auth-promo-list li { display: flex; align-items: center; gap: 11px; }
.auth-promo-list span { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; display: grid; place-items: center; background: var(--theme-primary); font-size: 12px; }
.auth-promo-note { margin-top: 30px; padding: 18px 20px; border-radius: 14px; display: grid; gap: 4px; background: var(--theme-primary); }
.auth-promo-note strong { font-size: 13px; }
.auth-promo-note small { color: color-mix(in srgb, var(--text-inverse) 82.0%, transparent); font-size: 10px; line-height: 1.5; }

.auth-stage { min-width: 0; display: flex; align-items: center; justify-content: center; }
.auth-card {
    width: 100%;
    max-width: 596px;
    padding: 38px 40px 32px;
    border: 1px solid var(--theme-primary-soft);
    border-radius: 22px;
    color: var(--text-primary);
    background: var(--surface);
    box-shadow: 0 18px 44px color-mix(in srgb, var(--theme-primary) 11.0%, transparent);
}
.auth-form { width: 100%; }
.auth-card-header { margin-bottom: 24px; }
.auth-card-header--centered { margin-bottom: 22px; display: flex; align-items: center; flex-direction: column; text-align: center; }
.auth-eyebrow { display: block; margin-bottom: 9px; color: var(--theme-primary); font-size: 10px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.auth-eyebrow--success { color: var(--theme-primary); }
.auth-card-header h1, .auth-card-header h2, .auth-form-title { margin: 0; color: var(--text-primary); font-size: 29px; line-height: 1.18; letter-spacing: -.035em; }
.auth-card-header p, .auth-form-description { max-width: 500px; margin: 11px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }

.auth-form-grid { display: grid; gap: 16px; }
.auth-form-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.auth-field--wide { grid-column: 1 / -1; }
.auth-field label, .auth-label, .auth-field-label { display: block; margin-bottom: 7px; color: var(--text-primary); font-size: 11px; font-weight: 800; }
.auth-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.auth-label-row label { margin: 0; }
.auth-label-row span { color: var(--text-muted); font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.auth-field input, .auth-input-wrap input, .auth-field-control input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    color: var(--text-primary);
    background: var(--surface-soft);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.auth-field input::placeholder, .auth-input-wrap input::placeholder { color: var(--text-muted); font-weight: 500; }
.auth-field input:focus, .auth-input-wrap input:focus, .auth-field-control input:focus { border-color: var(--theme-primary); background: var(--surface); box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 11.0%, transparent); }
.auth-field.has-error input { border-color: var(--danger-border); background: var(--danger-soft); }
.auth-hint, .auth-field-hint, .auth-field-help { display: block; margin-top: 6px; color: var(--text-muted); font-size: 9px; line-height: 1.45; }
.auth-error, .auth-card .field-error, .auth-field-errors { display: block; margin-top: 6px; color: var(--danger-text); font-size: 10px; line-height: 1.45; }
.auth-error--centered { text-align: center; }
.auth-password-control, .auth-password-wrap { position: relative; }
.auth-password-control input, .auth-password-wrap input { padding-right: 64px; }
.auth-password-control button, .auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    padding: 7px 8px;
    border: 0;
    border-radius: 7px;
    color: var(--text-secondary);
    background: transparent;
    font-family: inherit;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    transform: translateY(-50%);
    cursor: pointer;
}

.auth-primary-button, .auth-secondary-button {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}
.auth-primary-button { margin-top: 22px; border: 1px solid var(--theme-primary); color: var(--theme-on-primary); background: var(--theme-primary); }
.auth-primary-button:hover { border-color: var(--theme-primary); background: var(--theme-primary); }
.auth-primary-button:disabled { opacity: .7; cursor: wait; }
.auth-secondary-button { margin-top: 18px; border: 1px solid var(--border); color: var(--text-primary); background: var(--surface); }
.auth-secondary-button:hover { border-color: var(--theme-primary); color: var(--theme-primary); }
.auth-legal { margin: 10px 0 0; color: var(--text-muted); font-size: 8px; line-height: 1.5; text-align: center; }
.auth-card-footer, .auth-register { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--text-secondary); font-size: 11px; text-align: center; }
.auth-card-footer a, .auth-register a, .auth-resend button, .auth-support a { color: var(--theme-primary); font-weight: 850; text-decoration: none; }
.auth-alert, .auth-form-alert { margin-bottom: 18px; padding: 11px 13px; border: 1px solid var(--danger-border); border-radius: 10px; color: var(--danger-text); background: var(--danger-soft); font-size: 11px; }
.auth-alert p { margin: 0; }

/* Sign-in screen */
.auth-login-page .auth-main {
    grid-template-columns: minmax(430px, 560px) minmax(540px, 1fr);
    align-items: center;
}
.auth-login-page .auth-promo { min-height: 620px; }
.auth-login-page .auth-promo h1 { max-width: 420px; }
.auth-login-page .auth-card { max-width: 596px; padding: 40px; }
.auth-login-header { margin-bottom: 28px; }
.auth-login-header h1 { font-size: 36px; }
.auth-login-field { margin-bottom: 20px; }
.auth-login-field .auth-label-row { margin-bottom: 7px; }
.auth-login-field .auth-label-row .auth-label { margin-bottom: 0; }
.auth-login-field.has-error input {
    border-color: var(--danger-border);
    background: var(--danger-soft);
}
.auth-login-field.has-error input:focus {
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 11.0%, transparent);
}
.auth-login-field .auth-field-errors {
    display: grid;
    gap: 2px;
}
.auth-login-submit { margin-top: 26px; }
.auth-login-page .auth-register { margin-top: 24px; }
.auth-login-page .auth-shell-footer { justify-content: center; text-align: center; }
.auth-login-page .auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}
.auth-login-page .auth-alert > i { margin-top: 1px; font-size: 15px; }
.auth-card .ui-alert-stack { margin: 0 0 20px; display: grid; gap: 10px; }
.auth-card .ui-alert {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-secondary);
    background: var(--surface-soft);
    font-size: 11px;
    line-height: 1.45;
}
.auth-card .ui-alert.is-success { border-color: var(--success-border); color: var(--success-text); background: var(--success-soft); }
.auth-card .ui-alert.is-warning { border-color: var(--warning-border); color: var(--warning-text); background: var(--warning-soft); }
.auth-card .ui-alert.is-danger { border-color: var(--danger-border); color: var(--danger-text); background: var(--danger-soft); }
.auth-card .ui-alert__content { min-width: 0; flex: 1; }
.auth-card .ui-alert__dismiss {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.auth-status-icon { width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%; display: grid; place-items: center; }
.auth-status-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.auth-status-icon--purple { color: var(--theme-primary); background: var(--theme-primary-soft); }
.auth-status-icon--success { color: var(--theme-primary); background: var(--theme-primary-soft); font-size: 23px; font-weight: 900; }
.auth-email-pill { max-width: 100%; margin-top: 16px; padding: 8px 13px; border: 1px solid var(--theme-primary-soft); border-radius: 999px; overflow: hidden; color: var(--theme-primary); background: var(--theme-surface); font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.auth-email-pill--success { border-color: var(--theme-primary); color: var(--theme-primary); background: var(--theme-primary-soft); }
.auth-email-pill strong { margin-left: 8px; font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }

.auth-code-fieldset { margin: 0; padding: 0; border: 0; }
.auth-code-fieldset legend { width: 100%; margin-bottom: 10px; color: var(--text-primary); font-size: 11px; font-weight: 800; text-align: center; }
.auth-code-inputs { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); justify-content: center; gap: 10px; }
.auth-code-inputs input { width: 100%; height: 54px; padding: 0; border: 1px solid var(--border); border-radius: 10px; outline: none; color: var(--text-primary); background: var(--surface); font-family: inherit; font-size: 20px; font-weight: 900; line-height: 1; text-align: center; caret-color: var(--theme-primary); }
.auth-code-inputs input:focus { border: 2px solid var(--theme-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary) 10.0%, transparent); }
.auth-code-help { display: block; margin-top: 9px; color: var(--text-muted); font-size: 8px; text-align: center; }
.auth-resend { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 4px; color: var(--text-muted); font-size: 9px; }
.auth-resend button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.auth-resend button:disabled { color: var(--text-muted); cursor: not-allowed; }
.auth-countdown { min-height: 14px; margin: 8px 0 0; color: var(--text-muted); font-size: 8px; text-align: center; }
.auth-support { margin: 14px 0 0; color: var(--text-muted); font-size: 8px; text-align: center; }
.auth-next-step { margin: 6px 0 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; gap: 14px; background: var(--surface-soft); text-align: left; }
.auth-next-step > span { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: grid; place-items: center; color: var(--theme-primary); background: var(--theme-primary-soft); font-size: 11px; font-weight: 900; }
.auth-next-step div { display: grid; gap: 3px; }
.auth-next-step strong { font-size: 10px; }
.auth-next-step small { color: var(--text-muted); font-size: 8px; line-height: 1.45; }

.auth-shell-footer { width: min(100% - 64px, 1280px); min-height: 46px; margin-inline: auto; display: flex; align-items: center; justify-content: flex-end; color: var(--text-muted); font-size: 9px; }

/* Complete-profile screen */
.auth-profile-page .auth-main {
    grid-template-columns: minmax(430px, 560px) minmax(540px, 1fr);
    align-items: center;
}
.auth-profile-page .auth-promo { min-height: 622px; }
.auth-profile-page .auth-promo-inner { padding-top: 52px; }
.auth-profile-page .auth-promo h1 { margin-top: 29px; }
.auth-profile-page .auth-card { max-width: 620px; padding: 30px 34px 28px; }
.auth-onboarding-success {
    min-height: 58px;
    margin-bottom: 24px;
    padding: 13px 15px;
    border: 1px solid var(--theme-primary);
    border-radius: 12px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
    color: var(--theme-primary);
    background: var(--theme-primary-soft);
    font-size: 12px;
    font-weight: 750;
}
.auth-onboarding-success > i { font-size: 20px; }
.auth-onboarding-success button {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: var(--theme-primary);
    background: transparent;
    cursor: pointer;
}
.auth-onboarding-success button:hover { background: color-mix(in srgb, var(--theme-primary) 8.0%, transparent); }
.auth-onboarding-success button:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 2px; }
.auth-profile-header { margin-bottom: 22px; }
.auth-profile-grid { column-gap: 16px; row-gap: 17px; }
.auth-profile-submit { margin-top: 20px; }
.auth-profile-page .auth-shell-footer {
    padding: 8px 0 14px;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: center;
}
.auth-footer-credit strong { color: var(--theme-primary); }

/* Compatibility for the existing sign-in, password reset, and profile forms. */
.auth-form-group { margin-bottom: 16px; }
.auth-input-wrap { position: relative; }
.auth-submit-button { width: 100%; margin-top: 20px; }
.auth-forgot-link { color: var(--theme-primary); font-size: 10px; font-weight: 800; text-decoration: none; }
.auth-fields { display: grid; gap: 16px; }

/* Password recovery flow */
.auth-recovery-page .auth-main {
    grid-template-columns: minmax(410px, 500px) minmax(520px, 1fr);
    align-items: center;
}
.auth-recovery-page .auth-promo {
    min-height: 550px;
}
.auth-recovery-page .auth-promo-inner {
    padding: 50px 42px;
}
.auth-recovery-page .auth-promo h1 {
    margin-top: 28px;
    font-size: clamp(36px, 3vw, 47px);
}
.auth-recovery-page .auth-promo p {
    margin-top: 22px;
}
.auth-recovery-page .auth-promo-list {
    margin-top: 22px;
    gap: 13px;
}
.auth-recovery-page .auth-promo-note {
    margin-top: 26px;
}
.auth-recovery-page .auth-card {
    max-width: 560px;
    padding: 34px 36px 30px;
}
.auth-recovery-request-page .auth-card {
    max-width: 540px;
}
.auth-recovery-header {
    margin-bottom: 22px;
}
.auth-recovery-header h1 {
    font-size: 31px;
}
.auth-recovery-header strong {
    color: var(--text-primary);
    font-weight: 800;
}
.auth-recovery-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border: 1px solid var(--theme-primary-soft);
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: var(--surface-soft);
    font-size: 17px;
}
.auth-recovery-field {
    margin-bottom: 0;
}
.auth-recovery-field.has-error input {
    border-color: var(--danger-border);
    background: var(--danger-soft);
}
.auth-reset-password-field + .auth-reset-password-field {
    margin-top: 16px;
}
.auth-recovery-submit {
    margin-top: 20px;
}
.auth-recovery-footer {
    margin-top: 20px;
    padding-top: 18px;
}
.auth-recovery-page .auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}
.auth-recovery-page .auth-alert > i {
    margin-top: 1px;
    font-size: 15px;
}
.auth-reset-code-fieldset legend {
    text-align: left;
}
.auth-reset-code-fieldset .auth-code-inputs {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
.auth-reset-code-fieldset .auth-code-inputs input {
    height: 50px;
    background: var(--surface-soft);
    font-size: 17px;
}
.auth-reset-code-fieldset.has-error .auth-code-inputs input {
    border-color: var(--danger-border);
}
.auth-reset-code-meta {
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-muted);
    font-size: 8px;
}
.auth-reset-code-meta small {
    font-size: inherit;
}
.auth-reset-expiry {
    flex: 0 0 auto;
    color: var(--primary);
    font-weight: 800;
}
.auth-reset-expiry.is-expired {
    color: var(--danger-text);
}
.auth-reset-resend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.auth-reset-resend button {
    padding: 0;
    border: 0;
    color: var(--primary);
    background: none;
    font: inherit;
    font-weight: 850;
    cursor: pointer;
}
.auth-reset-resend button:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}
.auth-recovery-page .auth-shell-footer {
    padding: 7px 0 13px;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    text-align: center;
}

@media (max-width: 1023px) {
    .auth-shell-header { width: min(100% - 48px, 680px); min-height: 94px; }
    .auth-home-link { display: none; }
    .auth-main { width: min(100% - 48px, 680px); padding: 28px 0 48px; display: block; }
    .auth-promo { display: none; }
    .auth-stage { width: 100%; }
    .auth-card { max-width: 596px; margin-inline: auto; padding: 40px; }
    .auth-shell-footer { width: min(100% - 48px, 680px); min-height: 70px; justify-content: center; }
    .auth-profile-page .auth-main { display: block; }
    .auth-profile-page .auth-card { max-width: 620px; padding: 38px 40px 32px; }
    .auth-login-page .auth-main { display: block; }
    .auth-recovery-page .auth-main { display: block; }
    .auth-recovery-page .auth-card { max-width: 540px; padding: 34px 36px 30px; }
}

@media (max-width: 640px) {
    .auth-shell::before { width: 290px; height: 290px; top: -165px; right: -100px; }
    .auth-shell-header { width: calc(100% - 36px); min-height: 82px; }
    .auth-shell-brand { width: min(230px, 55vw); }
    .auth-shell-brand .site-brand-flyer-image { width: 100%; height: auto; max-width: 100%; max-height: 72.5px; }
    .auth-theme-toggle { width: 58px; height: 32px; }
    .auth-theme-toggle span { width: 24px; height: 24px; }
    .auth-main { width: calc(100% - 36px); padding: 10px 0 30px; }
    .auth-stage { align-items: flex-start; }
    .auth-card { padding: 26px 22px 22px; border-radius: 18px; }
    .auth-card-header { margin-bottom: 22px; }
    .auth-card-header h1, .auth-card-header h2, .auth-form-title { font-size: 25px; }
    .auth-form-grid--two { grid-template-columns: 1fr; }
    .auth-field--wide { grid-column: auto; }
    .auth-field input, .auth-input-wrap input, .auth-field-control input { height: 48px; font-size: 16px; }
    .auth-code-inputs { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
    .auth-code-inputs input { height: 50px; font-size: 18px; }
    .auth-primary-button, .auth-secondary-button { min-height: 46px; }
    .auth-shell-footer { width: calc(100% - 36px); min-height: 58px; }
    .auth-profile-page .auth-card { padding: 22px 20px 20px; }
    .auth-profile-page .auth-main { padding-top: 10px; }
    .auth-onboarding-success { margin-bottom: 21px; padding: 11px 12px; font-size: 11px; }
    .auth-profile-header { margin-bottom: 20px; }
    .auth-profile-grid { gap: 16px; }
    .auth-profile-submit { margin-top: 18px; }
    .auth-login-page .auth-card { padding: 26px 22px 22px; }
    .auth-login-page .auth-main { padding-top: 10px; }
    .auth-login-header { margin-bottom: 24px; }
    .auth-login-header h1 { font-size: 29px; }
    .auth-login-field { margin-bottom: 18px; }
    .auth-login-submit { margin-top: 22px; }
    .auth-login-page .auth-register { margin-top: 20px; }
    .auth-recovery-page .auth-main { padding-top: 10px; }
    .auth-recovery-page .auth-card { padding: 24px 20px 20px; }
    .auth-recovery-header { margin-bottom: 20px; }
    .auth-recovery-header h1 { font-size: 26px; }
    .auth-recovery-icon { width: 36px; height: 36px; margin-bottom: 12px; }
    .auth-recovery-submit { margin-top: 18px; }
    .auth-recovery-footer { margin-top: 18px; padding-top: 16px; }
    .auth-reset-code-fieldset .auth-code-inputs { gap: 6px; }
    .auth-reset-code-fieldset .auth-code-inputs input { height: 46px; }
    .auth-reset-code-meta { gap: 8px; }
}

@media (max-width: 370px) {
    .auth-main, .auth-shell-header { width: calc(100% - 24px); }
    .auth-card { padding-inline: 17px; }
    .auth-code-inputs { gap: 5px; }
}

@media (prefers-reduced-motion: reduce) {
    .auth-body *, .auth-body *::before, .auth-body *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* The source flyer is square with generous transparent margins. Crop its canvas, not its proportions. */
.auth-shell-brand{width:min(270px,45vw)}
.auth-shell-brand .site-brand-flyer{overflow:hidden}
.auth-shell-brand .site-brand-flyer-image{width:100%;height:68px;max-height:none;object-fit:cover;object-position:center}
@media(max-width:600px){.auth-shell-brand{width:min(200px,52vw)}.auth-shell-brand .site-brand-flyer-image{height:52px}}
