/* Login pages (staff + customer portal): one card layout, two themes.
   The page sets --brand / --brand-dark / --accent from the tenant branding
   and data-theme on <html>. Gametech is the base; Orbitar overrides tokens.
   Layout follows the "YOUR ORBIT" panel of the Orbitar pricing page. */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

.auth-page {
    --a-font: 'Poppins', system-ui, sans-serif;
    --a-mono: 'Poppins', system-ui, sans-serif;
    --a-page: radial-gradient(circle at 30% 40%, var(--brand) 0%, var(--brand-dark) 100%);
    --a-hero-ink: #ffffff;
    --a-hero-muted: rgba(255, 255, 255, 0.82);
    --a-card-bg: #ffffff;
    --a-card-border: rgba(255, 255, 255, 0.7);
    --a-card-shadow: 0 30px 70px -20px rgba(3, 10, 60, 0.6);
    --a-ink: #0f1a3d;
    --a-muted: #64748b;
    --a-eyebrow: var(--brand);
    --a-panel-bg: #f5f7fc;
    --a-panel-border: #e6eaf4;
    --a-input-bg: #ffffff;
    --a-input-border: #dde3ef;
    --a-placeholder: #9aa5ba;
    --a-icon: var(--brand);
    --a-focus: var(--brand);
    --a-focus-ring: color-mix(in srgb, var(--brand) 16%, transparent);
    --a-hair: #edf0f6;
    --a-btn-bg: var(--brand);
    --a-btn-bg-hover: var(--brand-dark);
    --a-btn-ink: #ffffff;
    --a-btn-shadow: 0 14px 30px -12px color-mix(in srgb, var(--brand) 55%, transparent);
    --a-arrow-bg: #ffffff;
    --a-arrow-ink: var(--brand);
    --a-btn2-border: color-mix(in srgb, var(--brand) 30%, transparent);
    --a-btn2-ink: var(--brand);
    --a-btn2-hover: color-mix(in srgb, var(--brand) 6%, transparent);
    --a-dot: var(--accent);
    --a-link: var(--brand);
    --a-title-size: 30px;
    --a-title-weight: 800;
    --a-title-track: -0.01em;
    --a-err-bg: #fef2f2;
    --a-err-border: #fecaca;
    --a-err-ink: #b91c1c;
    --a-ok-bg: #f0fdf4;
    --a-ok-border: #bbf7d0;
    --a-ok-ink: #15803d;
}

/* Orbitar = TarTar theme (docs/ORBITAR_THEME.md): Tar Orange on paper and
   ink, hairlines, near-square corners. The look itself is in the
   "Orbitar (TarTar)" section at the end of this file. */
