/* ── Auth pages — mobile-first ──────────────────────────────── */

/* Remove container constraints so auth-page can fill viewport */
body.body--auth .container {
  padding: 0;
  max-width: none;
}
body.body--auth .footer {
  margin-top: 0;
}

/* auth-container centering without navbar */
body.body--auth .auth-container {
  margin-top: var(--sp-10, 2.5rem);
  margin-bottom: var(--sp-10, 2.5rem);
}

.auth-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 1rem;
  background: var(--bg-secondary);
}

.auth-card {
  text-align: center;
  background: var(--bg-primary);
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-md, 0 4px 16px rgba(0,0,0,.10));
  width: 100%;
  max-width: 400px;
}

@media (min-width: 480px) {
  .auth-card { padding: 3rem 2.5rem; }
}

.auth-logo { margin: 0 auto 0.5rem; display: inline-block; }
.auth-title { font-size: 1.6rem; margin-bottom: 0.25rem; font-weight: 700; }
.auth-subtitle { color: var(--text-muted, #86868b); margin-bottom: 1.5rem; font-size: 0.95rem; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--text-muted, #86868b);
  font-size: 0.875rem;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border, #d2d2d7);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
  margin-bottom: 1.25rem;
}

/* Make Google OAuth button touch-friendly */
.auth-form .btn,
.auth-card .btn {
  min-height: 44px;
  width: 100%;
}

.auth-footer {
  font-size: 0.875rem;
  color: var(--text-muted, #86868b);
  margin-top: 0.75rem;
}
.auth-footer a {
  color: var(--accent, #0071e3);
  font-weight: 500;
  text-decoration: none;
}

/* Inline auth alerts — no background, just a colored left border + icon */
.auth-card .alert {
  background: transparent;
  border: none;
  border-left: 3px solid;
  border-radius: 0;
  padding: var(--sp-2, 8px) var(--sp-3, 12px);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-4, 16px);
}
.auth-card .alert::before {
  font-size: 1rem;
  flex-shrink: 0;
}
.auth-card .alert-error {
  border-color: var(--danger, #ff3b30);
  color: var(--error-text, #c0392b);
}
.auth-card .alert-error::before  { content: "✕"; }
.auth-card .alert-success {
  border-color: #4CD964;
  color: var(--success-text, #1a7f37);
}
.auth-card .alert-success::before { content: "✓"; }
.auth-card .alert-warning {
  border-color: #FF9500;
  color: var(--warning-text, #a05c00);
}
.auth-card .alert-warning::before { content: "⚠"; }
