:root {
  --bg: #f4f5f7;
  --card-bg: #ffffff;
  --text: #1a1d23;
  --text-muted: #6b7280;
  --border: #e2e4e9;
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --danger-bg: #fef2f2;
  --danger-text: #b91c1c;
  --success-bg: #f0fdf4;
  --success-text: #166534;
  --input-bg: #ffffff;
}

/* Dark-mode variant disabled 2026-08-07 — see the matching note in
   Salsa.Web.Client/src/index.css. Kept commented out, not deleted, for the same reason.
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14161a;
    --card-bg: #1d2026;
    --text: #f1f2f4;
    --text-muted: #9aa0ac;
    --border: #2c3038;
    --primary: #6366f1;
    --primary-hover: #7c7ff1;
    --danger-bg: #2a1414;
    --danger-text: #f87171;
    --success-bg: #12261a;
    --success-text: #4ade80;
    --input-bg: #14161a;
  }
}
*/

* { box-sizing: border-box; }

body.auth-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.auth-title {
  font-size: 1.375rem;
  font-weight: 650;
  margin: 0 0 4px;
}

.auth-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0 0 24px;
}

.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
}

.auth-field input {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.9375rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--input-bg);
  color: var(--text);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent);
}

.auth-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.auth-button {
  width: 100%;
  padding: 11px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 4px;
}

.auth-button:hover { background: var(--primary-hover); }
.auth-button:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-links {
  margin-top: 18px;
  font-size: 0.8125rem;
  text-align: center;
}

.auth-footer {
  margin-top: 20px;
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-links a {
  color: var(--primary);
  text-decoration: none;
}
.auth-links a:hover { text-decoration: underline; }

.auth-message {
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8125rem;
  margin-bottom: 16px;
  display: none;
  word-break: break-word;
}

.auth-message.error {
  display: block;
  background: var(--danger-bg);
  color: var(--danger-text);
}

.auth-message.success {
  display: block;
  background: var(--success-bg);
  color: var(--success-text);
}

.auth-message a { color: inherit; font-weight: 600; }
