:root {
  --bg: #0f0f1a;
  --surface: #1a1a2e;
  --surface2: #16213e;
  --accent: #7c3aed;
  --accent2: #a855f7;
  --gold: #f59e0b;
  --green: #10b981;
  --red: #ef4444;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --border: #2d2d4e;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(124,58,237,.15) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 20% 80%, rgba(168,85,247,.1) 0%, transparent 60%);
  pointer-events: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 560px;
  position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}

.logo {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent2);
  margin-bottom: 4px;
}
.logo span { color: var(--gold); }

.tagline {
  text-align: center;
  color: var(--muted);
  font-size: .85rem;
  margin-bottom: 28px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
input {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: .95rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
}
input:focus {
  border-color: var(--accent2);
  box-shadow: 0 0 0 3px rgba(168,85,247,.15);
}
input.invalid {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(239,68,68,.12);
}
input::placeholder { color: var(--muted); font-size: .88rem; }

.field-hint {
  font-size: .75rem;
  color: var(--muted);
  margin-top: 2px;
}
.field-hint.error { color: #fca5a5; }

.strength-bar {
  height: 4px;
  border-radius: 99px;
  background: var(--border);
  margin-top: 6px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  transition: width .3s, background .3s;
}

.btn-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 10px;
  transition: opacity .2s, transform .1s;
  letter-spacing: .03em;
}
.btn-submit:hover { opacity: .9; }
.btn-submit:active { transform: scale(.98); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; }

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: .8rem;
}
.divider::before, .divider::after {
  content: ""; flex: 1;
  height: 1px;
  background: var(--border);
}

.link-row {
  text-align: center;
  font-size: .87rem;
  color: var(--muted);
}
.link-row a {
  color: var(--accent2);
  text-decoration: none;
  font-weight: 600;
}
.link-row a:hover { text-decoration: underline; }

.alert {
  border-radius: 8px;
  padding: 11px 14px;
  font-size: .85rem;
  margin-bottom: 14px;
  display: none;
}
.alert.error   { background: rgba(239,68,68,.12);  border: 1px solid rgba(239,68,68,.35);  color: #fca5a5; }
.alert.success { background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.35); color: #6ee7b7; }
.alert.show    { display: block; }

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
  margin-right: 6px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.perks {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}
.perk {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .82rem;
  color: var(--muted);
}
.perk-icon { font-size: 1rem; flex-shrink: 0; }

.interests-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.interest-chip { cursor: pointer; user-select: none; }
.interest-chip input { display: none; }
.interest-chip > span { display: inline-block; padding: 6px 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: 20px; font-size: 0.85rem; color: var(--muted); transition: all 0.2s; }
.interest-chip input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
