/* ============================================================================
   Weave · shared unauthenticated page system (sign-in, recovery, request access,
   legal docs, error states). Adapted from the official "Weave unauth" handoff
   (weave-auth.css). Everything is scoped under `.auth-root` and `au-`-prefixed so
   it never collides with Bootstrap's `.btn`/`.card`/`.form-control` or the app's
   `.bm-*`. AuthLayout paints the ambient background once; AuthShell builds the
   card/brand/legal scaffold; doc pages use `.au-doc-*`; the error page `.au-err-*`.

   Self-contained light palette so the unauth experience stays light regardless of
   the user's saved app theme. Fonts (Inter Tight / Instrument Serif / JetBrains
   Mono) come from App.razor's Google Fonts link. `data-bg` / `data-card` live on
   `.auth-root`; default is aurora / glass.
   ========================================================================= */

.auth-root {
    --canvas: #f4f3ef;
    --surface: #fff;
    --surface-2: #faf9f6;
    --line: rgba(20, 20, 16, .10);
    --line-2: rgba(20, 20, 16, .16);
    --ink: #1a1a17;
    --ink-2: #3a3a35;
    --ink-3: #6b6a63;
    --ink-4: #9a988f;
    --accent: #3b3df0;
    --accent-2: #5c5ef5;
    --accent-soft: #e8e7fe;
    --au-font: 'Inter Tight', system-ui, -apple-system, sans-serif;
    --au-serif: 'Instrument Serif', Georgia, serif;
    --au-mono: 'JetBrains Mono', ui-monospace, monospace;
    --au-tile: radial-gradient(120% 120% at 30% 20%, color-mix(in oklab, var(--accent) 86%, #fff 6%), color-mix(in oklab, var(--accent) 72%, #000 26%));

    position: relative;
    min-height: 100vh;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--au-font);
    letter-spacing: -.006em;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
.auth-root * { box-sizing: border-box; }
.auth-root a { color: inherit; }
.auth-root .au-serif { font-family: var(--au-serif); font-style: italic; }
.auth-root .au-mono { font-family: var(--au-mono); }

/* ── ambient background (enterprise-grade: low chroma + faint grid) ───────── */
.auth-root .au-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.auth-root .au-base { position: absolute; inset: 0; }
.auth-root[data-bg="aurora"] .au-base { background:
    radial-gradient(70% 55% at 14% 0%, color-mix(in oklab, var(--accent) 9%, transparent), transparent 70%),
    radial-gradient(60% 50% at 92% 100%, color-mix(in oklab, var(--accent) 6%, transparent), transparent 72%); }
.auth-root[data-bg="dawn"] .au-base { background:
    linear-gradient(180deg, transparent 45%, color-mix(in oklab, var(--accent) 7%, transparent) 100%); }
.auth-root[data-bg="spotlight"] .au-base { background:
    radial-gradient(52% 46% at 50% 36%, color-mix(in oklab, var(--accent) 8%, transparent), transparent 70%); }

/* faint technical grid, fading out toward the edges */
.auth-root .au-bg::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(20, 20, 16, .030) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 20, 16, .030) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(85% 75% at 50% 38%, #000 25%, transparent 100%);
    mask-image: radial-gradient(85% 75% at 50% 38%, #000 25%, transparent 100%);
}
.auth-root .au-blob { position: absolute; border-radius: 50%; filter: blur(110px); background: color-mix(in oklab, var(--accent) 50%, #fff); }
.auth-root .au-blob.b1 { width: 42vmax; height: 42vmax; top: -18vmax; left: -12vmax; opacity: .14; }
.auth-root .au-blob.b2 { width: 38vmax; height: 38vmax; bottom: -20vmax; right: -10vmax; opacity: .11; background: color-mix(in oklab, var(--accent) 40%, #fff); }
.auth-root .au-blob.b3 { display: none; }
@media (prefers-reduced-motion: no-preference) {
    .auth-root .au-blob.b1 { animation: au-drift1 38s ease-in-out infinite; }
    .auth-root .au-blob.b2 { animation: au-drift2 44s ease-in-out infinite; }
}
@keyframes au-drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vmax,3vmax) scale(1.04); } }
@keyframes au-drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-4vmax,-3vmax) scale(1.05); } }

