:root {
  --bg: #090611;
  --paper: rgba(24, 14, 36, 0.82);
  --ink: #f6efff;
  --muted: #b7a8c9;
  --line: rgba(255, 77, 141, 0.2);
  --hot: #ff3d8a;
  --violet: #8b5cff;
  --gold: #ffc857;
  --danger: #ff5c7a;
  --ok: #3dffb0;
  --font: "Outfit", "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1000px 560px at 8% -10%, rgba(255, 61, 138, 0.32), transparent 55%),
    radial-gradient(900px 520px at 100% 0%, rgba(139, 92, 255, 0.3), transparent 52%),
    radial-gradient(700px 420px at 70% 110%, rgba(255, 200, 87, 0.12), transparent 50%),
    #090611;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 36px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 6, 17, 0.65);
  backdrop-filter: blur(16px);
}
.logo { display: flex; align-items: center; text-decoration: none; }
.logo img {
  display: block;
  height: 46px;
  width: auto;
  max-width: min(220px, 70vw);
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(255, 61, 138, 0.4));
}
nav ul { list-style: none; display: flex; gap: 6px; }
nav a {
  color: var(--muted); text-decoration: none; font-size: 0.86rem; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
}
nav a:hover { color: #fff; background: rgba(255,255,255,0.06); }

.auth-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 48px 24px 56px;
}
.auth-layout {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 56px;
  align-items: center;
}
.auth-intro h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 2.65rem;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 14px;
  background: linear-gradient(100deg, #fff 20%, var(--gold) 52%, var(--hot));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-intro p { color: var(--muted); font-size: 1.05rem; line-height: 1.65; max-width: 440px; }
.auth-box {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px;
  width: 100%;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(255, 61, 138, 0.18);
  backdrop-filter: blur(18px);
}
.auth-box h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.auth-box > p {
  font-size: 0.9rem;
  margin-bottom: 22px;
  color: var(--muted);
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.form-group input,
.otp-input {
  width: 100%;
  padding: 12px 13px;
  background: rgba(9, 6, 17, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.95rem;
  font-family: inherit;
}
.form-group input:focus,
.otp-input:focus {
  outline: none;
  border-color: var(--hot);
  box-shadow: 0 0 0 4px rgba(255, 61, 138, 0.18);
}

.cta-button {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  background: linear-gradient(135deg, var(--hot), var(--violet));
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.04em;
  box-shadow: 0 0 32px rgba(255, 61, 138, 0.35);
}
.cta-button:hover { filter: brightness(1.08); }

.error { color: var(--danger); font-size: 0.82rem; margin-top: 10px; min-height: 1em; }
.success { color: var(--ok); font-size: 0.82rem; margin-top: 10px; }
.toggle-link { margin-top: 14px; font-size: 0.84rem; color: var(--muted); }
.toggle-link a { color: #fff; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--hot); }

footer {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.75rem;
  border-top: 1px solid var(--line);
}

.otp-row { display: flex; gap: 8px; justify-content: center; margin-bottom: 14px; }
.otp-row input {
  width: 42px; height: 48px; text-align: center; font-size: 1.2rem; letter-spacing: 0;
}

@media (max-width: 860px) {
  .auth-layout { grid-template-columns: 1fr; max-width: 420px; gap: 28px; }
  .auth-intro h1 { font-size: 2rem; }
}
@media (max-width: 640px) {
  header { padding: 12px 16px; }
  .logo img { height: 36px; }
  .auth-container { padding: 28px 16px 40px; }
  .auth-box { padding: 24px 18px; }
}
