.nav { position: relative; z-index: 2; }
.auth-stage {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 24px 20px 40px;
  background:
    radial-gradient(circle at 20% 20%, rgba(232, 54, 12, 0.12), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(15, 64, 48, 0.16), transparent 34%),
    linear-gradient(180deg, #f6f0e7 0%, #efe7db 100%);
}
.auth-card {
  width: min(100%, 520px);
  background: rgba(255, 252, 247, 0.94);
  border: 1px solid rgba(22, 27, 24, 0.12);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(17, 16, 8, 0.12);
  backdrop-filter: blur(12px);
  overflow: hidden;
}
.auth-card-inner { padding: 28px; }
.auth-kicker {
  font: 500 12px/1.4 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6a7b72;
  margin-bottom: 14px;
}
.auth-title {
  margin: 0 0 10px;
  font: 700 40px/0.98 'Crimson Pro', serif;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  color: #131a16;
}
.auth-copy {
  margin: 0 0 20px;
  font: 400 16px/1.6 'DM Sans', sans-serif;
  color: #33413a;
}
.auth-alert {
  margin-bottom: 18px;
  background: #fff1ea;
  border: 1px solid #efc4b2;
  color: #8b3d1d;
  border-radius: 12px;
  padding: 12px 14px;
  font: 500 14px/1.5 'DM Sans', sans-serif;
}
.auth-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid #d5ddd7;
  background: #fff;
  color: #131a16;
  text-decoration: none;
  font: 700 15px/1.2 'DM Sans', sans-serif;
}
.auth-google:hover { background: #f7f7f4; }
.auth-google svg { width: 18px; height: 18px; flex: 0 0 18px; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #7d8a82;
  font: 500 12px/1.4 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: #d5ddd7;
  flex: 1;
}
.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  border-radius: 16px;
  background: #ece4d8;
  margin-bottom: 18px;
}
.auth-switch-btn {
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #516159;
  min-height: 44px;
  cursor: pointer;
  font: 700 14px/1.2 'DM Sans', sans-serif;
}
.auth-switch-btn.is-active {
  background: #fff;
  color: #131a16;
  box-shadow: 0 8px 20px rgba(17, 16, 8, 0.08);
}
.auth-panel { display: none; }
.auth-panel.is-active { display: block; }
.auth-form { display: grid; gap: 14px; }
.auth-field { display: grid; gap: 6px; }
.auth-field label {
  font: 700 14px/1.4 'DM Sans', sans-serif;
  color: #131a16;
}
.auth-field input {
  width: 100%;
  border: 1px solid #d4dcd6;
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
  font: 400 16px/1.4 'DM Sans', sans-serif;
  color: #131a16;
}
.auth-submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 14px;
  background: #0f4030;
  color: #fff;
  cursor: pointer;
  font: 700 15px/1.2 'DM Sans', sans-serif;
}
.auth-submit:hover { background: #0b3427; }
.auth-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.auth-link {
  color: #0f4030;
  text-decoration: underline;
  font: 500 14px/1.4 'DM Sans', sans-serif;
}
.auth-msg {
  min-height: 22px;
  font: 500 14px/1.4 'DM Sans', sans-serif;
  color: #6a7b72;
}
.auth-msg.error { color: #b83232; }
.auth-msg.success { color: #0f4030; }
.auth-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #ddd5c8;
  font: 400 14px/1.6 'DM Sans', sans-serif;
  color: #516159;
}
@media (max-width: 640px) {
  .auth-stage { padding: 12px 14px 28px; min-height: calc(100vh - 64px); }
  .auth-card-inner { padding: 22px; }
  .auth-title { font-size: 34px; }
}