/* ── stage / shell ───────────────────────────────────────────────────────── */
.auth-root .au-stage { position: relative; z-index: 1; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 48px 26px; }
.auth-root .au-shell { width: 100%; max-width: 1040px; display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 64px; align-items: center; }
.auth-root .au-shell.no-brand { grid-template-columns: minmax(0, 430px); justify-content: center; }
.auth-root .au-col-form { display: flex; flex-direction: column; gap: 18px; }

/* ── right brand block ───────────────────────────────────────────────────── */
.auth-root .au-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; animation: au-rise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: .12s; }
.auth-root .au-hero-knot { filter: drop-shadow(0 24px 50px color-mix(in oklab, var(--accent) 38%, transparent)); }
.auth-root .au-hero-knot .s1 path { stroke: var(--accent); }
.auth-root .au-hero-knot .s2 path { stroke: color-mix(in oklab, var(--ink) 74%, transparent); }
/* animated hero (git graph weaves into the mark) — see wwwroot/js/weave-hero.js */
.auth-root .au-hero-anim { position: relative; width: 100%; max-width: 480px; }
.auth-root .au-hero-anim::before {
    content: ""; position: absolute; left: 50%; top: 50%; width: 44%; height: 72%; transform: translate(-50%, -50%);
    background: radial-gradient(circle, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%);
    filter: blur(26px); z-index: 0; pointer-events: none;
}
.auth-root .au-hero-anim svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; }
.auth-root .au-quote { font-family: var(--au-serif); font-style: italic; font-size: 42px; line-height: 1.18; color: var(--ink); max-width: 13ch; letter-spacing: 0; }
.auth-root .au-quote b { font-style: normal; font-weight: 400; color: var(--accent); }
.auth-root .au-sub { font-size: 15px; color: var(--ink-3); max-width: 40ch; line-height: 1.6; margin-top: -10px; }
.auth-root .au-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.auth-root .au-chip { font-size: 12px; font-weight: 500; color: var(--ink-2); padding: 6px 13px; border-radius: 999px; border: .5px solid var(--line-2); background: rgba(255,255,255,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ── card ────────────────────────────────────────────────────────────────── */
.auth-root .au-card {
    width: 100%; max-width: 430px; border-radius: 20px; padding: 34px 36px 30px;
    background: rgba(255,255,255,.74);
    -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%);
    border: .5px solid rgba(255,255,255,.7);
    box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 40px 80px -40px rgba(20,20,30,.5), 0 2px 8px rgba(20,20,30,.06);
    animation: au-rise .6s cubic-bezier(.2,.7,.2,1) both; animation-delay: .06s;
}
.auth-root[data-card="solid"] .au-card { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--line-2); }
@keyframes au-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* flat two-tone brand mark (no tile) — matches the hero knot */
.auth-root .au-lockup { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 22px; }
.auth-root .au-lk-mark { display: grid; place-items: center; }
.auth-root .au-lk-mark .s1 path { stroke: var(--accent); }
.auth-root .au-lk-mark .s2 path { stroke: color-mix(in oklab, var(--ink) 64%, transparent); }
.auth-root .au-lk-name { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }

