.auth-page {
  min-height: 100vh;
  color: var(--gold-soft);
  background:
    radial-gradient(circle at 78% 18%, rgba(47, 126, 71, 0.48), transparent 25rem),
    radial-gradient(circle at 15% 92%, rgba(34, 117, 73, 0.24), transparent 28rem),
    var(--forest-deep);
}

.auth-page main {
  min-height: 100vh;
  padding: 32px 0 64px;
}

.auth-shell {
  max-width: 820px;
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 72px;
}

.auth-header .brand {
  color: var(--gold-soft);
}

.auth-home-link {
  color: rgba(248, 228, 173, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.auth-home-link span {
  color: var(--gold);
  font-size: 1rem;
}

.auth-card {
  max-width: 620px;
  margin: 0 auto;
  border: 1px solid rgba(243, 213, 137, 0.34);
  padding: clamp(30px, 7vw, 68px);
  color: var(--ink);
  background: var(--paper);
  box-shadow: 18px 20px 0 rgba(4, 21, 15, 0.2), 0 30px 80px rgba(0, 0, 0, 0.18);
}

.auth-card .eyebrow {
  margin-bottom: 20px;
}

.auth-card h1 {
  margin-bottom: 22px;
  font-size: clamp(3rem, 8vw, 5.6rem);
}

.auth-card h1 em {
  color: var(--green);
}

.auth-lede {
  max-width: 480px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.auth-form {
  display: grid;
  gap: 18px;
}

.auth-form label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  border: 1px solid rgba(20, 23, 19, 0.25);
  border-radius: 2px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fffdf6;
  font: inherit;
}

.auth-form input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(23, 112, 47, 0.17);
  outline-offset: 1px;
}

.auth-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
  justify-content: space-between;
}

.auth-form .button:disabled,
.auth-handoff .button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.auth-note,
.auth-trust {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
}

.auth-note {
  margin: 16px 0 0;
}

.auth-trust {
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.auth-status {
  margin-top: 24px;
  border-left: 3px solid var(--green);
  padding: 12px 14px;
  color: var(--ink);
  background: rgba(23, 112, 47, 0.08);
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-status--error {
  border-color: var(--rose);
  background: rgba(162, 63, 84, 0.09);
}

.auth-handoff {
  margin-bottom: 24px;
  border: 1px solid rgba(23, 112, 47, 0.23);
  padding: 20px;
  background: rgba(23, 112, 47, 0.07);
}

.auth-handoff h2 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 2rem;
}

.auth-handoff p {
  margin-bottom: 18px;
  color: var(--muted);
}

.auth-handoff .button {
  border: 0;
  cursor: pointer;
}

.auth-spinner {
  width: 20px;
  height: 20px;
  margin-bottom: 12px;
  border: 2px solid rgba(23, 112, 47, 0.22);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: auth-spin 700ms linear infinite;
}

@keyframes auth-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .auth-page main {
    padding-top: 20px;
  }

  .auth-header {
    align-items: flex-start;
    margin-bottom: 42px;
  }

  .auth-home-link {
    max-width: 130px;
    text-align: right;
  }

  .auth-card {
    box-shadow: 10px 12px 0 rgba(4, 21, 15, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-spinner {
    animation: none;
  }
}