[data-theme="orbitar"] .auth-page {
    --a-font: 'Plus Jakarta Sans', system-ui, sans-serif;
    --a-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
    --a-display: 'Tektur', 'Plus Jakarta Sans', system-ui, sans-serif;
    --a-tar: #ff6a1a;
    --a-page: #f4f4f2;
    --a-hero-ink: #111110;
    --a-hero-muted: color-mix(in oklab, #111110 65%, transparent);
    --a-card-bg: #f4f4f2;
    --a-card-border: color-mix(in oklab, #111110 22%, transparent);
    --a-card-shadow: none;
    --a-ink: #111110;
    --a-muted: color-mix(in oklab, #111110 65%, transparent);
    --a-eyebrow: color-mix(in oklab, #111110 65%, transparent);
    --a-panel-bg: transparent;
    --a-panel-border: transparent;
    --a-input-bg: #f4f4f2;
    --a-input-border: color-mix(in oklab, #111110 22%, transparent);
    --a-placeholder: color-mix(in oklab, #111110 45%, transparent);
    --a-icon: color-mix(in oklab, #111110 45%, transparent);
    --a-focus: #ff6a1a;
    --a-focus-ring: color-mix(in oklab, #ff6a1a 30%, transparent);
    --a-hair: rgba(17, 17, 16, 0.14);
    --a-btn-bg: #ff6a1a;
    --a-btn-bg-hover: #ff7d38;
    --a-btn-ink: #111110;
    --a-btn-shadow: none;
    --a-arrow-bg: #111110;
    --a-arrow-ink: #f4f4f2;
    --a-btn2-border: color-mix(in oklab, #111110 80%, transparent);
    --a-btn2-ink: #111110;
    --a-btn2-hover: rgba(17, 17, 16, 0.06);
    --a-dot: #2bb673;
    --a-link: #111110;
    --a-title-size: 34px;
    --a-title-weight: 600;
    --a-title-track: -0.015em;
    --a-err-bg: color-mix(in oklab, #c2410c 8%, transparent);
    --a-err-border: color-mix(in oklab, #c2410c 40%, transparent);
    --a-err-ink: #111110;
    --a-ok-bg: color-mix(in oklab, #2bb673 10%, transparent);
    --a-ok-border: color-mix(in oklab, #2bb673 45%, transparent);
    --a-ok-ink: #111110;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--a-page);
    color: var(--a-ink);
    font-family: var(--a-font);
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* ---------- Backgrounds ---------- */
.auth-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.auth-bg__grid {
    position: absolute; inset: 0; opacity: 0.35;
    background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 40%, #000 0%, transparent 75%);
}
.auth-bg__orbit { display: none; }

/* ---------- Shell ---------- */
.auth-shell {
    position: relative; z-index: 1;
    width: 100%; max-width: 1180px; margin: 0 auto;
    min-height: 100vh; min-height: 100dvh;
    padding: 40px 24px;
    display: flex; align-items: center; justify-content: center; gap: 56px;
}
.auth-shell--center { flex-direction: column; gap: 22px; max-width: 520px; }

.auth-hero { flex: 1; color: var(--a-hero-ink); display: flex; flex-direction: column; align-items: flex-start; }
.auth-hero__logo { width: 250px; max-width: 70vw; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2)); }
.auth-hero__tagline { margin: 10px 0 0; font-size: 14px; font-weight: 600; letter-spacing: 0.3px; }
.auth-hero__copy { margin: 20px 0 0; max-width: 400px; font-size: 13.5px; line-height: 1.65; color: var(--a-hero-muted); }
.auth-hero__copy strong { color: var(--a-hero-ink); }
.auth-hero__mascot { width: 100%; max-width: 380px; margin: 20px auto 0; align-self: center; animation: auth-float 4s ease-in-out infinite; filter: drop-shadow(0 20px 20px rgba(0, 0, 0, 0.35)); }
.auth-hero__copyright { margin-top: 24px; font-size: 12px; color: var(--a-hero-muted); }
@keyframes auth-float { 50% { transform: translateY(-14px); } }

.auth-hero__eyebrow {
    font-family: var(--a-mono); font-size: 11px; font-weight: 500;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--a-eyebrow);
    margin: 56px 0 14px;
}
.auth-hero__title {
    margin: 0; font-size: clamp(40px, 5.2vw, 64px); line-height: 1.02;
    font-weight: 400; letter-spacing: -0.045em;
}
.auth-hero__title strong { font-weight: 700; }
.auth-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.auth-hero__chip {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--a-mono); font-size: 11px; font-weight: 500;
    text-transform: uppercase; letter-spacing: 0.1em; color: var(--a-muted);
    padding: 6px 10px; border-radius: 3px;
    border: 1px solid color-mix(in oklab, var(--a-ink) 25%, transparent); background: var(--a-page);
}
.auth-hero__chip i { color: var(--a-tar, var(--accent)); font-size: 10px; }

.auth-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--a-hero-ink); text-decoration: none; }
.auth-brand svg { width: 34px; height: 34px; }
.auth-brand span { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.auth-brand-head { text-align: center; color: var(--a-hero-ink); }
.auth-brand-head .auth-hero__logo { width: 200px; }
.auth-brand-head .auth-hero__tagline { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; }

/* ---------- Card ---------- */
.auth-card {
    width: 100%; max-width: 440px; flex-shrink: 0;
    background: var(--a-card-bg);
    border: 1px solid var(--a-card-border);
    border-radius: 24px;
    box-shadow: var(--a-card-shadow);
    padding: 28px 26px 24px;
    position: relative;
}
.auth-stage { position: relative; width: 100%; max-width: 440px; flex-shrink: 0; }
.auth-stage > .auth-card { z-index: 1; }

.auth-card__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.auth-eyebrow {
    font-family: var(--a-mono); font-size: 11px; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--a-eyebrow);
}
.auth-status { display: inline-flex; align-items: center; gap: 7px; font-family: var(--a-mono); font-size: 11.5px; color: var(--a-muted); }
.auth-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--a-dot); box-shadow: 0 0 0 3px color-mix(in srgb, var(--a-dot) 22%, transparent); }

.auth-title { margin: 0; font-size: var(--a-title-size); font-weight: var(--a-title-weight); letter-spacing: var(--a-title-track); line-height: 1.1; color: var(--a-ink); }
.auth-sub { margin: 8px 0 22px; font-size: 13.5px; line-height: 1.55; color: var(--a-muted); }

.auth-alert {
    display: flex; gap: 9px; align-items: flex-start;
    padding: 11px 13px; margin-bottom: 16px; border-radius: 12px;
    font-size: 13px; font-weight: 500; border: 1px solid;
}
.auth-alert.is-error { background: var(--a-err-bg); border-color: var(--a-err-border); color: var(--a-err-ink); }
.auth-alert.is-success { background: var(--a-ok-bg); border-color: var(--a-ok-border); color: var(--a-ok-ink); }
.auth-alert i { margin-top: 2px; }

/* Inner panel holding the fields (the "30s · subs · routers" box) */
.auth-panel {
    background: var(--a-panel-bg);
    border: 1px solid var(--a-panel-border);
    border-radius: 18px;
    padding: 16px;
    display: grid; gap: 14px;
}
.auth-field { display: grid; gap: 7px; }
.auth-label {
    display: flex; justify-content: space-between;
    font-family: var(--a-mono); font-size: 11.5px; font-weight: 500; color: var(--a-muted);
}
.auth-input { position: relative; display: flex; align-items: center; }
.auth-input > i { position: absolute; left: 15px; font-size: 14px; color: var(--a-icon); pointer-events: none; }
.auth-input input {
    width: 100%; height: 48px;
    padding: 0 46px 0 42px;
    background: var(--a-input-bg);
    border: 1px solid var(--a-input-border);
    border-radius: 12px;
    color: var(--a-ink);
    font-family: var(--a-font); font-size: 15px; font-weight: 500;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-input input::placeholder { color: var(--a-placeholder); font-weight: 400; }
.auth-input input:focus { border-color: var(--a-focus); box-shadow: 0 0 0 4px var(--a-focus-ring); }
.auth-eye {
    position: absolute; right: 6px; width: 36px; height: 36px;
    display: grid; place-items: center;
    background: transparent; border: 0; border-radius: 10px;
    color: var(--a-icon); cursor: pointer; font-size: 14px;
}
.auth-eye:hover { background: var(--a-btn2-hover); }

/* Hairline rows (the "Medium plan / Monthly" rows) */
.auth-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 13px 2px; border-bottom: 1px solid var(--a-hair);
    font-size: 13.5px; color: var(--a-ink);
}
.auth-row__meta { font-family: var(--a-mono); font-size: 11.5px; color: var(--a-muted); }
.auth-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.auth-check input { width: 16px; height: 16px; accent-color: var(--a-focus); margin: 0; }

/* Primary pill with round arrow ("Continue to call sign") */
.auth-btn {
    width: 100%; height: 54px; margin-top: 20px;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 7px 0 22px;
    background: var(--a-btn-bg); color: var(--a-btn-ink);
    border: 0; border-radius: 999px;
    font-family: var(--a-font); font-size: 15px; font-weight: 600;
    box-shadow: var(--a-btn-shadow);
    cursor: pointer; text-decoration: none;
    transition: background 0.25s, box-shadow 0.25s, opacity 0.2s;
}
.auth-btn:hover { background: var(--a-btn-bg-hover); }
.auth-btn__arrow {
    width: 40px; height: 40px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--a-arrow-bg); color: var(--a-arrow-ink); font-size: 14px;
    transition: transform 0.3s;
}
.auth-btn:hover .auth-btn__arrow { transform: translateX(2px); }
.auth-btn[disabled] { opacity: 0.7; pointer-events: none; }

.auth-btn--ghost {
    height: 48px; margin-top: 10px; justify-content: center; gap: 9px; padding: 0 20px;
    background: transparent; color: var(--a-btn2-ink);
    border: 1px solid var(--a-btn2-border); box-shadow: none; font-size: 14px;
}
.auth-btn--ghost:hover { background: var(--a-btn2-hover); }
.auth-alt { display: flex; gap: 8px; margin-top: 8px; }
.auth-alt:not(:has(> :not([hidden]))) { display: none; }
.auth-alt > .auth-btn--ghost { flex: 1 1 0; min-width: 0; width: auto; margin-top: 0; padding: 0 12px; gap: 8px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.auth-foot { margin: 18px 0 0; text-align: center; font-size: 13px; color: var(--a-muted); line-height: 1.7; }
.auth-foot a { color: var(--a-link); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }
.auth-foot__secure { display: block; font-family: var(--a-mono); font-size: 11px; margin-top: 4px; opacity: 0.85; }
.auth-foot__secure i { color: #22c55e; }
[data-theme="orbitar"] .auth-foot__secure i { color: #2bb673; }

/* Demo-site note */
.auth-note { padding: 14px; margin-bottom: 16px; border-radius: 14px; border: 1px solid var(--a-ok-border); background: var(--a-ok-bg); font-size: 12.5px; color: var(--a-muted); line-height: 1.5; }
.auth-note strong { display: block; color: var(--a-ink); font-size: 13px; margin-bottom: 4px; }
.auth-note__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.auth-chip {
    display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px;
    border-radius: 999px; border: 1px solid var(--a-btn2-border);
    background: var(--a-input-bg); color: var(--a-ink);
    font-family: var(--a-font); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: none;
}
.auth-chip:hover { border-color: var(--a-focus); }

.auth-copyright { text-align: center; font-size: 12px; color: var(--a-hero-muted); margin: 0; }

/* "Download the app" button + sheet (login/_get_app.html) */
.auth-btn--ghost[hidden] { display: none; }
.auth-page .auth-shell .auth-intro .auth-btn.auth-btn--ghost {
    margin-top: 12px; background: transparent; box-shadow: none;
    color: var(--a-hero-ink); border-color: var(--a-hero-muted);
}
.auth-app { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.auth-app[hidden] { display: none; }
.auth-app__dim { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.55); }
.auth-app__card {
    position: relative; width: 100%; max-width: 420px; margin-bottom: env(safe-area-inset-bottom);
    padding: 20px 18px 18px; border-radius: 22px; background: var(--a-card-bg); color: var(--a-ink);
    border: 1px solid var(--a-btn2-border); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    font-family: var(--a-font); animation: authAppUp 0.25s ease-out;
}
@keyframes authAppUp { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 901px) { .auth-app { align-items: center; } }
.auth-app__x { position: absolute; top: 8px; right: 12px; border: 0; background: none; color: inherit; font-size: 24px; line-height: 1; opacity: 0.6; cursor: pointer; padding: 4px; }
.auth-app__head { display: flex; gap: 12px; align-items: center; padding-right: 24px; margin-bottom: 14px; }
.auth-app__icon { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; }
.auth-app__title { font-weight: 700; font-size: 16px; }
.auth-app__sub { font-size: 12.5px; color: var(--a-muted); line-height: 1.4; }
.auth-app__opt {
    display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; padding: 12px 14px;
    border-radius: 14px; border: 1px solid var(--a-btn2-border); background: var(--a-input-bg); color: var(--a-ink);
    font-family: inherit; text-align: left; text-decoration: none; cursor: pointer;
}
.auth-app__opt[hidden] { display: none; }
.auth-app__opt:hover { border-color: var(--a-focus); }
.auth-app__opt strong { display: block; font-size: 14px; }
.auth-app__opt small { display: block; font-size: 12px; color: var(--a-muted); }
.auth-app__opt-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 18px; color: #fff; background: var(--brand); }
[data-theme="orbitar"] .auth-app__opt-ico { background: #ff6a1a; color: #111110; border-radius: 4px; }
.auth-app__opt-go { margin-left: auto; opacity: 0.6; }
.auth-app__guide { display: grid; gap: 8px; margin-top: 12px; font-size: 13px; }
.auth-app__guide[hidden], .auth-app__guide [hidden] { display: none; }
.auth-app__guide span { display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 6px; border-radius: 50%; font-size: 11px; font-weight: 800; color: #fff; background: var(--brand); }
[data-theme="orbitar"] .auth-app__guide span { background: #ff6a1a; color: #111110; border-radius: 0; }

.auth-mobile-brand { display: none; }

.auth-intro { display: none; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 440px; color: var(--a-hero-ink); }
.auth-intro .auth-hero__eyebrow { margin: 0 0 12px; }
.auth-intro .auth-hero__title { font-size: 38px; }
:root:not([data-theme="orbitar"]) .auth-intro .auth-btn { background: var(--accent); box-shadow: 0 10px 25px rgba(248, 168, 21, 0.4); }

.auth-sheet-dim {
    display: none; position: fixed; inset: 0; z-index: 90;
    background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
}

@media (max-width: 900px) {
    .auth-shell {
        --orb: min(300px, 72vw);
        --orb: min(300px, 72vw, 36dvh);
        min-height: 100dvh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: calc(env(safe-area-inset-top, 0px) + 32px) 24px calc(env(safe-area-inset-bottom, 0px) + 24px);
        box-sizing: border-box;
    }
    .auth-hero { display: none; }

    /* ZONE 1: BRAND ZONE (top, flex: 0) — logo + tagline, centered */
    .auth-mobile-brand {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        max-width: 400px;
        margin: 0;
        color: var(--a-hero-ink);
    }
    .auth-mobile-brand .auth-hero__logo {
        width: clamp(190px, 58vw, 240px);
        max-width: 80vw;
        height: auto;
        display: block;
        margin: 0 auto;
    }
    .auth-mobile-brand .auth-hero__tagline {
        font-family: var(--a-font);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.3px;
        line-height: 1.4;
        white-space: nowrap;
        margin: 8px 0 0;
        color: var(--a-hero-muted);
        text-align: center;
    }

    .auth-card { padding: 24px 18px 20px; }
    [data-theme="orbitar"] .auth-page { --a-title-size: 30px; }

    /* Phones: TarTar (Orbitar) or the mascot (Gametech) is the intro; the card is a bottom sheet */
    .auth-stage { height: 0; }
    [data-theme="orbitar"] .auth-stage {
        position: absolute; width: 0; height: 0; overflow: visible; pointer-events: none;
    }
    .auth-stage > .auth-card {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
        max-width: none; max-height: calc(100dvh - 160px); overflow-y: auto;
        padding-top: 24px; padding-bottom: 16px;
        border-radius: 28px 28px 0 0; border-bottom: 0;
        transform: translateY(105%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        pointer-events: auto;
    }
    .auth-stage > .auth-card .auth-card__head { margin-bottom: 16px; }
    .auth-stage > .auth-card .auth-sub { margin: 8px 0 16px; font-size: 13px; }
    .auth-stage > .auth-card .auth-panel { padding: 12px; gap: 8px; }
    .auth-stage > .auth-card .auth-input input { height: 44px; }
    .auth-stage > .auth-card .auth-row { padding: 8px 2px; }
    .auth-stage > .auth-card .auth-btn { height: 48px; margin-top: 16px; }
    .auth-stage > .auth-card .auth-btn--ghost { height: 44px; margin-top: 8px; }
    .auth-stage > .auth-card .auth-alt > .auth-btn--ghost { height: 44px; margin-top: 0; }
    .auth-stage > .auth-card .auth-foot { margin-top: 16px; }
    .auth-sheet-open .auth-stage > .auth-card { transform: none; }
    :root:not([data-theme="orbitar"]) .auth-stage {
        position: absolute;
        width: 0;
        height: 0;
        overflow: visible;
        pointer-events: none;
    }

    /* Gametech layout inside auth-intro */
    .auth-shell .auth-intro {
        display: flex;
        flex: 1 1 auto;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 0;
    }
    .auth-intro .auth-hero__title {
        font-size: clamp(28px, 9vw, 38px);
        line-height: 1.1;
        margin: 0 0 24px;
    }

    /* ZONE 2: HERO ZONE (middle, flex: 1) — mascot centered */
    .auth-intro .auth-hero__mascot {
        flex: 1 1 auto;
        display: flex;
        align-self: center;
        height: clamp(170px, 28dvh, 260px);
        max-height: 260px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        margin: auto;
    }
    :root:not([data-theme="orbitar"]) .auth-intro .auth-hero__mascot {
        height: clamp(170px, 28dvh, 260px);
        max-height: 260px;
        width: auto;
        max-width: 100%;
        object-fit: contain;
        margin: auto;
    }

    /* ZONE 3: ACTION ZONE (bottom, flex: 0) — Sign in + Download buttons stacked with gap: 12px */
    .auth-intro .auth-btn {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        height: 52px;
        margin: 0 auto;
        border-radius: 999px;
        font-family: var(--a-font);
        font-size: 16px;
        font-weight: 600;
        box-sizing: border-box;
    }
    :root:not([data-theme="orbitar"]) .auth-intro .auth-btn:not(.auth-btn--ghost) {
        background: var(--accent, #f8a815);
        color: #ffffff;
        justify-content: space-between;
        padding: 0 6px 0 24px;
        text-align: left;
    }
    :root:not([data-theme="orbitar"]) .auth-intro .auth-btn:not(.auth-btn--ghost) .auth-btn__arrow {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #ffffff;
        color: var(--accent, #f8a815);
        font-size: 14px;
        flex-shrink: 0;
    }

    .auth-page .auth-shell .auth-intro .auth-btn.auth-btn--ghost {
        margin: 12px auto 0;
        height: 52px;
        width: 100%;
        max-width: 400px;
        border-radius: 999px;
        background: transparent;
        border: 1.5px solid rgba(255, 255, 255, 0.7);
        color: #ffffff;
        box-shadow: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 0 20px;
        font-size: 16px;
        font-weight: 600;
    }
    .auth-page .auth-shell .auth-intro .auth-btn.auth-btn--ghost[hidden] {
        display: none !important;
    }

    .auth-shell .auth-sheet-dim { display: block; }
    .auth-sheet-open .auth-sheet-dim { opacity: 1; visibility: visible; }
}

/* Short phones / landscape: tighten mascot clamp so buttons never move off-screen */
@media (max-width: 900px) and (max-height: 640px) {
    .auth-shell {
        padding: calc(env(safe-area-inset-top, 0px) + 16px) 20px calc(env(safe-area-inset-bottom, 0px) + 16px);
    }
    .auth-mobile-brand .auth-hero__logo { width: clamp(160px, 42vw, 190px); }
    .auth-intro .auth-hero__eyebrow { margin-bottom: 6px; }
    .auth-intro .auth-hero__title { font-size: 26px; margin-bottom: 16px; }
    :root:not([data-theme="orbitar"]) .auth-intro .auth-hero__mascot {
        height: clamp(120px, 22dvh, 160px);
        margin: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .auth-hero__mascot { animation: none !important; }
}

/* =====================================================================
   Orbitar (TarTar). Everything below applies to data-theme="orbitar" only.
   TarTar himself and his bubble: orbitar_brand.css; moods: tartar_login.js.
   ===================================================================== */
[data-theme="orbitar"] ::selection { background: #ff6a1a; color: #111110; }
[data-theme="orbitar"] :focus-visible { outline: 2px solid #ff6a1a; outline-offset: 2px; }

/* Background: the homepage's 4-column hairline frame and one orange orbit */
[data-theme="orbitar"] .auth-bg__grid {
    left: 50%; right: auto; width: min(1280px, calc(100% - 32px)); transform: translateX(-50%);
    opacity: 1; mask-image: none; -webkit-mask-image: none;
    border-right: 1px solid var(--a-hair);
    background-image: linear-gradient(90deg, var(--a-hair) 1px, transparent 1px);
    background-size: 25% 100%;
}
[data-theme="orbitar"] .auth-bg__orbit {
    display: block; position: absolute; left: 50%; top: 58%;
    width: 140vmax; height: 38vmax; border-radius: 50%;
    border: 1px solid rgba(255, 106, 26, 0.3);
    transform: translate(-50%, -50%) rotate(-14deg);
}
[data-theme="orbitar"] .auth-bg__orbit--inner {
    width: 92vmax; height: 24vmax;
    border: 1px dashed rgba(17, 17, 16, 0.12);
}

/* Brand side */
[data-theme="orbitar"] .auth-brand svg { width: 36px; height: 36px; }
[data-theme="orbitar"] .auth-brand span {
    font-family: var(--a-display); font-size: 21px; font-weight: 600;
    letter-spacing: 0.02em; text-transform: uppercase;
}
[data-theme="orbitar"] .auth-hero__eyebrow,
[data-theme="orbitar"] .auth-eyebrow {
    display: inline-flex; align-items: center; gap: 8px; color: var(--a-eyebrow);
}
[data-theme="orbitar"] .auth-hero__eyebrow::before,
[data-theme="orbitar"] .auth-eyebrow::before {
    content: ""; width: 7px; height: 7px; background: #ff6a1a; flex: none;
}
[data-theme="orbitar"] .auth-hero__eyebrow { margin: 64px 0 18px; }
[data-theme="orbitar"] .auth-hero__title {
    font-family: var(--a-display); font-weight: 600; text-transform: uppercase;
    font-size: clamp(44px, 5.4vw, 74px); line-height: 0.9; letter-spacing: -0.015em; color: var(--a-ink);
}
[data-theme="orbitar"] .auth-hero__title strong { font-weight: 600; color: #ff6a1a; }
[data-theme="orbitar"] .auth-hero__copy { font-size: 15px; max-width: 420px; margin-top: 24px; }

/* Card: paper, hairline, a panel strip for the header, square controls */
[data-theme="orbitar"] .auth-card { --card-px: 26px; border-radius: 6px; padding: 0 var(--card-px) 24px; }
[data-theme="orbitar"] .auth-card__head {
    margin: 0 calc(var(--card-px) * -1) 24px; padding: 13px var(--card-px);
    background: #e6e6e3; border-bottom: 1px solid var(--a-hair); border-radius: 5px 5px 0 0;
}
[data-theme="orbitar"] .auth-title { font-family: var(--a-display); text-transform: uppercase; line-height: 0.95; }
[data-theme="orbitar"] .auth-alert { border-radius: 3px; border-left-width: 3px; }
[data-theme="orbitar"] .auth-alert.is-error { border-left-color: #c2410c; }
[data-theme="orbitar"] .auth-alert.is-error i { color: #c2410c; }
[data-theme="orbitar"] .auth-alert.is-success { border-left-color: #2bb673; }
[data-theme="orbitar"] .auth-alert.is-success i { color: #2bb673; }
[data-theme="orbitar"] .auth-panel { padding: 0; border: 0; border-radius: 0; gap: 16px; }
[data-theme="orbitar"] .auth-label {
    font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
}
[data-theme="orbitar"] .auth-input input { height: 46px; border-radius: 3px; font-weight: 500; }
[data-theme="orbitar"] .auth-input input:focus { box-shadow: 0 0 0 3px var(--a-focus-ring); }
[data-theme="orbitar"] .auth-eye { border-radius: 3px; }
[data-theme="orbitar"] .auth-btn {
    border-radius: 0; font-family: var(--a-mono); font-size: 13px; font-weight: 600;
    letter-spacing: 0.12em; text-transform: uppercase;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
}
[data-theme="orbitar"] .auth-btn:active { transform: translateY(1px); }
[data-theme="orbitar"] .auth-btn__arrow { border-radius: 0; }
[data-theme="orbitar"] .auth-btn--ghost { clip-path: none; font-size: 12.5px; }
[data-theme="orbitar"] .auth-btn--ghost:hover { background: #111110; color: #f4f4f2; }
[data-theme="orbitar"] .auth-foot a {
    text-decoration: underline; text-decoration-color: #ff6a1a;
    text-decoration-thickness: 2px; text-underline-offset: 3px;
}
[data-theme="orbitar"] .auth-note { border-radius: 4px; }
[data-theme="orbitar"] .auth-chip { border-radius: 3px; }
[data-theme="orbitar"] .auth-app__card { border-radius: 6px; box-shadow: none; }
[data-theme="orbitar"] .auth-app__opt { border-radius: 4px; }
[data-theme="orbitar"] .auth-sheet-dim { background: rgba(17, 17, 16, 0.45); }

/* TarTar (Orbitar) or Gimi (Gametech) on his orbit (login/_tartar_stage.html) */
.auth-tartar { display: flex; position: relative; z-index: 2; pointer-events: none; }
.auth-tartar__bot { position: relative; display: inline-block; }
.auth-tartar__orbit {
    position: absolute; left: 50%; top: 60%; width: 270%; height: auto;
    transform: translate(-50%, -50%); overflow: visible; pointer-events: none;
}
.auth-tartar .ob-tartar { z-index: 1; pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; }
/* above the card: flame tucked onto the card's top edge, bubble over the card */
[data-theme="orbitar"] .auth-tartar--top { justify-content: flex-start; padding-left: 30px; margin-bottom: -14px; }
.auth-tartar--top .ob-tartar--hero { --tt-h: 200px; }
/* subscriber login: he rides the card itself (no stage there) */
.auth-card--tartar { margin-top: 150px; }
.auth-tartar--card { position: absolute; left: 30px; bottom: calc(100% - 14px); }
.auth-tartar--card .ob-tartar--hero { --tt-h: 160px; }
/* Gametech staff login: Gimi takes the old mascot's spot in the brand panel */
.auth-tartar--hero { align-self: center; margin: 28px auto 0; }
.auth-tartar--hero .ob-tartar--hero { --tt-h: 340px; }
@media (min-width: 901px) {
    [data-theme="orbitar"] .auth-shell { padding-top: 28px; padding-bottom: 28px; }
}
@media (min-width: 901px) and (max-height: 860px) {
    .auth-tartar--top .ob-tartar--hero { --tt-h: 150px; }
    .auth-tartar--hero .ob-tartar--hero { --tt-h: 260px; }
    [data-theme="orbitar"] .auth-hero__eyebrow { margin-top: 40px; }
}
@media (min-width: 901px) and (max-height: 720px) {
    .auth-tartar--top .ob-tartar--hero { --tt-h: 116px; }
    .auth-tartar--hero .ob-tartar--hero { --tt-h: 200px; }
}

@media (max-width: 900px) {
    [data-theme="orbitar"] .auth-card { --card-px: 18px; padding: 0 var(--card-px) 20px; }
    [data-theme="orbitar"] .auth-stage > .auth-card { border-radius: 6px 6px 0 0; border-bottom: 0; }
    [data-theme="orbitar"] .auth-stage > .auth-card .auth-card__head { margin: 0 calc(var(--card-px) * -1) 16px; }
    [data-theme="orbitar"] .auth-stage > .auth-card .auth-panel { padding: 0; }
    .auth-stage .auth-tartar--top { display: none !important; }
    .auth-card--tartar { margin-top: 124px; }
    .auth-tartar--card .ob-tartar--hero { --tt-h: 128px; }

    /* intro: TarTar fills the middle; on Sign in he shrinks and peeks over the sheet (tartar_login.js) */
    [data-theme="orbitar"] .auth-shell .auth-intro { overflow-x: clip; }
    [data-theme="orbitar"] .auth-intro .auth-hero__eyebrow,
    [data-theme="orbitar"] .auth-intro .auth-hero__title { transition: opacity 0.25s; }
    [data-theme="orbitar"] .auth-sheet-open .auth-intro .auth-hero__eyebrow,
    [data-theme="orbitar"] .auth-sheet-open .auth-intro .auth-hero__title { opacity: 0; }
    [data-theme="orbitar"] .auth-intro .auth-hero__eyebrow { margin: 18px 0 12px; }
    [data-theme="orbitar"] .auth-intro .auth-hero__title { font-size: clamp(32px, 10vw, 44px); margin-bottom: 8px; }
    .auth-tartar--intro {
        flex: 1 1 auto; min-height: 0; width: 100%;
        align-items: center; justify-content: center;
        transform-origin: 50% 100%;
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .auth-tartar--intro .ob-tartar--hero { --tt-h: clamp(170px, 30dvh, 260px); }
    .auth-tartar--intro .ob-bubble { transform-origin: 0 100%; transform: scale(calc(1 / var(--peek-s, 1))); }
    .auth-sheet-open .auth-tartar--intro { z-index: 101; }
    [data-theme="orbitar"] .auth-intro .auth-btn:not(.auth-btn--ghost) { justify-content: space-between; padding: 0 7px 0 22px; }
    [data-theme="orbitar"] .auth-page .auth-shell .auth-intro .auth-btn.auth-btn--ghost {
        border-radius: 0; border: 1px solid color-mix(in oklab, #111110 80%, transparent);
        color: #111110; font-size: 12.5px;
    }
}
@media (max-width: 900px) and (max-height: 640px) {
    .auth-tartar--intro .ob-tartar--hero { --tt-h: clamp(120px, 24dvh, 170px); }
}
@media (prefers-reduced-motion: reduce) {
    .auth-tartar--intro { transition: none; }
}