.auth-root .au-eyebrow { font-family: var(--au-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; text-align: center; }
.auth-root .au-card h1, .auth-root .au-title { font-size: 25px; font-weight: 700; letter-spacing: -.025em; line-height: 1.12; text-align: center; }
.auth-root .au-card h1 .au-serif, .auth-root .au-title .au-serif { font-weight: 400; color: var(--accent); }
.auth-root .au-subtitle { font-size: 13.5px; color: var(--ink-3); margin-top: 8px; text-align: center; max-width: 34ch; margin-left: auto; margin-right: auto; }

/* ── fields ──────────────────────────────────────────────────────────────── */
.auth-root .au-field { margin-top: 16px; }
.auth-root .au-field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); margin-bottom: 7px; }
.auth-root .au-field label .au-opt { color: var(--ink-4); font-weight: 400; }
.auth-root .au-inp { position: relative; display: flex; align-items: center; }
.auth-root .au-inp input, .auth-root .au-inp select, .auth-root .au-inp textarea {
    width: 100%; height: 46px; padding: 0 14px; border-radius: 11px;
    border: .5px solid var(--line-2); background-color: var(--surface-2);
    font-family: inherit; font-size: 14px; color: var(--ink); outline: none;
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.auth-root .au-inp textarea { height: auto; min-height: 88px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.auth-root .au-inp select {
    appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239a988f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
.auth-root .au-inp input::placeholder, .auth-root .au-inp textarea::placeholder { color: var(--ink-4); }
.auth-root .au-inp input:focus, .auth-root .au-inp select:focus, .auth-root .au-inp textarea:focus { border-color: var(--accent); background-color: var(--surface); box-shadow: 0 0 0 3.5px var(--accent-soft); }
.auth-root .au-inp input[readonly] { color: var(--ink-3); background-color: var(--surface); }
.auth-root .au-inp.has-toggle input { padding-right: 44px; }
.auth-root .au-pw-toggle { position: absolute; right: 6px; height: 34px; width: 34px; border: 0; background: transparent; color: var(--ink-4); cursor: pointer; border-radius: 8px; display: grid; place-items: center; }
.auth-root .au-pw-toggle:hover { color: var(--ink-2); background: rgba(20,20,16,.05); }
.auth-root .au-lead { position: absolute; left: 14px; color: var(--ink-4); display: grid; place-items: center; pointer-events: none; }
.auth-root .au-lead ~ input { padding-left: 40px; }
.auth-root .au-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .auth-root .au-grid-2 { grid-template-columns: 1fr; } }

.auth-root .au-row-between { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; gap: 12px; }
.auth-root .au-check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; white-space: nowrap; }
.auth-root .au-check input { appearance: none; -webkit-appearance: none; width: 17px; height: 17px; border-radius: 5px; border: .5px solid var(--line-2); background: var(--surface); cursor: pointer; position: relative; transition: border-color .15s; flex: none; }
.auth-root .au-check input:checked { background-color: var(--accent); border-color: var(--accent); }
.auth-root .au-check input:checked::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.auth-root .au-link { font-size: 13px; color: var(--accent); text-decoration: none; font-weight: 500; }
.auth-root .au-link:hover { text-decoration: underline; }

/* ── buttons ─────────────────────────────────────────────────────────────── */
.auth-root .au-btn {
    width: 100%; height: 46px; border-radius: 11px; border: .5px solid transparent;
    font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 9px;
    transition: filter .15s, border-color .15s, background-color .15s, transform .05s;
}
.auth-root .au-btn:active { transform: translateY(.5px); }
.auth-root .au-btn-primary { background-color: var(--accent); color: #fff; box-shadow: 0 12px 24px -12px color-mix(in oklab, var(--accent) 85%, transparent); }
.auth-root .au-btn-primary:hover { filter: brightness(1.08); }
.auth-root .au-btn-ghost { background-color: var(--surface); border-color: var(--line-2); color: var(--ink); }
.auth-root .au-btn-ghost:hover { background-color: var(--surface-2); border-color: var(--ink-4); }
.auth-root .au-btn.mt { margin-top: 20px; }
.auth-root .au-btn-row { display: flex; gap: 10px; }
.auth-root .au-btn-row .au-btn { flex: 1; }

.auth-root .au-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--ink-4); font-size: 12px; }
.auth-root .au-divider::before, .auth-root .au-divider::after { content: ""; flex: 1; height: .5px; background: var(--line-2); }
.auth-root .au-sso-stack { display: flex; flex-direction: column; gap: 10px; }

