:root {
  --bg: #070a0f;
  --panel: #111722;
  --panel-2: #1a2330;
  --border: #2a3648;
  --text: #eef3fb;
  --muted: #8fa0b8;
  --accent: #ff5c6c;
  --accent-2: #ff8a96;
  --danger: #ff6b7a;
  --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 15% 20%, rgba(255, 92, 108, 0.18), transparent 35%),
    radial-gradient(circle at 85% 80%, rgba(255, 179, 71, 0.12), transparent 30%);
}

.wrap {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hero .logo {
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.hero .logo span { color: #6ea8ff; }
.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: rgba(17, 23, 34, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}
.card h1 {
  margin: 0;
  font-size: 1.75rem;
}
.subtitle {
  margin: 8px 0 24px;
  color: var(--muted);
}
label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
label span {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}
input {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 108, 0.15);
}
button[type="submit"] {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 700;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #d93a4a);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
button[type="submit"]:disabled {
  opacity: 0.7;
  cursor: wait;
}
button[type="submit"]:hover:not(:disabled) {
  filter: brightness(1.05);
}
.error {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 92, 108, 0.12);
  border: 1px solid rgba(255, 92, 108, 0.35);
  color: #ffb4bc;
  font-size: 0.92rem;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn-discord {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 700;
  color: white;
  text-decoration: none;
  background: #5865f2;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: filter 0.15s, transform 0.15s;
}
.btn-discord:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.discord-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.hidden { display: none !important; }
.footnote {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.footnote a { color: #7eb8ff; text-decoration: none; }
.footnote a:hover { text-decoration: underline; }
code {
  background: var(--panel-2);
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.85em;
}

.btn-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 860px) {
  .wrap {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .hero { text-align: center; }
  .tagline { margin-left: auto; margin-right: auto; }
  .features { max-width: 280px; margin: 0 auto; }
}
