:root {
  --bg: #0f1420;
  --card: #171e2e;
  --input: #0f1420;
  --text: #e6e9f0;
  --muted: #9aa3b5;
  --border: #2a3347;
  --accent: #3d7bfd;
  --accent-text: #fff;
  --link: #7aa5ff;
  --error-bg: #3a1d24;
  --error: #ffb4bf;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #eef1f6;
    --card: #fff;
    --input: #fff;
    --text: #1a2030;
    --muted: #5d6678;
    --border: #d5dbe6;
    --accent: #2a63e0;
    --link: #2a63e0;
    --error-bg: #fde8eb;
    --error: #9b1c2e;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
}

@media (max-width: 400px) {
  .card { padding: 20px; }
}

header { margin-bottom: 20px; }
h1 { margin: 0; font-size: 1.5rem; }
.sub { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
h2 { margin: 0 0 16px; font-size: 1.1rem; }
a { color: var(--link); }

.intro {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  font-size: .95rem;
}
.intro p { margin: 0 0 8px; }
.intro p:last-child { margin: 0; }

.captcha { margin-top: 18px; }

label { display: block; margin-top: 14px; font-size: .9rem; font-weight: 600; }

input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 8px;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }

.hint { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }

button {
  width: 100%;
  margin-top: 22px;
  padding: 11px;
  font: inherit;
  font-weight: 600;
  color: var(--accent-text);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }

.errors {
  padding: 10px 14px;
  background: var(--error-bg);
  color: var(--error);
  border-radius: 8px;
  font-size: .9rem;
}
.errors ul { margin: 0; padding-left: 18px; }

/* Honeypot: invisible to people, filled in by naive bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

code {
  padding: 1px 6px;
  font: .9em ui-monospace, Consolas, monospace;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: 5px;
  word-break: break-all;
}

.steps { padding-left: 20px; }
.steps li { margin-bottom: 12px; }

dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 8px 0 0; }
dt { color: var(--muted); font-size: .9rem; }
dd { margin: 0; }
