/* ============================================================
   AUTH — "The Doorway"
   A believer signs in here, so it carries brand warmth: a navy
   brand panel with the Kenyan sunset scrimmed along the bottom,
   beside a clean form card. Same field system as the admin
   console (.brandform), so nothing feels bolted on.
   ============================================================ */

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 42% 58%;
  background: var(--white);
}

/* ---- Left: brand panel ---- */

.auth-brand {
  position: relative;
  background: var(--navy);
  color: var(--white);
  padding: 3rem 3.25rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* The sunset, low and scrimmed — a whisper of the hero, not a copy of it. */
.auth-brand::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background:
    linear-gradient(to top, rgba(27, 42, 74, 0.55) 0%, rgba(27, 42, 74, 1) 92%),
    url('/img/hero-kenya-sunset.jpg');
  background-size: cover;
  background-position: center 30%;
  z-index: 0;
}

.auth-brand__top,
.auth-brand__bottom { position: relative; z-index: 1; }
.auth-brand__bottom { margin-top: auto; }

.auth-brand__home {
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2.5rem;
}
.auth-brand__eyebrow {
  display: block;
  color: var(--rust);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.auth-brand__org {
  display: block;
  color: var(--white);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1.2;
}
.auth-brand__lede {
  font-size: 1.9rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--white);
  max-width: 20ch;
  margin: 0 0 1rem;
}
.auth-brand__lede strong { font-weight: 700; }
.auth-brand__stat {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
}
.auth-brand__stat b { color: var(--white); font-weight: 700; }

/* ---- Right: form ---- */

.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}
.auth-card { width: 100%; max-width: 400px; }

.auth-card__title {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 0.4rem;
}
.auth-card__subtitle {
  color: var(--admin-muted, #667085);
  font-size: 0.95rem;
  margin: 0 0 1.75rem;
}

.auth-card .form-group,
.auth-card .mb-3 { margin-bottom: 1.1rem; }

/* Full-width primary on auth. */
.auth-card .btn-donate { width: 100%; display: block; text-align: center; }

.auth-links {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #EAECF0;
  font-size: 0.9rem;
}
.auth-links p { margin: 0 0 0.5rem; color: #667085; }
.auth-links a { color: var(--royal); font-weight: 600; text-decoration: none; }
.auth-links a:hover { color: var(--rust); }

.auth-remember {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0 1.25rem;
  font-size: 0.9rem;
  color: var(--body);
}
.auth-remember label { margin: 0; }

/* ---- Responsive: panel becomes a header band ---- */
@media (max-width: 820px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand {
    padding: 2rem 1.5rem;
    min-height: auto;
  }
  .auth-brand::after { height: 100%; opacity: 0.5; }
  .auth-brand__lede { font-size: 1.4rem; margin-bottom: 0.5rem; }
  .auth-brand__home { margin-bottom: 1.5rem; }
  .auth-brand__bottom { margin-top: 1.5rem; }
  .auth-form-wrap { padding: 2.5rem 1.5rem; }
}
