:root {
  --bg: #0a0a0b;
  --bg-surface: #131315;
  --text: #eeeeef;
  --text-muted: #97979d;
  --text-faint: #6a6a70;
  --accent: #6d6af0;
  --accent-text: #a5a2ff;
  --success: #3fb984;
  --warn: #d98f40;
  --error: #e05c5c;
  --border: rgba(255, 255, 255, 0.08);
  --font-sans: "Inter", -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 64px 24px;
}

.brand {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.brand-by {
  color: var(--text-faint);
  font-size: 13px;
  margin-bottom: 40px;
}

h1 {
  font-size: 32px;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.subtitle {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0 0 36px;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

input[type="email"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  margin-bottom: 22px;
}

input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
}

.topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 26px;
}

.topic-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.topic-chip:has(input:checked) {
  border-color: var(--accent);
  color: var(--accent-text);
}

.topic-chip input {
  accent-color: var(--accent);
}

button.primary {
  width: 100%;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

button.primary:disabled {
  opacity: 0.6;
  cursor: default;
}

button.secondary {
  width: 100%;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 18px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  margin-top: 12px;
}

.status {
  margin-top: 16px;
  font-size: 14px;
  min-height: 20px;
}

.status.success { color: var(--success); }
.status.error { color: var(--error); }

.footnote {
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 24px;
}

.footnote a { color: var(--text-muted); }

.center-state {
  text-align: center;
  padding: 40px 0;
}

.center-state .icon {
  font-size: 40px;
  margin-bottom: 16px;
}
