:root {
  --bg: #080a0f;
  --panel: #0e1219;
  --card: #11151d;
  --input: #0d1118;
  --line: #222a38;
  --line-soft: #1a212d;
  --text: #eef2f8;
  --muted: #8a94a6;
  --faint: #5c6678;
  --accent: #6d8cff;
  --accent-hover: #8aa3ff;
  --danger: #ff6b6b;
  --success: #3ddc97;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(900px 600px at 15% -10%, #16203a 0%, transparent 60%),
    radial-gradient(700px 500px at 110% 10%, #241a3d 0%, transparent 55%),
    var(--bg);
  color: var(--text);
  font: 14px/1.5 'Segoe UI', system-ui, -apple-system, sans-serif;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth { width: 100%; max-width: 400px; }

.auth-card {
  background: linear-gradient(180deg, rgba(20, 26, 37, .96), rgba(14, 18, 25, .96));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .03);
}

.auth-head { display: flex; align-items: center; gap: 12px; }
.auth-head h1 {
  margin: 0; font-size: 20px; letter-spacing: .01em;
  font-weight: 700;
}
.auth-head p { margin: 2px 0 0; color: var(--faint); font-size: 11px; }
.mark { display: grid; place-items: center; }

.auth-tabs {
  display: flex; gap: 6px; margin: 24px 0 18px;
  padding: 4px; background: var(--input);
  border: 1px solid var(--line-soft); border-radius: 10px;
}
.tab {
  flex: 1; text-align: center; padding: 8px 10px; border-radius: 7px;
  color: var(--muted); text-decoration: none; font-size: 12px;
  font-weight: 600; letter-spacing: .02em;
}
.tab:hover { color: var(--text); }
.tab.active { background: #1a2130; color: var(--text); }

.auth-error {
  margin-bottom: 14px; padding: 10px 12px; border-radius: 9px;
  background: rgba(255, 107, 107, .08);
  border: 1px solid rgba(255, 107, 107, .35);
  color: #ffb3b3; font-size: 12px;
}

form { display: grid; gap: 14px; }

label { display: grid; gap: 6px; }
label span {
  font-size: 10px; text-transform: uppercase; letter-spacing: .09em;
  color: var(--faint); font-weight: 700;
}
label input {
  height: 42px; padding: 0 12px; border-radius: 9px;
  background: var(--input); border: 1px solid var(--line);
  color: var(--text); font: inherit; outline: none;
}
label input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(109, 140, 255, .15);
}

.primary {
  height: 44px; margin-top: 4px; border: 0; border-radius: 9px;
  background: var(--accent); color: #fff; font: inherit; font-weight: 700;
  cursor: pointer; letter-spacing: .02em;
}
.primary:hover { background: var(--accent-hover); }
.primary:active { transform: translateY(1px); }

.auth-foot {
  margin-top: 18px; display: flex; gap: 6px; justify-content: center;
  color: var(--faint); font-size: 12px;
}
.auth-foot a { color: var(--accent); text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

.auth-note {
  margin: 16px 0 0; text-align: center; color: var(--faint); font-size: 11px;
}
