:root {
  --bg: #0b0d12;
  --card: #151924;
  --border: #252a38;
  --text: #e6e8ef;
  --muted: #8b90a0;
  --accent: #7c4dff;
  --accent-hover: #9270ff;
  --error: #ff5c5c;
  --ok: #49d49d;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, sans-serif;
  background: radial-gradient(circle at top, #1a1230 0%, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-wrap { width: 100%; padding: 24px; }
.auth-card {
  max-width: 400px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
h1 {
  margin: 0 0 20px;
  font-size: 22px;
  text-align: center;
  letter-spacing: 0.5px;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.auth-tabs .tab {
  flex: 1;
  background: transparent;
  color: var(--muted);
  border: none;
  padding: 10px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 2px solid transparent;
}
.auth-tabs .tab.active { color: var(--text); border-bottom-color: var(--accent); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.opt { font-size: 11px; opacity: 0.7; }
.auth-form input {
  background: #0e1119;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
}
.auth-form input:focus { border-color: var(--accent); }
.auth-form button[type=submit] {
  margin-top: 6px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
}
.auth-form button[type=submit]:hover { background: var(--accent-hover); }
.msg { font-size: 13px; min-height: 16px; text-align: center; }
.msg.error { color: var(--error); }
.msg.ok { color: var(--ok); }
