/* ============================================================
   Barbaros — Auth pages (login, signup, select-account, 404)
   Split layout: form card + animated brand panel.
   Tokens --a-*; light + dark via prefers-color-scheme (and
   html[data-theme] when the app theme is known). RTL-safe.
   ============================================================ */

:root {
    --a-page:        #f5f5f7;
    --a-elevated:    #ffffff;
    --a-elevated-2:  #f5f5f7;
    --a-input:       #ffffff;
    --a-ink-1:       #1d1d1f;
    --a-ink-2:       #424245;
    --a-ink-3:       #6e6e73;
    --a-ink-4:       #86868b;
    --a-line:        rgba(0, 0, 0, 0.10);
    --a-line-2:      rgba(0, 0, 0, 0.16);
    --a-cta:         #0071e3;
    --a-cta-hover:   #0066cc;
    --a-cta-soft:    rgba(0, 113, 227, 0.10);
    --a-cta-ink:     #ffffff;
    --a-success:     #14ae5c;
    --a-warning:     #c2660d;
    --a-danger:      #d33a2b;
    --a-danger-soft: rgba(211, 58, 43, 0.10);
    --a-shadow-1:    0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.03);
    --a-shadow-2:    0 4px 12px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.08);
    --a-shadow-3:    0 24px 80px rgba(0, 0, 0, 0.22);
    --a-radius:      18px;
    --a-radius-sm:   12px;
    --a-radius-ctl:  10px;
    --a-pill:        999px;
    --a-ease:        cubic-bezier(0.22, 1, 0.36, 1);
    --a-font:        -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --a-font-display:-apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --a-scrim:       rgba(0, 0, 0, 0.38);
    color-scheme: light;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --a-page:        #0d0d10;
        --a-elevated:    #1c1c20;
        --a-elevated-2:  #232328;
        --a-input:       #151518;
        --a-ink-1:       #f5f5f7;
        --a-ink-2:       #d2d2d7;
        --a-ink-3:       #a1a1a6;
        --a-ink-4:       #86868b;
        --a-line:        rgba(255, 255, 255, 0.10);
        --a-line-2:      rgba(255, 255, 255, 0.18);
        --a-cta:         #2997ff;
        --a-cta-hover:   #0a84ff;
        --a-cta-soft:    rgba(41, 151, 255, 0.18);
        --a-danger-soft: rgba(255, 105, 97, 0.16);
        --a-shadow-1:    0 1px 2px rgba(0, 0, 0, 0.3);
        --a-shadow-2:    0 4px 12px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.45);
        --a-shadow-3:    0 24px 80px rgba(0, 0, 0, 0.6);
        --a-scrim:       rgba(0, 0, 0, 0.6);
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --a-page:        #0d0d10;
    --a-elevated:    #1c1c20;
    --a-elevated-2:  #232328;
    --a-input:       #151518;
    --a-ink-1:       #f5f5f7;
    --a-ink-2:       #d2d2d7;
    --a-ink-3:       #a1a1a6;
    --a-ink-4:       #86868b;
    --a-line:        rgba(255, 255, 255, 0.10);
    --a-line-2:      rgba(255, 255, 255, 0.18);
    --a-cta:         #2997ff;
    --a-cta-hover:   #0a84ff;
    --a-cta-soft:    rgba(41, 151, 255, 0.18);
    --a-danger-soft: rgba(255, 105, 97, 0.16);
    --a-shadow-1:    0 1px 2px rgba(0, 0, 0, 0.3);
    --a-shadow-2:    0 4px 12px rgba(0, 0, 0, 0.35), 0 16px 40px rgba(0, 0, 0, 0.45);
    --a-shadow-3:    0 24px 80px rgba(0, 0, 0, 0.6);
    --a-scrim:       rgba(0, 0, 0, 0.6);
    color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }
body.auth-body {
    background: var(--a-page); color: var(--a-ink-1);
    font-family: var(--a-font); font-size: 15px; line-height: 1.5; letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
    min-height: 100svh;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--a-font-display); margin: 0; font-weight: 600; letter-spacing: -0.025em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--a-cta); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link { color: var(--a-cta); font-weight: 500; }
