@font-face { font-family: Inter; src: url(brand/fonts/inter-latin.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #0c0330;
  --plum: #170438;
  --card: rgba(23, 10, 60, .78);
  --line: rgba(137, 91, 245, .32);
  --text: #f1edff;
  --muted: #b9b0da;
  --indigo: #3f3bf2;
  --indigo-hi: #5a56ff;
  --violet: #895bf5;
  --green: #22d36b;
  --amber: #ffb020;
  --red: #ff4d5e;
  --alert: #e20074;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 80% -10%, rgba(137, 91, 245, .45), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(63, 59, 242, .35), transparent 60%),
    linear-gradient(180deg, #0a0126, var(--ink));
  -webkit-font-smoothing: antialiased;
}

/* checkered flag stripe along the top */
.checker {
  height: 14px;
  background-image:
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%),
    linear-gradient(45deg, #fff 25%, transparent 25%, transparent 75%, #fff 75%);
  background-size: 14px 14px;
  background-position: 0 0, 7px 7px;
  background-color: #111;
  opacity: .9;
}

.shell { width: min(100%, 440px); margin: 0 auto; padding: 22px 16px calc(28px + env(safe-area-inset-bottom)); }

.brand { text-align: center; margin: 10px 0 22px; }
.logo { height: 26px; width: auto; opacity: .95; }
h1 { font-size: 44px; line-height: 1; letter-spacing: -.02em; margin: 16px 0 6px; font-weight: 800; font-style: italic; }
h1 span { color: var(--green); }
.tag { margin: 0; color: var(--muted); font-size: 15px; letter-spacing: .14em; text-transform: uppercase; }

.lights { display: flex; width: max-content; gap: 10px; margin: 18px auto 0; padding: 8px 12px; border-radius: 999px; background: #05010f; border: 1px solid #2a1d52; }
.l { width: 16px; height: 16px; border-radius: 50%; background: #2a2340; }
.lights .red   { animation: red 3s infinite; }
.lights .amber { animation: amber 3s infinite; }
.lights .green { animation: green 3s infinite; }
@keyframes red   { 0%, 30% { background: var(--red);   box-shadow: 0 0 12px var(--red); }   31%, 100% { background: #2a2340; box-shadow: none; } }
@keyframes amber { 0%, 30% { background: #2a2340; box-shadow: none; } 31%, 62% { background: var(--amber); box-shadow: 0 0 12px var(--amber); } 63%, 100% { background: #2a2340; box-shadow: none; } }
@keyframes green { 0%, 62% { background: #2a2340; box-shadow: none; } 63%, 100% { background: var(--green); box-shadow: 0 0 14px var(--green); } }
@media (prefers-reduced-motion: reduce) { .lights .l { animation: none; } .lights .green { background: var(--green); } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px);
}
h2 { margin: 0 0 6px; font-size: 24px; }
.sub { margin: 0 0 18px; color: var(--muted); font-size: 16px; line-height: 1.45; }

label { display: block; font-weight: 600; font-size: 15px; margin: 14px 0 6px; }
input {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 17px; color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 12px;
}
input:focus { outline: 3px solid rgba(90, 86, 255, .45); border-color: var(--indigo-hi); }
.pw { position: relative; }
.pw input { padding-right: 78px; }
.pw .ghost { position: absolute; right: 6px; top: 6px; min-height: 40px; padding: 0 12px; }
.codebox { text-align: center; font-size: 28px; letter-spacing: .4em; text-transform: uppercase; font-weight: 700; }

button { font: inherit; cursor: pointer; }
.go {
  width: 100%; min-height: 56px; margin-top: 22px; border: 0; border-radius: 999px;
  background: var(--green); color: #04210f; font-weight: 800; font-size: 18px; letter-spacing: .01em;
}
.go:hover { filter: brightness(1.06); }
.go:disabled { opacity: .6; cursor: progress; }
.ghost {
  background: transparent; color: var(--muted);
  border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; min-height: 48px; font-size: 15px;
}
.ghost.wide { width: 100%; margin-top: 12px; }

.err { margin: 14px 0 0; color: #ff8fb8; font-weight: 600; font-size: 15px; }

.ready { text-align: center; margin-bottom: 10px; }
.ready .l { display: inline-block; width: 46px; height: 46px; }
.l.on { background: var(--green); box-shadow: 0 0 28px var(--green); }
#home h2 { text-align: center; }
#home .sub { text-align: center; }
.placeholder { display: grid; gap: 10px; margin: 6px 0 4px; }
.step { padding: 14px 14px; border-radius: 12px; border: 1px dashed rgba(255, 255, 255, .22); color: var(--muted); font-size: 16px; }
.step b { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: rgba(34, 211, 107, .18); color: var(--green); }
.who { text-align: center; color: var(--muted); font-size: 14px; margin: 16px 0 0; }

.foot { text-align: center; color: #7f76a6; font-size: 13px; margin-top: 22px; }
