:root {
  --bg: #070b14;
  --panel: #0f1522;
  --panel-2: #121a2a;
  --line: #1e2738;
  --text: #e9eef9;
  --muted: #8b96ab;
  --accent: #6ee7b7;
  --accent-ink: #052e22;
  --warn: #ff8f8f;
  --radius: 18px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, 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 {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  overflow-x: hidden;
  position: relative;
}

.glow {
  position: fixed;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}
.glow-a { background: #1f6f5c; top: -220px; right: -160px; }
.glow-b { background: #3a2f7a; bottom: -260px; left: -180px; opacity: 0.3; }

.shell {
  width: min(440px, 100%);
  position: relative;
  z-index: 1;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding-left: 4px;
}
.logo {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, var(--accent), #4f8cff, var(--accent));
  box-shadow: 0 0 18px rgba(110, 231, 183, 0.45);
  position: relative;
}
.logo::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--bg);
}
.brand-name { font-weight: 700; letter-spacing: 0.04em; font-size: 18px; }
.brand-tag { color: var(--muted); font-size: 12px; margin-left: 2px; }

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 26px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  min-height: 320px;
}

.steps {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.step i {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: var(--line);
}
.step.on { color: var(--text); }
.step.on i { background: linear-gradient(90deg, var(--accent), #4f8cff); }

h1 { font-size: 24px; margin: 0 0 8px; letter-spacing: -0.01em; }

.sub { color: var(--muted); font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.sub strong { color: var(--text); font-weight: 600; }

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }

input[type="email"], input[type="password"], input[type="date"],
input[type="text"], #code, #username, #name, #dob {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0b111c;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  border-color: rgba(110, 231, 183, 0.65);
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.12);
}
input::placeholder { color: #4d586e; }

.inline {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inline .at { color: var(--muted); font-size: 15px; }
#code { letter-spacing: 0.35em; font-variant-numeric: tabular-nums; }

button { font-family: inherit; cursor: pointer; }

.primary {
  width: 100%;
  padding: 12px 16px;
  margin-top: 6px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--accent), #4f8cff);
  color: var(--accent-ink);
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.08s, filter 0.15s;
}
.primary:hover { filter: brightness(1.06); }
.primary:active { transform: translateY(1px); }
.primary:disabled { filter: saturate(0.5) brightness(0.85); cursor: default; }

.ghost {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: 14px;
}
.ghost:hover { border-color: #33415c; }
.ghost:disabled { color: var(--muted); border-color: var(--line); cursor: default; }

.link {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link:hover { color: var(--text); }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}
.row .primary { width: auto; flex: 1; margin-top: 0; }

.err {
  color: var(--warn);
  font-size: 13px;
  line-height: 1.5;
  margin: 4px 0 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 143, 143, 0.08);
  border: 1px solid rgba(255, 143, 143, 0.25);
}

.tip { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 14px 0 0; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 12px;
}
.chips:empty { display: none; }

.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #0b111c;
  color: var(--text);
  font-size: 13px;
  transition: border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: rgba(110, 231, 183, 0.5); }
.chip.on {
  border-color: var(--accent);
  background: rgba(110, 231, 183, 0.12);
  color: var(--accent);
}

.interest { margin-bottom: 18px; }

.meter {
  height: 4px;
  border-radius: 4px;
  background: var(--line);
  overflow: hidden;
  margin: -4px 0 14px;
}
.meter i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--warn), #f4b860, var(--accent));
  transition: width 0.2s;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  margin: 6px 0 16px;
  cursor: pointer;
}
.check input { width: 17px; height: 17px; accent-color: var(--accent); }

.done { text-align: center; padding: 10px 0 4px; }
.badge {
  width: 56px;
  height: 56px;
  margin: 4px auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), #4f8cff);
  box-shadow: 0 0 30px rgba(110, 231, 183, 0.35);
}
.done .ghost { margin-top: 10px; }

.foot {
  margin-top: 16px;
  text-align: center;
  color: #5b6679;
  font-size: 12px;
  line-height: 1.6;
}

.noscript {
  position: fixed;
  inset: auto 16px 16px;
  text-align: center;
  color: var(--warn);
  font-size: 14px;
}

@media (max-width: 480px) {
  body { padding: 20px 12px; }
  .card { padding: 22px 18px; }
  h1 { font-size: 21px; }
}