.auth-root .au-footer-note { margin-top: 22px; text-align: center; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.auth-root .au-footer-note a { color: var(--ink-2); text-decoration: none; border-bottom: .5px solid var(--line-2); }
.auth-root .au-footer-note a:hover { color: var(--ink); }
.auth-root .au-back-link { display: inline-flex; align-items: center; gap: 7px; justify-content: center; font-size: 13px; font-weight: 500; color: var(--ink-3); text-decoration: none; margin-top: 18px; width: 100%; }
.auth-root .au-back-link:hover { color: var(--ink); }
.auth-root .au-back-link svg { width: 15px; height: 15px; }

/* ── legal row (under the card) ──────────────────────────────────────────── */
.auth-root .au-legal { display: flex; align-items: center; gap: 14px; justify-content: center; flex-wrap: wrap; font-size: 11.5px; color: var(--ink-4); animation: au-rise .6s ease both; animation-delay: .12s; }
.auth-root .au-legal a { text-decoration: none; }
.auth-root .au-legal a:hover { color: var(--ink-2); }
.auth-root .au-legal .au-dot { width: 3px; height: 3px; border-radius: 99px; background: currentColor; opacity: .5; }

/* ── success / inline notices ────────────────────────────────────────────── */
.auth-root .au-notice { display: flex; gap: 12px; padding: 14px; border-radius: 13px; border: .5px solid var(--line-2); background: var(--surface-2); margin-top: 18px; }
.auth-root .au-nicon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.auth-root .au-ntxt { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.auth-root .au-ntxt b { color: var(--ink); font-weight: 600; }

/* alerts (login/registration errors) */
.auth-root .au-alert { font-size: 13px; border-radius: 11px; padding: 11px 14px; margin-top: 16px; line-height: 1.5; }
.auth-root .au-alert strong { font-weight: 600; }
.auth-root .au-alert-danger { background: #fdecea; border: .5px solid #f3c2bd; color: #9b2f29; }
.auth-root .au-alert-success { background: #e8f5ec; border: .5px solid #b5dbc3; color: #0f6b46; }
.auth-root .au-alert-warning { background: #fbf1de; border: .5px solid #ebd3a1; color: #8b5a16; }
.auth-root .au-alert-info { background: #e8eef5; border: .5px solid #bcccdc; color: #355e7c; }

@media (max-width: 920px) {
    .auth-root .au-shell { grid-template-columns: 1fr; max-width: 430px; gap: 30px; }
    .auth-root .au-brand { order: -1; align-items: center; text-align: center; gap: 16px; }
    .auth-root .au-hero-knot { width: 104px; height: 104px; }
    .auth-root .au-hero-anim { max-width: 340px; margin: 0 auto; }
    .auth-root .au-quote { font-size: 28px; max-width: none; }
    .auth-root .au-sub { margin-top: 0; }
    .auth-root .au-chips { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .auth-root .au-card, .auth-root .au-brand, .auth-root .au-legal, .auth-root .au-doc-body, .auth-root .au-err-wrap { animation: none; }
}

/* ============================================================================
   Legal / document layout (Privacy, Terms)
   ========================================================================= */
.auth-root .au-doc-stage { position: relative; z-index: 1; min-height: 100vh; }
.auth-root .au-doc-top { position: sticky; top: 0; z-index: 20; background: rgba(244,243,239,.72); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); border-bottom: .5px solid var(--line); }
.auth-root .au-doc-top-in { max-width: 920px; margin: 0 auto; padding: 14px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.auth-root .au-doc-brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.auth-root .au-doc-brand .au-lk-name { font-size: 16px; }
.auth-root .au-doc-tabs { display: flex; gap: 4px; background: rgba(20,20,16,.05); border-radius: 10px; padding: 3px; }
.auth-root .au-doc-tabs a { font-size: 12.5px; font-weight: 500; color: var(--ink-3); text-decoration: none; padding: 6px 14px; border-radius: 7px; }
.auth-root .au-doc-tabs a:hover { color: var(--ink); }
.auth-root .au-doc-tabs a.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }

.auth-root .au-doc-wrap { max-width: 920px; margin: 0 auto; padding: 54px 26px 90px; display: grid; grid-template-columns: 200px minmax(0,1fr); gap: 48px; align-items: start; }
@media (max-width: 780px) { .auth-root .au-doc-wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 36px; } }
.auth-root .au-doc-toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; }
@media (max-width: 780px) { .auth-root .au-doc-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding-bottom: 6px; border-bottom: .5px solid var(--line); } }
.auth-root .au-doc-toc-label { font-family: var(--au-mono); font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
@media (max-width: 780px) { .auth-root .au-doc-toc-label { display: none; } }
.auth-root .au-doc-toc a { font-size: 12.5px; color: var(--ink-3); text-decoration: none; padding: 5px 10px; border-radius: 7px; line-height: 1.35; }
.auth-root .au-doc-toc a:hover { color: var(--ink); background: rgba(20,20,16,.04); }
.auth-root .au-doc-toc a.on { color: var(--accent); font-weight: 500; background: var(--accent-soft); }

.auth-root .au-doc-head { margin-bottom: 30px; }
.auth-root .au-doc-eyebrow { font-family: var(--au-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px; }
.auth-root .au-doc-head h1 { font-size: 42px; font-weight: 700; letter-spacing: -.03em; line-height: 1.04; text-align: left; }
.auth-root .au-doc-head h1 .au-serif { font-weight: 400; color: var(--accent); }
.auth-root .au-doc-meta { margin-top: 14px; font-size: 13px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 16px; }
.auth-root .au-doc-meta b { color: var(--ink-2); font-weight: 500; }
.auth-root .au-doc-lede { margin-top: 20px; font-size: 16px; line-height: 1.65; color: var(--ink-2); max-width: 60ch; padding: 18px 20px; border-left: 2px solid var(--accent); background: var(--surface-2); border-radius: 0 12px 12px 0; }

.auth-root .au-doc-body section { padding-top: 34px; scroll-margin-top: 96px; }
.auth-root .au-doc-body h2 { font-size: 13px; font-family: var(--au-mono); font-weight: 500; letter-spacing: .04em; color: var(--accent); display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.auth-root .au-doc-body h2 .num { color: var(--ink-4); }
.auth-root .au-doc-body h3 { font-size: 15px; font-weight: 600; color: var(--ink); margin: 20px 0 8px; letter-spacing: -.01em; }
.auth-root .au-doc-body p { font-size: 14.5px; line-height: 1.72; color: var(--ink-2); margin-bottom: 13px; max-width: 64ch; text-wrap: pretty; }
.auth-root .au-doc-body ul { list-style: none; margin: 4px 0 14px; display: flex; flex-direction: column; gap: 9px; max-width: 64ch; }
.auth-root .au-doc-body li { position: relative; padding-left: 22px; font-size: 14.5px; line-height: 1.62; color: var(--ink-2); }
.auth-root .au-doc-body li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .7; }
.auth-root .au-doc-body li b, .auth-root .au-doc-body p b { color: var(--ink); font-weight: 600; }
.auth-root .au-doc-body a { color: var(--accent); text-decoration: none; border-bottom: .5px solid color-mix(in oklab, var(--accent) 40%, transparent); }
.auth-root .au-doc-body a:hover { border-bottom-color: var(--accent); }
.auth-root .au-doc-callout { margin: 18px 0; padding: 16px 18px; border-radius: 13px; border: .5px solid var(--line-2); background: var(--surface); display: flex; gap: 13px; align-items: flex-start; }
.auth-root .au-doc-callout .cic { flex: none; width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.auth-root .au-doc-callout p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.auth-root .au-doc-table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: 13.5px; }
.auth-root .au-doc-table th, .auth-root .au-doc-table td { text-align: left; padding: 11px 14px; border-bottom: .5px solid var(--line); vertical-align: top; color: var(--ink-2); line-height: 1.5; }
.auth-root .au-doc-table th { font-size: 11px; font-family: var(--au-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); font-weight: 500; }
.auth-root .au-doc-table tr:first-child th { border-top: .5px solid var(--line); }
.auth-root .au-doc-table td:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; }
.auth-root .au-doc-foot { border-top: .5px solid var(--line); margin-top: 46px; padding-top: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; font-size: 12.5px; color: var(--ink-4); }
.auth-root .au-doc-foot a { color: var(--ink-3); text-decoration: none; }
.auth-root .au-doc-foot a:hover { color: var(--ink); }
.auth-root .au-doc-foot .l { display: flex; gap: 16px; }

/* ── error page ──────────────────────────────────────────────────────────── */
.auth-root .au-err-wrap { text-align: center; max-width: 480px; display: flex; flex-direction: column; align-items: center; gap: 0; }
.auth-root .au-err-code { font-family: var(--au-mono); font-size: 13px; font-weight: 500; letter-spacing: .22em; color: var(--accent); background: var(--accent-soft); padding: 7px 16px; border-radius: 999px; margin-bottom: 26px; }
.auth-root .au-err-knot { filter: drop-shadow(0 24px 50px color-mix(in oklab, var(--accent) 30%, transparent)); margin-bottom: 8px; }
.auth-root .au-err-knot .s1 path { stroke: var(--accent); }
.auth-root .au-err-knot .s2 path { stroke: color-mix(in oklab, var(--ink) 30%, transparent); }
.auth-root .au-err-title { font-size: 40px; font-weight: 700; letter-spacing: -.03em; line-height: 1.06; margin-top: 18px; }
.auth-root .au-err-title .au-serif { font-weight: 400; color: var(--accent); }
.auth-root .au-err-sub { font-size: 15px; color: var(--ink-3); line-height: 1.6; margin-top: 14px; max-width: 42ch; }
.auth-root .au-err-actions { display: flex; gap: 10px; margin-top: 30px; }
.auth-root .au-err-actions .au-btn { width: auto; padding: 0 22px; }
.auth-root .au-err-meta { margin-top: 26px; font-size: 12px; font-family: var(--au-mono); color: var(--ink-4); letter-spacing: .02em; }
@media (max-width: 480px) {
    .auth-root .au-err-title { font-size: 30px; }
    .auth-root .au-err-actions { flex-direction: column; width: 100%; }
    .auth-root .au-err-actions .au-btn { width: 100%; }
    .auth-root .au-card { padding: 28px 24px 24px; }
}

/* ── field help text + status page rows ──────────────────────────────────── */
.auth-root .au-help { display: block; font-size: 11.5px; color: var(--ink-4); margin-top: 6px; }
.auth-root .au-status-banner { display: flex; align-items: center; gap: 11px; padding: 13px 15px; border-radius: 13px; background: #e8f5ec; border: .5px solid #b5dbc3; color: #0f6b46; font-size: 13.5px; font-weight: 500; margin-top: 18px; }
.auth-root .au-status-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 2px; border-bottom: .5px solid var(--line); }
.auth-root .au-status-row:last-child { border-bottom: 0; }
.auth-root .au-status-name { font-size: 14px; color: var(--ink); font-weight: 500; }
.auth-root .au-status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; color: #0f6b46; }
.auth-root .au-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #1f9d57; box-shadow: 0 0 0 3px rgba(31,157,87,.18); }