.link:hover { text-decoration: underline; }

/* ---------- shell ---------- */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100svh; }
.auth-main { display: flex; flex-direction: column; padding: 24px clamp(20px, 5vw, 64px) 32px; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.auth-top .alt { font-size: 14px; color: var(--a-ink-3); }
.brand-logo { height: 34px; width: auto; }
.brand-logo--dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand-logo--light { display: none; } :root:not([data-theme="light"]) .brand-logo--dark { display: block; } }
:root[data-theme="dark"] .brand-logo--light { display: none; }
:root[data-theme="dark"] .brand-logo--dark { display: block; }

.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding-block: 32px; }
.auth-card {
    width: 100%; max-width: 440px;
    background: var(--a-elevated); border: 1px solid var(--a-line); border-radius: var(--a-radius);
    box-shadow: var(--a-shadow-2); padding: 36px 32px 28px;
    animation: card-in .36s var(--a-ease);
}
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.auth-card h1 { font-size: 26px; line-height: 1.15; }
.auth-card .lead { color: var(--a-ink-3); margin-top: 8px; font-size: 15px; }
.auth-card .lead-ar { display: block; color: var(--a-ink-4); font-size: 13px; margin-top: 4px; direction: rtl; text-align: start; }
.auth-foot { text-align: center; font-size: 12px; color: var(--a-ink-4); margin-top: 20px; line-height: 1.5; }
.auth-foot a { color: var(--a-ink-3); text-decoration: underline; text-underline-offset: 2px; }
.auth-legal { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; font-size: 12px; color: var(--a-ink-4); margin-top: 16px; }
.auth-legal a:hover { color: var(--a-ink-2); }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 46px; padding-inline: 18px; border-radius: var(--a-radius-ctl);
    font-size: 15px; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
    transition: background .18s var(--a-ease), border-color .18s var(--a-ease), color .18s var(--a-ease), transform .12s var(--a-ease), box-shadow .18s var(--a-ease);
    position: relative;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; cursor: default; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-block { width: 100%; }
.btn-primary { background: var(--a-cta); color: var(--a-cta-ink); box-shadow: 0 1px 2px rgba(0, 113, 227, .25); }
.btn-primary:hover { background: var(--a-cta-hover); }
.btn-secondary { background: var(--a-elevated); color: var(--a-ink-1); border-color: var(--a-line-2); }
.btn-secondary:hover { background: var(--a-elevated-2); }
.btn-ghost { background: transparent; color: var(--a-ink-2); }
.btn-ghost:hover { background: var(--a-cta-soft); color: var(--a-ink-1); }
.btn-social { justify-content: center; }
.btn-social .g-logo { width: 18px; height: 18px; }
.btn .btn-spinner { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite; }
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }
.social-stack { display: grid; gap: 10px; margin-top: 24px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--a-ink-4); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--a-line); }

