/* ==========================================================================
   Auth pages (login / register) — extends custom.css, reuses the same
   --brand-* variables so these pages feel native to the rest of the site.
   ========================================================================== */

.auth-section {
  background: var(--brand-cream);
  min-height: calc(100vh - 220px);
  padding: 4rem 0;
  display: flex;
  align-items: center;
}

.auth-card {
  background: #fff;
  border-radius: var(--bs-border-radius-lg);
  box-shadow: 0 8px 28px rgba(61, 35, 20, 0.12);
  padding: 2.5rem;
  max-width: 460px;
  margin: 0 auto;
}

.auth-card .eyebrow {
  color: var(--brand-rust);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.auth-card h1 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
}

.auth-card .subtitle {
  color: #5b4a3a;
  margin-bottom: 1.75rem;
  font-size: 0.95rem;
}

.auth-card label {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--brand-green-dark);
  margin-bottom: 0.35rem;
}

.auth-card .form-control {
  border: 2px solid rgba(61, 35, 20, 0.14);
  border-radius: 0.6rem;
  padding: 0.65rem 0.9rem;
  font-size: 0.95rem;
}

.auth-card .form-control:focus {
  border-color: var(--brand-rust);
  box-shadow: 0 0 0 3px rgba(181, 80, 42, 0.15);
}

.auth-card .btn-primary {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-card .auth-switch {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #5b4a3a;
}

.auth-card .auth-switch a {
  color: var(--brand-rust);
  font-weight: 700;
}

.auth-alert {
  border-radius: 0.6rem;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.auth-alert.success {
  background: rgba(140, 168, 60, 0.15);
  color: var(--brand-green-dark);
}

.auth-alert.error {
  background: rgba(181, 80, 42, 0.12);
  color: var(--brand-rust-dark);
}

.role-toggle {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.role-toggle label {
  flex: 1;
  border: 2px solid rgba(61, 35, 20, 0.14);
  border-radius: 999px;
  text-align: center;
  padding: 0.5rem 0.5rem;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  margin-bottom: 0;
}

.role-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-toggle input:checked + span {
  color: inherit;
}

.role-toggle label:has(input:checked) {
  background: var(--brand-green-dark);
  border-color: var(--brand-green-dark);
  color: var(--brand-cream);
}
