/*
 * Auth pages (design-conform brief M2) — the threshold between the
 * marketing world and the app. Per WEB_EXPERIENCE_PLAN §3.2: "Same tokens,
 * same dark canvas, one small render (demo mini as the 'logo mark
 * moment')." Uses design_tokens.css's --rp-* exclusively, matching
 * marketing.css's convention (no private colors here either).
 */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

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

.auth-header {
  text-align: center;
  margin-bottom: 32px;
}

.auth-mark {
  margin: 0 auto 20px;
  width: 96px;
}
.auth-mark svg { width: 100%; height: auto; display: block; }

/* Fallback if the demo candidate is ever missing (empty/reseeded dev DB) —
   the plain wordmark icon instead of a mini render. */
.auth-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  margin: 0 auto 16px;
  display: block;
}

.auth-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--rp-dim);
  margin: 0 0 12px;
}

.auth-header h1 {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--rp-text);
  margin: 0 0 10px;
}

.auth-header p {
  font-size: 14px;
  color: var(--rp-muted);
  margin: 0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-errors {
  background: color-mix(in srgb, var(--rp-red) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--rp-red) 30%, transparent);
  border-radius: 6px;
  padding: 12px 16px;
}

.form-errors p {
  font-size: 13px;
  color: var(--rp-red);
  margin: 0 0 4px 0;
}

.form-errors p:last-child {
  margin-bottom: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--rp-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.form-group input, .form-group select {
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--rp-hair2);
  border-radius: 6px;
  color: var(--rp-text);
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: var(--rp-accent);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2397A1B4' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-group select option {
  background: var(--rp-card);
  color: var(--rp-text);
}

.form-actions {
  margin-top: 4px;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: background 0.2s;
  background: var(--rp-accent);
  color: #04101E;
}

.btn-full:hover {
  background: var(--rp-accent2);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rp-hair);
}

.auth-footer p {
  font-size: 14px;
  color: var(--rp-muted);
  margin: 0;
}

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

.auth-footer a:hover {
  color: var(--rp-accent2);
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 24px; }
  .auth-header h1 { font-size: 25px; }
}
