/* Folks — auth pages (login, signup, etc.) */
body::before {
  content: '';
  position: fixed;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(30, 58, 138, 0.10) 0%, rgba(30, 58, 138, 0) 65%);
  pointer-events: none;
  z-index: 0;
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}
main:not(.folks-dash-main) {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 1;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem 2rem;
  box-shadow: var(--shadow-card);
  animation: folks-rise 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes folks-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.brand-name {
  margin: 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  letter-spacing: -0.3px;
  line-height: 1;
  background: linear-gradient(135deg, var(--brand-logo-bright), var(--brand-logo-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand-sub { font-size: 0.75rem; color: var(--text-muted); margin-top: 1px; }
.auth-card h1:not(.brand-name) {
  font-size: 1.55rem;
  font-weight: var(--weight-bold);
  letter-spacing: -0.02em;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}
.auth-card .subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-bottom: 1.75rem;
  line-height: 1.5;
}
.auth-card label {
  display: block;
  font-size: 0.78rem;
  font-weight: var(--weight-medium);
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: var(--bg-inset);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-card input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}
.auth-card .form-row { margin-bottom: 0.95rem; }
.auth-card .form-help { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.3rem; }
.auth-card .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: var(--weight-medium);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  width: 100%;
  text-decoration: none;
}
.auth-card .btn:hover { background: var(--surface-3); border-color: var(--border-light); }
.auth-card .btn-primary {
  background: linear-gradient(135deg, var(--brand-logo-bright), var(--brand-logo-light));
  border-color: transparent;
  color: white;
  font-weight: var(--weight-semibold);
}
.auth-card .btn-primary:hover { filter: brightness(1.08); }
.auth-card .btn-row { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1.25rem; }
.auth-card .divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.auth-card .divider::before, .auth-card .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-card .alt-link {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 1.5rem;
}
.auth-card .alt-link a { color: var(--accent-light); text-decoration: none; font-weight: var(--weight-medium); }
.auth-card .alt-link a:hover { text-decoration: underline; }
.auth-card .error-banner, .auth-card .ok-banner {
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: none;
}
.auth-card .error-banner {
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: var(--red);
}
.auth-card .ok-banner {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: var(--green);
}
.footer-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 1.25rem 0 1.75rem;
  position: relative;
  z-index: 1;
}
.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.6rem;
}
.pill {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.pill-linked { background: rgba(52, 211, 153, 0.15); color: var(--green); }
.pill-unlinked { background: rgba(107, 113, 148, 0.15); color: var(--text-muted); }
.btn-sm { padding: 0.4rem 0.75rem; font-size: 0.8rem; width: auto; }
