:root {
  color-scheme: dark;
  --bg: #080b18;
  --panel: #11172b;
  --line: #293453;
  --text: #edf3ff;
  --muted: #91a0bf;
  --cyan: #58e6e9;
  --purple: #ad8bff;
  --danger: #ff91a4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 10%, rgba(88,230,233,.12), transparent 32%), radial-gradient(circle at 85% 80%, rgba(173,139,255,.13), transparent 35%), var(--bg);
}
.auth-card {
  width: min(100%, 460px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(17,23,43,.96);
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.auth-brand { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 32px; color: var(--text); text-decoration: none; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.auth-logo { width: 38px; height: 38px; border: 2px solid var(--cyan); border-radius: 50%; position: relative; box-shadow: 0 0 24px rgba(88,230,233,.2); }
.auth-logo::after { content: ""; position: absolute; width: 46px; height: 12px; border: 1px solid var(--purple); border-radius: 50%; left: -6px; top: 11px; transform: rotate(-25deg); }
.eyebrow { margin: 0 0 8px; color: var(--purple); text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; }
h1 { margin: 0 0 14px; font-size: clamp(1.45rem, 5vw, 1.85rem); line-height: 1.2; }
.intro { color: var(--muted); line-height: 1.6; font-size: .92rem; }
.intro strong { color: var(--text); overflow-wrap: anywhere; }
form { display: grid; gap: 10px; margin-top: 26px; }
label { font-size: .82rem; font-weight: 700; }
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 14px;
  color: var(--text);
  background: #0b1020;
  font: inherit;
  font-size: 1rem;
}
input:focus { outline: 2px solid var(--cyan); outline-offset: 2px; border-color: transparent; }
.code-input { text-align: center; font-size: 1.65rem; font-weight: 800; letter-spacing: .35em; padding-left: calc(14px + .35em); }
button { font: inherit; }
.primary-btn {
  margin-top: 8px;
  border: 1px solid var(--cyan);
  border-radius: 10px;
  padding: 13px 16px;
  color: #071719;
  background: var(--cyan);
  cursor: pointer;
  font-weight: 800;
}
.primary-btn:hover:not(:disabled) { filter: brightness(1.08); }
.primary-btn:disabled, .secondary-btn:disabled { opacity: .55; cursor: wait; }
.secondary-btn { display: block; margin: 16px auto 0; border: 0; color: var(--cyan); background: none; cursor: pointer; font-size: .8rem; text-decoration: underline; }
.status { min-height: 24px; margin: 16px 0 0; color: var(--cyan); font-size: .84rem; line-height: 1.5; }
.status.error { color: var(--danger); }
.privacy { margin: 22px 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .75rem; line-height: 1.6; }
.back-link { display: block; text-align: center; color: var(--muted); font-size: .8rem; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
@media (max-width: 520px) {
  body { padding: 14px; }
  .auth-card { padding: 25px 20px; }
  .auth-brand { margin-bottom: 25px; }
}
