:root {
  --bg: #0b0f14;
  --panel: #121821;
  --panel-2: #171e29;
  --border: #243041;
  --text: #e8eef7;
  --muted: #8fa0b8;
  --accent: #5865f2;
  --accent-2: #7b87ff;
  --danger: #ff6b7a;
  --ok: #3ecf8e;
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 15%, rgba(88, 101, 242, 0.2), transparent 40%),
    radial-gradient(circle at 80% 85%, rgba(62, 207, 142, 0.08), transparent 35%);
}

.wrap {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hero .logo {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.hero .logo span { color: var(--accent-2); }

.tagline {
  margin: 14px 0 28px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 420px;
}

.features {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.features li {
  padding-left: 22px;
  position: relative;
  color: #c5d0e0;
}
.features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.card h1 { margin: 0 0 6px; font-size: 1.5rem; }
.subtitle { margin: 0 0 20px; color: var(--muted); font-size: 0.92rem; }

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.tab {
  flex: 1;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}
.tab.active {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(88, 101, 242, 0.12);
}

label { display: grid; gap: 6px; margin-bottom: 14px; }
label span { font-size: 0.88rem; font-weight: 600; color: #c8d4e6; }
input {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}
input:focus { outline: none; border-color: var(--accent); }

button[type="submit"], .btn-discord {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
}

button[type="submit"] {
  background: var(--accent);
}
button[type="submit"]:hover { filter: brightness(1.06); }
button[type="submit"]:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-discord { background: #5865f2; margin-top: 4px; }
.btn-discord:hover { background: #4752c4; color: #fff; }
.discord-icon { width: 20px; height: 20px; }

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 18px 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.divider::before, .divider::after {
  content: "";
  height: 1px;
  background: var(--border);
}

.error {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 107, 122, 0.12);
  border: 1px solid rgba(255, 107, 122, 0.35);
  color: var(--danger);
  font-size: 0.9rem;
}

.footnote {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}
.footnote a { color: #7eb8ff; text-decoration: none; }
.footnote a:hover { text-decoration: underline; }

.hidden { display: none !important; }
.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 28px; }
}
