:root {
  --bg: #0f1117;
  --surface: #1a1f2e;
  --border: #2d3348;
  --accent: #6366f1;
  --accent2: #ef4444;
  --text: #e2e8f0;
  --muted: #8892a4;
  --glow: rgba(99,102,241,0.25);
}
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow-y: auto;
}

/* Animated vinyl background */
.vinyl-bg {
  position: fixed;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle at center,
    #2d3348 0px, #2d3348 2px,
    #1a1f2e 2px, #1a1f2e 6px
  );
  opacity: 0.25;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: spin 30s linear infinite;
}
.vinyl-bg::after {
  content: '';
  position: absolute;
  inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 60% 40%, rgba(99,102,241,0.08) 0%, transparent 60%);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Sound wave decoration */
.waves {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  opacity: 0.15;
  padding: 0 20px;
}
.wave-bar {
  width: 4px;
  background: var(--accent);
  border-radius: 2px 2px 0 0;
  animation: wave 1.2s ease-in-out infinite alternate;
}
@keyframes wave {
  from { height: 4px; }
  to { height: var(--h); }
}

.card {
  position: relative;
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: 0 0 60px rgba(99,102,241,0.1), 0 24px 48px rgba(0,0,0,0.4);
}

.logo {
  text-align: center;
  margin-bottom: 36px;
}
.logo-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 12px;
  animation: pulse-icon 2s ease-in-out infinite;
}
@keyframes pulse-icon {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
.logo h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -2px;
  color: var(--accent);
  text-shadow: 0 0 30px var(--glow);
}
.logo p {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 6px;
}

label {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
}
input[type="text"]:focus,
input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
input[type="text"]::placeholder,
input[type="email"]::placeholder { color: var(--muted); }

button[type="submit"] {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 17px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,102,241,0.4);
}
button[type="submit"]:active { transform: translateY(0); }

.message {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 13px;
  text-align: center;
  line-height: 1.5;
}
.message.success {
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.3);
  color: var(--accent);
}
.message.info {
  background: rgba(107,107,128,0.15);
  border: 1px solid var(--border);
  color: var(--muted);
}

.invite-note {
  margin-top: 24px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.note-icon { color: var(--accent2); }

/* ===== LIGHT MODE ===== */
[data-theme="light"] {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --border: #e2e8f0;
  --accent: #6366f1;
  --accent2: #ef4444;
  --text: #1e293b;
  --muted: #64748b;
  --glow: rgba(99,102,241,0.2);
}

[data-theme="light"] .vinyl-bg {
  background: repeating-radial-gradient(
    circle at center,
    #cbd5e1 0px, #cbd5e1 2px,
    #e2e8f0 2px, #e2e8f0 6px
  );
}

[data-theme="light"] .wave-bar { background: var(--accent); }

/* ===== TABS ===== */
.tab-bar {
  display: flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}
.tab-btn {
  flex: 1;
  background: none;
  border: none;
  border-radius: 9px;
  padding: 10px;
  color: var(--muted);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tab-btn.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.tab-btn:hover:not(.active) { color: var(--text); }
.tab-panel { display: none; }

/* ===== PASSWORD INPUT ===== */
input[type="password"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 16px;
}
input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}
input[type="password"]::placeholder { color: var(--muted); }

/* ===== ERROR STATE ===== */
.message.error {
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
}