/* ---------- form fields ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--a-ink-2); display: flex; justify-content: space-between; align-items: center; }
.field label .link { font-weight: 500; font-size: 13px; }
.control { position: relative; display: flex; align-items: center; }
.control > svg.lead-ico { position: absolute; inset-inline-start: 14px; width: 18px; height: 18px; color: var(--a-ink-4); pointer-events: none; }
.control input {
    width: 100%; height: 46px; padding-inline: 42px 14px; border-radius: var(--a-radius-ctl);
    border: 1px solid var(--a-line-2); background: var(--a-input); color: var(--a-ink-1);
    font: inherit; font-size: 15px; letter-spacing: -0.01em;
    transition: border-color .15s var(--a-ease), box-shadow .15s var(--a-ease), background .15s var(--a-ease);
}
.control input.has-trail { padding-inline-end: 46px; }
.control input::placeholder { color: var(--a-ink-4); }
.control input:focus { outline: none; border-color: var(--a-cta); box-shadow: 0 0 0 4px var(--a-cta-soft); }
.control .trail {
    position: absolute; inset-inline-end: 6px; width: 34px; height: 34px; border-radius: 8px; border: none;
    background: transparent; color: var(--a-ink-3); display: grid; place-items: center;
}
.control .trail:hover { background: var(--a-elevated-2); color: var(--a-ink-1); }
.control .trail svg { width: 18px; height: 18px; }
.control .trail .ico-off { display: none; }
.control .trail[aria-pressed="true"] .ico-off { display: block; }
.control .trail[aria-pressed="true"] .ico-on { display: none; }
.field.is-invalid .control input { border-color: var(--a-danger); box-shadow: 0 0 0 4px var(--a-danger-soft); }
.field.is-valid .control input { border-color: var(--a-success); }
.field-msg { font-size: 12px; color: var(--a-danger); min-height: 0; display: none; align-items: center; gap: 6px; }
.field.is-invalid .field-msg { display: flex; animation: msg-in .18s var(--a-ease); }
.field-msg svg { width: 14px; height: 14px; flex: none; }
@keyframes msg-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }
.field-hint { font-size: 12px; color: var(--a-ink-4); }
.strength { display: grid; gap: 6px; margin-top: 2px; }
.strength-bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.strength-bars i { height: 4px; border-radius: 2px; background: var(--a-line-2); transition: background .18s var(--a-ease); }
.strength[data-level="1"] i:nth-child(-n+1) { background: var(--a-danger); }
.strength[data-level="2"] i:nth-child(-n+2) { background: var(--a-warning); }
.strength[data-level="3"] i:nth-child(-n+3) { background: var(--a-cta); }
.strength[data-level="4"] i:nth-child(-n+4) { background: var(--a-success); }
.strength-text { font-size: 12px; color: var(--a-ink-4); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--a-ink-2); cursor: pointer; }
.check input { appearance: none; width: 18px; height: 18px; border-radius: 5px; border: 1px solid var(--a-line-2); background: var(--a-input); margin: 1px 0 0; flex: none; display: grid; place-items: center; transition: background .15s var(--a-ease), border-color .15s var(--a-ease); }
.check input::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-inline-end: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--a-cta); border-color: var(--a-cta); }
.check input:checked::after { opacity: 1; }
.check a { color: var(--a-cta); }
.form .btn-primary { margin-top: 4px; height: 48px; }

/* ---------- brand panel ---------- */
.auth-brand {
    position: relative; overflow: hidden; isolation: isolate; color: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: clamp(28px, 5vw, 64px); background: #0a1428;
}
.mesh { position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, #07101f 0%, #0b1a33 55%, #061023 100%); }
.mesh span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .85; animation: blob-drift 22s var(--a-ease) infinite alternate; }
.mesh .b1 { width: 70vmin; height: 70vmin; inset-inline-end: -25vmin; top: -25vmin; background: radial-gradient(circle, rgba(0, 113, 227, .8), transparent 62%); }
.mesh .b2 { width: 70vmin; height: 70vmin; inset-inline-start: -30vmin; bottom: -30vmin; background: radial-gradient(circle, rgba(29, 78, 216, .65), transparent 64%); animation-duration: 28s; animation-delay: -8s; }
.mesh .b3 { width: 46vmin; height: 46vmin; inset-inline-start: 30%; bottom: -10vmin; background: radial-gradient(circle, rgba(90, 200, 250, .5), transparent 64%); animation-duration: 18s; animation-delay: -4s; }
.mesh::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent); }
@keyframes blob-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-8%, 6%, 0) scale(1.18); } }
.brand-top { display: flex; align-items: center; justify-content: space-between; }
.brand-top .pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: var(--a-pill); background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); font-size: 12px; font-weight: 500; }
.brand-top .pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--a-success); }
.brand-mid { margin-block: 48px; }
.props { position: relative; min-height: 220px; }
.prop { position: absolute; inset: 0; opacity: 0; transform: translateY(12px); transition: opacity .5s var(--a-ease), transform .6s var(--a-ease); pointer-events: none; }
.prop.is-active { opacity: 1; transform: none; pointer-events: auto; }
.prop .ico { width: 48px; height: 48px; border-radius: 14px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); display: grid; place-items: center; margin-bottom: 20px; }
.prop .ico svg { width: 22px; height: 22px; }
.prop h2 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; max-width: 16ch; }
.prop p { color: rgba(255, 255, 255, .72); font-size: 16px; margin-top: 12px; max-width: 42ch; }
.dots { display: flex; gap: 6px; margin-top: 28px; }
.dots button { width: 24px; height: 4px; border-radius: 2px; border: none; padding: 0; background: rgba(255, 255, 255, .25); transition: background .18s var(--a-ease), width .18s var(--a-ease); }
.dots button.is-active { background: #fff; width: 36px; }
.brand-bottom { display: grid; gap: 18px; }
.brand-quote { padding: 18px 20px; border-radius: var(--a-radius-sm); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.brand-quote p { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .9); }
.brand-quote .who { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: rgba(255, 255, 255, .7); }
.brand-quote .who i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 12px; background: rgba(255, 255, 255, .16); color: #fff; }
.brand-stats { display: flex; gap: 28px; flex-wrap: wrap; }
.brand-stats div strong { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.brand-stats div span { font-size: 12px; color: rgba(255, 255, 255, .6); }

/* ---------- toasts ---------- */
.toast-stack { position: fixed; top: 16px; inset-inline-end: 16px; z-index: 300; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
    pointer-events: auto; display: flex; gap: 12px; align-items: flex-start; padding: 14px 14px 14px 16px;
    background: var(--a-elevated); border: 1px solid var(--a-line); border-radius: var(--a-radius-sm);
    box-shadow: var(--a-shadow-2); border-inline-start: 3px solid var(--a-cta);
    animation: toast-in .18s var(--a-ease); position: relative; overflow: hidden;
}
.toast.is-leaving { animation: toast-out .18s var(--a-ease) forwards; }
.toast[data-tone="danger"] { border-inline-start-color: var(--a-danger); }
.toast[data-tone="success"] { border-inline-start-color: var(--a-success); }
.toast[data-tone="warning"] { border-inline-start-color: var(--a-warning); }
.toast .t-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--a-cta-soft); color: var(--a-cta); }
.toast[data-tone="danger"] .t-ico { background: var(--a-danger-soft); color: var(--a-danger); }
.toast[data-tone="success"] .t-ico { background: rgba(20, 174, 92, .14); color: var(--a-success); }
.toast[data-tone="warning"] .t-ico { background: rgba(194, 102, 13, .14); color: var(--a-warning); }
.toast .t-ico svg { width: 16px; height: 16px; }
.toast .t-body { flex: 1; min-width: 0; }
.toast .t-title { font-weight: 600; font-size: 14px; }
.toast .t-msg { font-size: 13px; color: var(--a-ink-3); margin-top: 2px; }
.toast .t-close { width: 28px; height: 28px; border: none; background: transparent; border-radius: 6px; color: var(--a-ink-4); display: grid; place-items: center; flex: none; }
.toast .t-close:hover { background: var(--a-elevated-2); color: var(--a-ink-1); }
.toast .t-close svg { width: 14px; height: 14px; }
.toast .t-bar { position: absolute; inset-inline: 0; bottom: 0; height: 2px; background: var(--a-cta-soft); transform-origin: left; animation: t-bar var(--t-dur, 4500ms) linear forwards; }
.toast:hover .t-bar { animation-play-state: paused; }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes t-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }

