/* Auth pages only (keeps homepage untouched). */

:root {
  --auth-card: rgba(255, 253, 248, 0.94);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.auth-main {
  padding: clamp(28px, 6vw, 72px) clamp(18px, 4vw, 44px);
  display: grid;
  place-items: center;
}

.auth-shell {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(18px, 4vw, 34px);
  align-items: stretch;
}

.auth-panel {
  background:
    radial-gradient(circle at 18% 14%, rgba(197, 138, 44, 0.16), transparent 24rem),
    linear-gradient(135deg, rgba(5, 43, 99, 0.92), rgba(0, 85, 140, 0.88));
  border-radius: 12px;
  color: #fff;
  padding: clamp(18px, 4vw, 34px);
  box-shadow: var(--rich-shadow);
  position: relative;
  overflow: hidden;
}

.auth-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(239, 215, 164, 0.3);
  border-radius: 10px;
  pointer-events: none;
}

.auth-panel h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.02;
  margin: 0 0 10px;
}

.auth-panel p {
  margin: 0;
  max-width: 46ch;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
}

.auth-card {
  background: var(--auth-card);
  border: 1px solid rgba(197, 138, 44, 0.26);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 4vw, 28px);
}

.auth-card h2 {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 0 8px;
  font-size: 2rem;
}

.auth-card .hint {
  color: var(--muted);
  margin: 0 0 16px;
}

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

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

.auth-form label span {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #172a4a;
}

.auth-form input {
  background: #fff;
  border: 1px solid rgba(5, 43, 99, 0.22);
  border-radius: 10px;
  padding: 12px 12px;
  min-height: 46px;
  outline: none;
}

.auth-form input:focus {
  border-color: rgba(197, 138, 44, 0.8);
  box-shadow: 0 0 0 4px rgba(239, 215, 164, 0.38);
}

.row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.link {
  color: var(--navy);
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.form-error,
.form-success {
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 750;
}

.form-error {
  background: rgba(179, 55, 45, 0.08);
  border: 1px solid rgba(179, 55, 45, 0.22);
  color: #7a1f19;
}

.form-success {
  background: rgba(5, 120, 70, 0.08);
  border: 1px solid rgba(5, 120, 70, 0.22);
  color: #064b2f;
}

.button-row {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.button-secondary {
  background: #fff;
  border: 1px solid rgba(5, 43, 99, 0.42);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 900;
  cursor: pointer;
  padding: 12px 14px;
  min-height: 48px;
}

.button-secondary:disabled,
.primary-action:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  color: var(--muted);
  font-weight: 850;
  font-size: 0.82rem;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: rgba(5, 43, 99, 0.16);
}

.fineprint {
  margin-top: 12px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 920px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
}

