/* Neev Pulse sign-in. Light, matches the console's tokens. */
:root {
  --bg: #f6f5fb; --panel: #ffffff; --panel-2: #f3f1f9; --line: rgba(20,12,40,0.10); --line-2: rgba(20,12,40,0.18);
  --fg: #15102a; --fg-2: rgba(21,16,42,0.68); --fg-3: rgba(21,16,42,0.50);
  --accent: #7b30c8; --accent-soft: rgba(123,48,200,0.12);
  --ga: #e8622a; --gb: #c03080; --gc: #7b30c8; --grad: linear-gradient(135deg, var(--ga), var(--gb), var(--gc));
  --good: #138a64; --good-soft: rgba(19,138,100,0.10); --warn: #9a6200; --warn-soft: rgba(196,128,0,0.10); --bad: #c23b2e; --bad-soft: rgba(194,59,46,0.08);
  --sans: 'Sora', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; --mono: 'DM Mono', 'SFMono-Regular', Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--fg); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(55% 45% at 8% 0%, rgba(232,98,42,0.10), transparent 70%),
    radial-gradient(50% 50% at 100% 100%, rgba(123,48,200,0.10), transparent 70%),
    var(--bg);
}
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { min-height: 100%; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; max-width: 1080px; margin: 0 auto; padding: 40px 24px; }
.wrap.with-board { grid-template-columns: 1.6fr 1fr; max-width: 1480px; gap: 32px; }

/* Live wallboard preview */
.board { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.board-brand { display: flex; align-items: center; gap: 14px; }
.board-brand img { height: 34px; width: auto; }
.board-top .eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.board-top .eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--good); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.board-open { font-size: 13px; font-weight: 500; color: var(--accent); text-decoration: none; border: 1px solid var(--line-2); border-radius: 100px; padding: 5px 12px; background: #fff; }
.board-open:hover { border-color: var(--accent); }
.board iframe { width: 100%; height: min(72vh, 760px); border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 1px 2px rgba(21,16,42,.05), 0 18px 48px rgba(21,16,42,.08); }
.board-note { margin: 0; font-size: 12px; color: var(--fg-3); }

/* Demonstration accounts */
.divider { display: flex; align-items: center; gap: 10px; color: var(--fg-3); font-size: 10px; font-family: var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-top: 4px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.personas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.persona { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; text-align: left; cursor: pointer; min-width: 0; }
.persona:hover { border-color: var(--accent); background: var(--panel-2); }
.persona[disabled] { opacity: .6; cursor: progress; }
.persona .av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 600; font-size: 12px; color: #fff; }
.persona b { display: block; font-size: 13px; line-height: 1.25; }
.persona small { display: block; color: var(--fg-3); font-family: var(--mono); font-size: 10px; }

/* Brand side */
.brand { display: flex; flex-direction: column; gap: 22px; }
.lenia { height: 44px; width: auto; align-self: flex-start; }
.hero { display: flex; align-items: center; gap: 16px; margin-top: 6px; }
.hero .mark { width: 60px; height: 60px; }
.word { font-size: 50px; font-weight: 800; letter-spacing: -2.5px; line-height: 1; white-space: nowrap; }
.word span { font-weight: 400; letter-spacing: -1px; color: var(--fg-2); }
.lede { margin: 0; color: var(--fg-2); font-size: 16px; line-height: 1.6; max-width: 44ch; text-wrap: pretty; }
.points { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.points li { display: grid; grid-template-columns: 22px 1fr; column-gap: 12px; }
.points li::before { content: ""; grid-row: span 2; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px; background: var(--accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b30c8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>") center / 14px no-repeat; }
.points b { font-weight: 600; font-size: 14px; }
.points span { color: var(--fg-3); font-size: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em; color: var(--fg-3); border: 1px solid var(--line); background: rgba(255,255,255,.6); border-radius: 100px; padding: 4px 12px; }

/* Form side */
.panel { display: flex; flex-direction: column; gap: 14px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: 0 1px 2px rgba(21,16,42,.05), 0 18px 48px rgba(21,16,42,.08); display: flex; flex-direction: column; gap: 16px; }
.card::before { content: ""; position: absolute; top: -1px; left: 32px; right: 32px; height: 2px; border-radius: 2px; background: var(--grad); }
.eyebrow { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ga); margin-bottom: -10px; }
h1 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.sub { margin: -8px 0 0; color: var(--fg-2); }
.step { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.field input { height: 46px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-size: 15px; width: 100%; transition: border-color .12s, box-shadow .12s; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field input[aria-invalid="true"] { border-color: var(--bad); }
.pw { position: relative; }
.pw input { padding-right: 70px; }
.reveal { position: absolute; right: 6px; top: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--panel-2); color: var(--fg-2); font-size: 12px; font-weight: 500; cursor: pointer; }
.reveal:hover { color: var(--fg); }
.code { font-family: var(--mono); font-size: 22px !important; letter-spacing: .35em; text-align: center; }
.primary { height: 48px; border: 0; border-radius: 10px; background: var(--grad); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; box-shadow: 0 6px 18px rgba(192,48,128,.22); transition: transform .08s, opacity .12s; }
.primary:hover { opacity: .94; }
.primary:active { transform: translateY(1px); }
.primary[disabled] { opacity: .6; cursor: progress; }
.link { align-self: flex-start; border: 0; background: none; padding: 0; color: var(--accent); font-size: 13px; font-weight: 500; cursor: pointer; }
.link:hover { text-decoration: underline; }
.back { align-self: center; }
.help { margin: 0; font-size: 13px; color: var(--fg-2); background: var(--panel-2); border-radius: 10px; padding: 10px 12px; }
.err { color: var(--bad); font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.notice { border-radius: 10px; padding: 10px 12px; font-size: 13px; border: 1px solid; }
.notice.info { background: var(--good-soft); border-color: rgba(19,138,100,.3); }
.notice.warn { background: var(--warn-soft); border-color: rgba(196,128,0,.35); }
.notice b { display: block; }
.rules { list-style: none; margin: -4px 0 0; padding: 0; display: grid; gap: 4px; font-size: 12.5px; color: var(--fg-3); }
.rules li { display: flex; align-items: center; gap: 8px; }
.rules li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.rules li.ok { color: var(--good); }
.rules li.ok::before { border-color: var(--good); background: var(--good) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 12.5l4 4 8-9'/></svg>") center / 10px no-repeat; }
.enrol { margin: 0; padding-left: 18px; color: var(--fg-2); font-size: 13px; display: grid; gap: 4px; }
.qr-row { display: flex; gap: 16px; align-items: center; }
.qr { width: 152px; height: 152px; flex: none; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.qr img { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.key { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.key span { font-size: 12px; color: var(--fg-3); }
.key code { font-family: var(--mono); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; user-select: all; background: var(--panel-2); border-radius: 8px; padding: 8px 10px; }
.legal { margin: 0; text-align: center; font-size: 12px; color: var(--fg-3); }

@media (max-width: 880px) {
  .wrap, .wrap.with-board { grid-template-columns: 1fr; gap: 24px; padding: 20px 16px 32px; align-items: start; }
  .brand { gap: 14px; }
  .lenia { height: 34px; }
  .hero .mark { width: 44px; height: 44px; }
  .word { font-size: 36px; letter-spacing: -1.6px; }
  .lede { font-size: 14px; }
  .points, .chips { display: none; }
  .board { order: 2; }
  .board iframe { height: 60vh; }
  .personas { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
}
@media (max-width: 420px) { .qr-row { flex-direction: column; align-items: stretch; } .qr { align-self: center; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
