/* ─────────────────────────────────────────────────────────────
   auth.css — Shared styles for all auth pages
   Extends style.css variables and base styles
───────────────────────────────────────────────────────────── */

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-bg);
  padding: 2rem 1rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
}

.auth-logo {
  display: block;
  text-align: center;
  margin-bottom: 1.75rem;
  text-decoration: none !important;
}

.auth-icon {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.auth-title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--c-accent);
  text-align: center;
  margin-bottom: 0.4rem;
  letter-spacing: -.02em;
}

.auth-subtitle {
  font-size: 0.9rem;
  color: var(--c-text-2);
  text-align: center;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.auth-card .field-group {
  margin-bottom: 1rem;
}

.auth-card label {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.label-link {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--c-accent-2);
}

.btn--full {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-switch {
  text-align: center;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  color: var(--c-text-2);
}

.auth-divider {
  text-align: center;
  font-size: 0.82rem;
  color: var(--c-text-2);
  margin: 1.5rem 0 1rem;
  position: relative;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 28%;
  height: 1px;
  background: var(--c-border);
}
.auth-divider::before { left: 0; }
.auth-divider::after  { right: 0; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert {
  border-radius: var(--r-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.5;
}
.alert p { margin: 0; }
.alert p + p { margin-top: 0.3rem; }

.alert--error {
  background: #fff0f0;
  border: 1px solid #fca5a5;
  color: var(--c-error);
}
.alert--success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}
.alert--info {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
}
.alert--warning {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  color: #92400e;
}
