/* Group Lande sign-in, setup, account and admin pages: same dark tokens as the app. */
:root {
  --bg: #0b1020; --bg-2: #0f172a; --panel: #111a2e; --panel-2: #172238; --panel-3: #1d2a44;
  --ink: #e8edf7; --ink-2: #c7d0e0; --muted: #8f9bb3; --line: rgba(148, 163, 184, .16); --line-strong: rgba(148, 163, 184, .3);
  --accent: #38bdf8; --accent-2: #818cf8; --accent-ink: #061018; --accent-soft: rgba(56, 189, 248, .14);
  --glow: 0 0 0 3px rgba(56, 189, 248, .6);
  --field-line: #64748b;
  --danger: #f87171; --ok: #34d399; --warn: #fbbf24;
  --danger-soft: rgba(248, 113, 113, .14); --ok-soft: rgba(52, 211, 153, .14); --warn-soft: rgba(251, 191, 36, .14);
  --radius: 10px; --shadow: 0 10px 30px rgba(0, 0, 0, .38);
  --grad: linear-gradient(135deg, #38bdf8, #818cf8);
  --fill-1: var(--fill-1); --fill-2: var(--fill-2); --fill-3: rgba(255, 255, 255, .11); --bar: rgba(11, 16, 32, .92); --accent-fill: #38bdf8;
  --ok-ink: var(--ok-ink); --bad-ink: var(--bad-ink); --warn-ink: var(--warn-ink); --info-ink: var(--info-ink); --violet-ink: var(--violet-ink); --orange-ink: var(--orange-ink); --lavender: var(--lavender); --toast-bad: #3b1515; --toast-bad-ink: #e8edf7;
  font: 15px/1.45 "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: radial-gradient(1100px 520px at 12% -8%, rgba(56, 189, 248, .14), transparent 60%), radial-gradient(900px 480px at 100% 0%, rgba(129, 140, 248, .12), transparent 60%), var(--bg); }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--accent); }
code { background: var(--fill-2); padding: 1px 5px; border-radius: 4px; font-size: 13px; word-break: break-all; }
h1, h2, h3 { letter-spacing: -.01em; }
::placeholder { color: var(--muted); opacity: 1; }
:where(button, a, summary, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.logo { width: 28px; height: 28px; border-radius: 8px; background: var(--grad); color: var(--accent-ink); font-weight: 800; font-size: 12px; letter-spacing: .02em; display: inline-grid; place-items: center; box-shadow: 0 0 18px rgba(56, 189, 248, .35); flex: none; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--ink); text-decoration: none; }
.brand-lg { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.brand-lg .logo { width: 38px; height: 38px; border-radius: 11px; font-size: 15px; }
.tagline { color: var(--muted); font-size: 13px; margin: 0 0 18px; }

.topbar { height: 56px; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--bar); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.topbar .who { margin-left: auto; font-size: 13px; color: var(--muted); }
.topbar a.nav { color: var(--ink-2); font-size: 13px; text-decoration: none; }
.topbar a.nav:hover { color: var(--ink); }

.wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; }
.wrap.narrow { max-width: 420px; padding-top: 48px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 14px; padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
h1 { font-size: 22px; margin: 0 0 6px; }
h2 { font-size: 17px; margin: 0 0 12px; }
h3 { font-size: 11px; margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
p { margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 13px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row > * { flex: 1 1 160px; }
.row > .auto { flex: 0 0 auto; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
input, select { width: 100%; padding: 11px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--fill-1); color: var(--ink); }
input:focus, select:focus { outline: none; box-shadow: var(--glow); border-color: var(--accent); }
input.code { font-size: 24px; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--fill-1); color: var(--ink); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, filter .15s; }
.btn:hover { background: var(--fill-3); }
.btn.primary { background: var(--grad); color: var(--accent-ink); border-color: transparent; font-weight: 600; box-shadow: 0 4px 16px rgba(56, 189, 248, .25); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--bad-ink); border-color: rgba(248, 113, 113, .4); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.small { padding: 5px 9px; font-size: 13px; }
.btn.block { width: 100%; margin-top: 14px; }
.btn[disabled] { opacity: .55; cursor: wait; }
.note { min-height: 1.3em; margin-top: 10px; font-size: 14px; }
.note.err { color: var(--danger); }
.note.ok { color: var(--ok); }
.note.warn { color: var(--warn); }
.qr { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin: 12px 0; }
.qr svg { width: 180px; height: 180px; border-radius: 10px; background: #fff; padding: 8px; }
.codes { columns: 2; gap: 20px; font: 15px/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--fill-1); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
.codes div { break-inside: avoid; white-space: nowrap; }
.link-box { background: rgba(56, 189, 248, .07); border: 1px solid rgba(56, 189, 248, .35); border-radius: 10px; padding: 12px; margin: 10px 0; }
.link-box code { display: block; margin: 6px 0; background: transparent; padding: 0; font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
tr.off td { color: var(--muted); }
.pill { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--fill-2); color: var(--ink-2); }
.pill.ok { background: var(--ok-soft); color: var(--ok-ink); }
.pill.warn { background: var(--warn-soft); color: var(--warn-ink); }
.pill.bad { background: var(--danger-soft); color: var(--bad-ink); }
.actions { display: flex; gap: 6px; flex-wrap: wrap; }
.status { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.status .tile { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.status .tile b { display: block; font-size: 18px; }
.status .tile span { font-size: 12px; color: var(--muted); }
.scroll { overflow-x: auto; }
details summary { cursor: pointer; color: var(--accent); font-size: 14px; margin: 8px 0; }
@media (max-width: 600px) { .card { padding: 16px; } .codes { columns: 1; } th:nth-child(n+5), td:nth-child(n+5) { display: none; } .scroll table th, .scroll table td { display: table-cell; } }

/* ---- sign-in landing: brand panel + form (two columns on desktop, stacked on phones) */
.auth-body { min-height: 100vh; }
.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.hero { position: relative; overflow: hidden; display: flex; align-items: center; padding: 48px 56px; background: linear-gradient(160deg, #0d1530 0%, #0b1020 55%, #0a0f1d 100%); border-right: 1px solid var(--line); isolation: isolate; }
.hero-inner { position: relative; z-index: 2; max-width: 520px; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; pointer-events: none; }
.orb-a { width: 420px; height: 420px; left: -120px; top: -140px; background: radial-gradient(circle at 30% 30%, #38bdf8, transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.orb-b { width: 520px; height: 520px; right: -200px; bottom: -220px; background: radial-gradient(circle at 60% 60%, #818cf8, transparent 65%); animation: drift 24s ease-in-out infinite alternate-reverse; }
.hero-grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5; background-image: linear-gradient(rgba(148, 163, 184, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(148, 163, 184, .08) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 40% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 40% 50%, #000 20%, transparent 75%); }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .hero-orb { animation: none; } }
.hero .brand-lg { font-size: 18px; margin-bottom: 36px; }
.hero .brand-lg .logo { width: 34px; height: 34px; font-size: 13px; }
.hero-title { font-size: clamp(34px, 4.2vw, 52px); line-height: 1.05; margin: 0 0 14px; font-weight: 800; letter-spacing: -.03em; background: linear-gradient(90deg, #ffffff 0%, var(--violet-ink) 60%, #7dd3fc 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 16px; color: var(--ink-2); margin: 0 0 28px; max-width: 46ch; }
.hero-points { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 12px; }
.hero-points li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--fill-1); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-points b { display: block; font-size: 14px; }
.hero-points span { font-size: 13px; color: var(--muted); }
.pt-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 13px; flex: none; }
.hero-foot { font-size: 12px; color: var(--muted); margin: 0; }
.panel { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-card { width: min(420px, 100%); margin: 0; padding: 28px; }
.brand-mobile { display: none; margin-bottom: 18px; }
.login-title { font-size: 24px; margin: 0 0 6px; }
.login-help { margin: 18px 0 0; }
.step-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin: 0 0 6px; font-weight: 600; }
@media (max-width: 900px) {
  .auth-shell { grid-template-columns: 1fr; }
  .hero { display: none; }
  .brand-mobile { display: flex; }
  .panel { align-items: flex-start; padding: 32px 16px; }
}

@media (max-width: 600px) { .topbar { gap: 10px; padding: 0 12px; } .topbar .brand span:last-child { display: none; } .topbar a.nav, .topbar .who { white-space: nowrap; } .topbar .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; } }

/* control boundaries: last, so it wins over the base field rule above */
input, select, .btn, .btn.danger { border-color: var(--field-line); }
.btn.primary { border-color: transparent; }

/* ---- light mode (the ☀/☾ button; dark is the default) */
:root[data-theme="light"] {
  --bg: #eef2f8; --bg-2: #ffffff; --panel: #ffffff; --panel-2: #f3f6fb; --panel-3: #e7ecf4; --glass: rgba(255, 255, 255, .9); --bar: rgba(255, 255, 255, .92);
  --ink: #0f172a; --ink-2: #334155; --muted: #5b6b82; --line: rgba(15, 23, 42, .1); --line-strong: rgba(15, 23, 42, .18); --field-line: #94a3b8;
  --accent: #0369a1; --accent-2: #4f46e5; --accent-fill: #0ea5e9; --accent-soft: rgba(14, 165, 233, .14); --glow: 0 0 0 3px rgba(14, 165, 233, .4);
  --danger: #dc2626; --ok: #059669; --warn: #d97706; --orange: #ea580c; --violet: #7c3aed; --teal: #0d9488;
  --danger-soft: rgba(220, 38, 38, .1); --ok-soft: rgba(5, 150, 105, .12); --warn-soft: rgba(217, 119, 6, .14); --info-soft: rgba(14, 165, 233, .12); --violet-soft: rgba(79, 70, 229, .12);
  --fill-1: rgba(15, 23, 42, .04); --fill-2: rgba(15, 23, 42, .07); --fill-3: rgba(15, 23, 42, .11);
  --ok-ink: #047857; --bad-ink: #b91c1c; --warn-ink: #92400e; --info-ink: #075985; --violet-ink: #4338ca; --orange-ink: #c2410c; --lavender: #6d28d9;
  --toast-bad: #dc2626; --toast-bad-ink: #fff;
  --shadow: 0 10px 30px rgba(15, 23, 42, .14); --shadow-sm: 0 2px 10px rgba(15, 23, 42, .1);
  color-scheme: light;
}
:root[data-theme="light"], :root[data-theme="light"] body { background: radial-gradient(1100px 520px at 12% -8%, rgba(14, 165, 233, .12), transparent 60%), radial-gradient(900px 480px at 100% 0%, rgba(99, 102, 241, .1), transparent 60%), var(--bg); }
:root[data-theme="light"] .logo { box-shadow: 0 0 14px rgba(14, 165, 233, .3); }
.icon-btn { width: 34px; height: 34px; border-radius: 99px; border: 1px solid var(--field-line); background: var(--fill-1); color: var(--ink); cursor: pointer; display: inline-grid; place-items: center; font-size: 15px; line-height: 1; flex: none; }
.icon-btn:hover { background: var(--fill-3); }
:root[data-theme="light"] .hero { background: linear-gradient(160deg, #e9effb 0%, #f3f6fb 55%, #eef2f8 100%); }
:root[data-theme="light"] .hero-title { background: linear-gradient(90deg, #0f172a 0%, #4338ca 60%, #0369a1 100%); -webkit-background-clip: text; background-clip: text; }
:root[data-theme="light"] .hero-orb { opacity: .35; }
.theme-corner { position: absolute; top: 16px; right: 16px; }
