:root {
  --bg-dark: #0f1114;
  --bg-section: #161921;
  --bg-card: #1c2029;
  --fg: #e8e9ed;
  --fg-muted: #9499a8;
  --accent: #e8842c;
  --accent-glow: rgba(232, 132, 44, 0.15);
  --accent-bright: #f5a623;
  --border: rgba(255, 255, 255, 0.06);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg-dark);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
}

.auth-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 32px;
}

.auth-logo a {
  color: #fff;
  text-decoration: none;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 8px;
}

.auth-sub {
  color: var(--fg-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.form-error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  border-radius: 6px;
  padding: 12px 16px;
  color: #ff8a8a;
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin-bottom: 6px;
}

.form-group .optional {
  color: var(--fg-muted);
  font-weight: 400;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: var(--accent);
}

.form-group input::placeholder {
  color: var(--fg-muted);
  opacity: 0.6;
}

.btn-submit {
  width: 100%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--accent-bright);
  transform: translateY(-1px);
}

.auth-terms {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--fg-muted);
  text-align: center;
}

.auth-switch {
  margin-top: 24px;
  text-align: center;
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.auth-switch a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.auth-switch a:hover {
  text-decoration: underline;
}