    :root {
      --ink: #111827;
      --muted: #6b7280;
      --line: #dbe2ea;
      --panel: #ffffff;
      --soft: #f7f9fc;
      --accent: #2563eb;
      --green: #1f9d7a;
      --error: #b91c1c;
    }
    * { box-sizing: border-box; }
    [hidden] { display: none !important; }
    body {
      margin: 0;
      min-height: 100vh;
      display: grid;
      place-items: center;
      color: var(--ink);
      background:
        radial-gradient(circle at top left, rgba(14, 165, 233, .24), transparent 30%),
        linear-gradient(145deg, #07111f, #0d1726 54%, #111827);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      padding: 24px;
    }
    .login-shell {
      width: min(460px, 100%);
      background: rgba(255, 255, 255, .96);
      border: 1px solid rgba(226, 232, 240, .84);
      border-radius: 8px;
      box-shadow: 0 24px 70px rgba(0, 0, 0, .36);
      padding: 30px;
    }
    .brand-mark {
      width: 96px;
      height: 96px;
      border-radius: 8px;
      object-fit: cover;
      display: block;
      margin: 0 auto 18px;
      box-shadow: none;
    }
    h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: 0; text-align: center; }
    h2 { margin: 0 0 8px; font-size: 16px; letter-spacing: 0; }
    p { margin: 0 0 22px; color: var(--muted); line-height: 1.45; }
    .login-shell > p { text-align: center; }
    label { display: block; margin: 14px 0 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
    input {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 12px 14px;
      font: inherit;
      background: var(--soft);
      color: var(--ink);
    }
    input:focus {
      border-color: var(--accent);
      outline: 3px solid rgba(37, 99, 235, .16);
      background: #fff;
    }
    button {
      width: 100%;
      margin-top: 18px;
      border: 0;
      border-radius: 8px;
      background: var(--accent);
      color: white;
      padding: 12px 14px;
      font: inherit;
      font-weight: 800;
      cursor: pointer;
    }
    button:hover { background: #1d4ed8; }
    .message {
      min-height: 20px;
      margin-top: 14px;
      color: var(--error);
      font-size: 13px;
      line-height: 1.4;
    }
    .setup-note {
      margin-top: 20px;
      padding: 16px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--soft);
      font-size: 13px;
      line-height: 1.45;
    }
    .setup-note p { margin-bottom: 12px; }
    details {
      margin-top: 12px;
      border-top: 1px solid var(--line);
      padding-top: 12px;
    }
    summary {
      cursor: pointer;
      color: var(--accent);
      font-weight: 800;
    }
    ol {
      margin: 12px 0;
      padding-left: 20px;
      color: var(--muted);
    }
    code {
      display: block;
      margin-top: 8px;
      padding: 10px;
      border-radius: 8px;
      overflow-wrap: anywhere;
      background: #ffffff;
      border: 1px solid var(--line);
      color: var(--ink);
      font-weight: 700;
    }
    .reset-note {
      margin-top: 14px;
      padding-top: 12px;
      border-top: 1px solid var(--line);
    }
    .reset-note strong { color: var(--ink); }
    @media (max-width: 520px) {
      body { padding: 14px; align-items: start; }
      .login-shell { padding: 22px; margin-top: 10px; }
      h1 { font-size: 24px; }
    }

.auth-headline { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: #fff; margin: 0 0 12px; }
.auth-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.auth-link { width: auto; margin: 0; flex-shrink: 0; white-space: nowrap; border: 0; background: none; padding: 0; color: #2563eb; font-size: 13px; font-weight: 600; cursor: pointer; }
.auth-link:hover, .auth-link:focus-visible, .auth-link:active { background: none; color: #2563eb; text-decoration: underline; }
.auth-link:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (max-width: 520px) {
  body .auth { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .auth .auth-pitch, .auth .auth-form { min-width: 0; padding: 24px; }
}
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 4px 0; color: #a3aebd; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: #e1e6ee; }
.auth-provider { width: 100%; padding: 11px; border: 1px solid #e1e6ee; border-radius: 8px; background: #fff; color: #17233a; font-size: 14px; font-weight: 700; cursor: pointer; }
.auth-provider:hover { background: #f5f8fc; }
.auth-info { padding: 11px 13px; border: 1px solid #d7e6fb; border-radius: 8px; background: #eff6ff; color: #1d4ed8; font-size: 13px; line-height: 1.5; }
.auth-info code { display: inline-block; margin-top: 6px; font-size: 11.5px; }
.auth-warn { padding: 11px 13px; border: 1px solid #fed7aa; border-radius: 8px; background: #fff7ed; color: #9a3412; font-size: 13px; line-height: 1.5; }
.auth-foot-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid #e1e6ee; color: #5b677d; font-size: 13px; }
.auth-chip { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 8px; background: #eff6ff; color: #2563eb; font-size: 18px; }
.auth-chip.is-green { background: #e9f8f3; color: #12624f; }
.auth-locked { margin-left: 8px; color: #a3aebd; font-size: 11px; font-weight: 600; }
.auth-hint { display: block; margin: -6px 0 8px; color: #7a8698; font-size: 12px; }
.auth-checklist { margin: 0 0 12px; padding: 0; list-style: none; }
.auth-checklist li { position: relative; padding: 3px 0 3px 22px; color: #5b677d; font-size: 13px; }
.auth-checklist li::before { content: "✓"; position: absolute; left: 0; color: #16a34a; font-weight: 800; }
.auth-invite-card { margin-bottom: 14px; border: 1px solid #e1e6ee; border-radius: 8px; background: #fff; overflow: hidden; }
.auth-invite-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #eef2f7; }
.auth-invite-head b { display: block; color: #17233a; font-size: 13px; }
.auth-invite-head small { color: #7a8698; font-size: 12px; }
.auth-invite-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #0f2033; color: #fff; font-size: 12px; font-weight: 800; }
.auth-invite-role { margin-left: auto; padding: 3px 10px; border: 1px solid #d7e6fb; border-radius: 999px; background: #eff6ff; color: #1d4ed8; font-size: 11.5px; font-weight: 700; }
.auth-invite-card > p { margin: 0; padding: 11px 14px; background: #f8fafc; color: #5b677d; font-size: 13px; line-height: 1.5; }

.oops-body { display: grid; place-items: center; min-height: 100vh; margin: 0; background: #f5f7fb; font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.oops { max-width: 560px; padding: 40px 24px; text-align: center; }
.oops .brand-mark { width: 40px; height: 40px; border-radius: 8px; }
.oops-code { font-size: 72px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.oops-code.is-muted { color: #c3ccd8; }
.oops-code.is-danger { color: #b91c1c; }
.oops h1 { margin: 4px 0 8px; color: #17233a; font-size: 21px; }
.oops p { margin: 0 auto; max-width: 460px; color: #5b677d; font-size: 14px; line-height: 1.55; }
.oops-actions { display: flex; justify-content: center; gap: 10px; margin-top: 18px; }
.oops-btn { display: inline-block; padding: 9px 16px; border: 1px solid #e1e6ee; border-radius: 8px; background: #fff; color: #17233a; font-size: 13px; font-weight: 700; text-decoration: none; }
.oops-btn.is-primary { border-color: transparent; background: #2563eb; color: #fff; }
.oops-reference { margin-top: 22px; padding: 12px 16px; border: 1px solid #e1e6ee; border-radius: 8px; background: #fff; text-align: left; }
.oops-reference span { display: block; margin-bottom: 4px; color: #a3aebd; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.oops-reference code { color: #17233a; font-size: 13px; word-break: break-all; }
.oops-foot { margin-top: 10px !important; color: #a3aebd !important; font-size: 13px !important; }

.sso-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.sso-chip { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink); font-size: 13px; font-weight: 600; cursor: pointer; }
.sso-chip:hover { background: var(--soft); }
.sso-chip.is-off { border-style: dashed; color: var(--muted); cursor: pointer; }
.sso-badge { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 800; }
.sso-chip:not(.is-off) .sso-badge { background: var(--ink); border-color: var(--ink); color: var(--panel); }
.auth-note { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.auth-invite-note { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); color: var(--accent); font-size: 13px; line-height: 1.45; }
:root[data-theme="Dark"], :root[data-theme="Cyberpunk"], :root[data-theme="Neon Noir"] {
  --ink: #e6ebf3;
  --muted: #8f9aab;
  --line: #263041;
  --panel: #101725;
  --soft: #0b111c;
  --accent: #7cb2f7;
  --green: #35b294;
  --error: #f3958f;
}
:root[data-theme="Dark"] body, :root[data-theme="Cyberpunk"] body, :root[data-theme="Neon Noir"] body { background: var(--soft); color: var(--ink); }

:root[data-theme="Dark"] .auth-form, :root[data-theme="Cyberpunk"] .auth-form, :root[data-theme="Neon Noir"] .auth-form { background: var(--soft); color: var(--ink); }
:root[data-theme="Dark"] .auth-form .sub, :root[data-theme="Cyberpunk"] .auth-form .sub, :root[data-theme="Neon Noir"] .auth-form .sub { color: var(--muted); }
:root[data-theme="Dark"] .auth-form h2, :root[data-theme="Cyberpunk"] .auth-form h2, :root[data-theme="Neon Noir"] .auth-form h2 { color: var(--ink); }
:root[data-theme="Dark"] .auth-divider::before, :root[data-theme="Dark"] .auth-divider::after, :root[data-theme="Cyberpunk"] .auth-divider::before, :root[data-theme="Cyberpunk"] .auth-divider::after, :root[data-theme="Neon Noir"] .auth-divider::before, :root[data-theme="Neon Noir"] .auth-divider::after { background: var(--line); }
:root[data-theme="Dark"] .invite-card, :root[data-theme="Cyberpunk"] .invite-card, :root[data-theme="Neon Noir"] .invite-card { background: var(--panel); border-color: var(--line); color: var(--ink); }
:root[data-theme="Dark"] .invite-card code, :root[data-theme="Cyberpunk"] .invite-card code, :root[data-theme="Neon Noir"] .invite-card code { background: var(--soft); border-color: var(--line); color: var(--ink); }
:root[data-theme="Dark"] .auth-form .fields input, :root[data-theme="Cyberpunk"] .auth-form .fields input, :root[data-theme="Neon Noir"] .auth-form .fields input { background: var(--panel); border-color: var(--line); color: var(--ink); }
:root[data-theme="Dark"] .auth-form label, :root[data-theme="Cyberpunk"] .auth-form label, :root[data-theme="Neon Noir"] .auth-form label { color: var(--ink); }
:root[data-theme="Dark"] .auth-foot-row, :root[data-theme="Cyberpunk"] .auth-foot-row, :root[data-theme="Neon Noir"] .auth-foot-row { color: var(--muted); border-color: var(--line); }
:root[data-theme="Dark"] .auth-checklist li, :root[data-theme="Cyberpunk"] .auth-checklist li, :root[data-theme="Neon Noir"] .auth-checklist li { color: var(--muted); }
:root[data-theme="Dark"] .auth-info, :root[data-theme="Cyberpunk"] .auth-info, :root[data-theme="Neon Noir"] .auth-info { color: var(--muted); }
