
:root {
  --bg: #000; --text: #fff; --muted: rgba(255,255,255,.62); --faint: rgba(255,255,255,.42);
  --surface: rgba(255,255,255,.08); --line: rgba(255,255,255,.10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; display: flex; flex-direction: column; }
.glow { position: fixed; inset: -20% -10% auto; height: 70vh; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(255,255,255,.13), rgba(255,255,255,0) 70%); }
.top { position: relative; display: flex; justify-content: space-between; align-items: center;
  padding: max(20px, env(safe-area-inset-top)) 22px 0; }
.brand { font-size: 13px; font-weight: 700; letter-spacing: .22em; color: var(--muted); }
.lang { display: flex; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.lang button { border: 0; background: transparent; color: var(--muted); font: 600 13px var(--font);
  padding: 7px 13px; border-radius: 999px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: #fff; color: #000; }
.wrap { position: relative; flex: 1; width: 100%; max-width: 480px; margin: 0 auto; padding: 28px 18px 40px; }
.card { background: rgba(255,255,255,.06); border: 1px solid var(--line); border-radius: 30px; padding: 28px 22px;
  -webkit-backdrop-filter: blur(30px) saturate(140%); backdrop-filter: blur(30px) saturate(140%);
  box-shadow: 0 30px 80px rgba(0,0,0,.55); }
h1 { margin: 0; font-size: 30px; line-height: 1.15; font-weight: 750; letter-spacing: -.01em; }
.sub { margin: 10px 0 0; color: var(--muted); font-size: 16px; line-height: 1.45; }
form { margin-top: 26px; display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.label { font-size: 14px; font-weight: 600; color: var(--muted); }
.hint { font-size: 13px; color: var(--faint); }
input { width: 100%; height: 54px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); font: 500 17px var(--font); padding: 0 16px; outline: none;
  transition: background .15s, color .15s, transform .15s, box-shadow .15s; }
input::placeholder { color: var(--faint); }
input:focus { background: #fff; color: #000; border-color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
input:focus::placeholder { color: rgba(0,0,0,.4); }
input.code { height: 66px; text-align: center; font: 700 28px ui-monospace, "SF Mono", Menlo, monospace;
  letter-spacing: .38em; text-transform: uppercase; padding-left: .38em; }
.secret { position: relative; display: block; }
.secret input { padding-right: 84px; }
.reveal { position: absolute; right: 8px; top: 8px; height: 38px; padding: 0 12px; border-radius: 12px; border: 0;
  background: transparent; color: var(--muted); font: 600 14px var(--font); cursor: pointer; }
.secret input:focus + .reveal { color: rgba(0,0,0,.6); }
.primary, .secondary { width: 100%; height: 56px; border-radius: 999px; font: 700 17px var(--font); cursor: pointer;
  transition: transform .12s, opacity .15s; }
.primary { margin-top: 6px; border: 0; background: #fff; color: #000; }
.primary:active, .secondary:active { transform: scale(.98); }
.primary:disabled { opacity: .55; cursor: default; }
.secondary { margin-top: 26px; background: var(--surface); color: #fff; border: 1px solid var(--line); }
.message { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.22); font-size: 15px; line-height: 1.4; }
.message::before { content: "!"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px;
  border-radius: 50%; background: #fff; color: #000; font-weight: 800; font-size: 13px; vertical-align: -3px; }
.note { margin: 18px 2px 0; font-size: 13px; line-height: 1.45; color: var(--faint); }
.tip { margin: 22px 6px 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }
.done { text-align: center; padding-top: 40px; }
.check { width: 84px; height: 84px; margin: 0 auto 22px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: #000; }
[hidden] { display: none !important; }
@media (min-width: 720px) { .wrap { padding-top: 7vh; } .card { padding: 38px 34px; } h1 { font-size: 34px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