/* ---------- sheet (forgot password) ---------- */
.sheet { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 16px; }
.sheet.is-open { display: flex; }
.sheet-scrim { position: absolute; inset: 0; background: var(--a-scrim); animation: fade-in .18s var(--a-ease); }
.sheet-panel {
    position: relative; width: 100%; max-width: 440px; background: var(--a-elevated); border: 1px solid var(--a-line);
    border-radius: var(--a-radius); box-shadow: var(--a-shadow-3); padding: 28px 28px 24px;
    animation: sheet-in .24s var(--a-ease);
}
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sheet-head h2 { font-size: 20px; }
.sheet-head p { color: var(--a-ink-3); font-size: 14px; margin-top: 6px; }
.sheet-close { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--a-line); background: var(--a-elevated-2); display: grid; place-items: center; color: var(--a-ink-2); flex: none; }
.sheet-close svg { width: 16px; height: 16px; }
.sheet .form { margin-top: 20px; }
.sheet-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }
.sheet-success { display: none; text-align: center; padding: 12px 0 4px; }
.sheet-success .ok { width: 52px; height: 52px; border-radius: 50%; background: rgba(20, 174, 92, .14); color: var(--a-success); display: grid; place-items: center; margin: 0 auto 14px; }
.sheet-success .ok svg { width: 24px; height: 24px; }
.sheet-success p { color: var(--a-ink-3); font-size: 14px; margin-top: 6px; }
.sheet.is-done .form, .sheet.is-done .sheet-head p { display: none; }
.sheet.is-done .sheet-success { display: block; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (max-width: 600px) {
    .sheet { align-items: flex-end; padding: 0; }
    .sheet-panel { max-width: none; border-radius: 20px 20px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); animation: sheet-up .24s var(--a-ease); }
    @keyframes sheet-up { from { transform: translateY(100%); } }
}

