/* ============================================================================
   OPTION SPECTRUM — LOGIN / REGISTER PAGE
   login.css
   Reuses research.css's shared tokens and nav/footer — this file only
   adds the auth card itself.
   ============================================================================ */

.auth-section { padding: var(--space-8) var(--space-5); display: flex; justify-content: center; }

.auth-card {
  max-width: 440px;
  width: 100%;
  background: var(--color-card);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: var(--space-6);
}

.auth-tabs { display: flex; gap: 4px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-pill); padding: 4px; margin-bottom: var(--space-5); }
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.auth-tab.is-active { background: var(--color-blue); color: var(--color-white); }

.auth-form { display: none; flex-direction: column; gap: var(--space-4); }
.auth-form.is-active { display: flex; }

.auth-field { display: flex; flex-direction: column; gap: var(--space-2); }
.auth-field label { font-size: 0.85rem; color: var(--color-muted); }
.auth-field input {
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.auth-field input:focus { outline: none; border-color: var(--color-blue); box-shadow: var(--glow-blue); }

.auth-consent-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: 0.82rem;
  color: var(--color-muted);
  line-height: 1.5;
  cursor: pointer;
}
.auth-consent-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: var(--color-blue);
  cursor: pointer;
}

.auth-submit { width: 100%; justify-content: center; margin-top: var(--space-2); }
.auth-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-error {
  font-size: 0.85rem;
  color: var(--color-red);
  background: rgba(237,32,36,0.08);
  border: 1px solid var(--color-red-dim);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  display: none;
}
.auth-error.is-visible { display: block; }
.auth-error.auth-success { color: var(--color-positive); background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.3); }

.auth-forgot-link { text-align: center; margin-top: var(--space-3); }
.auth-forgot-link button {
  background: none;
  border: none;
  color: var(--color-blue);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}
.auth-forgot-link button:hover { text-decoration: underline; }

.auth-title { font-family: var(--font-display); font-size: 1.5rem; color: var(--color-text); margin-bottom: var(--space-1); text-align: center; }
.auth-subtitle { font-size: 0.9rem; color: var(--color-muted); text-align: center; margin-bottom: var(--space-5); }