/* ---------- account picker ---------- */
.account-list { display: grid; gap: 8px; margin-top: 22px; }
.account-row {
    display: flex; align-items: center; gap: 14px; width: 100%; text-align: start;
    padding: 12px 14px; border-radius: var(--a-radius-sm); border: 1px solid var(--a-line); background: var(--a-elevated);
    transition: background .15s var(--a-ease), border-color .15s var(--a-ease), transform .12s var(--a-ease);
}
.account-row:hover { background: var(--a-elevated-2); border-color: var(--a-line-2); transform: translateY(-1px); }
.account-row .av { width: 40px; height: 40px; border-radius: 50%; background: var(--a-cta-soft); color: var(--a-cta); font-weight: 700; display: grid; place-items: center; flex: none; overflow: hidden; }
.account-row .av img { width: 100%; height: 100%; object-fit: cover; }
.account-row .info { flex: 1; min-width: 0; }
.account-row .info strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-row .info span { display: block; font-size: 13px; color: var(--a-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-row .tag { font-size: 11px; font-weight: 600; color: var(--a-success); background: rgba(20, 174, 92, .14); padding: 3px 8px; border-radius: var(--a-pill); flex: none; }
.account-row > svg { width: 18px; height: 18px; color: var(--a-ink-4); flex: none; }
.account-row.is-add .av { background: var(--a-elevated-2); color: var(--a-ink-2); border: 1px dashed var(--a-line-2); }
.account-row.is-add .av svg { width: 18px; height: 18px; }
.empty { text-align: center; padding: 24px 12px; color: var(--a-ink-3); font-size: 14px; }

/* ---------- 404 ---------- */
.nf-code { font-family: var(--a-font-display); font-size: clamp(88px, 18vw, 140px); font-weight: 700; letter-spacing: -0.06em; line-height: 1; color: var(--a-cta); }
.nf-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.nf-links { display: grid; gap: 6px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--a-line); }
.nf-links a { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 14px; color: var(--a-ink-2); }
.nf-links a:hover { color: var(--a-cta); }
.nf-links svg { width: 16px; height: 16px; color: var(--a-ink-4); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-main { padding-inline: 16px; }
    .auth-card { padding: 28px 22px 22px; }
}
@media (max-width: 420px) {
    .form-row { grid-template-columns: 1fr; }
    .auth-top .alt span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .mesh span, .auth-card, .toast, .sheet-panel, .sheet-scrim { animation: none; }
    *, *::before, *::after { transition-duration: 0ms !important; } /* collision: motion opt-out must beat every transition above */
}
