:root {
  color-scheme: light;
  --zd-ink: #17211d;
  --zd-muted: #66716c;
  --zd-paper: #fbf8f1;
  --zd-panel: #ffffff;
  --zd-gold: #f3c82f;
  --zd-gold-dark: #836400;
  --zd-green: #0f766e;
  --zd-line: rgba(23, 33, 29, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--zd-ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(243, 200, 47, 0.2), transparent 34rem),
    radial-gradient(circle at 90% 92%, rgba(15, 118, 110, 0.12), transparent 30rem),
    var(--zd-paper);
  font-family: "Newsreader", Georgia, serif;
}

button,
input,
select {
  font: inherit;
}

.zd-auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
}

.zd-auth-story {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: clamp(2rem, 5vw, 5rem);
  border-right: 1px solid var(--zd-line);
}

.zd-auth-brand {
  width: fit-content;
  display: inline-flex;
  align-items: center;
}

.zd-auth-brand img {
  width: 9.5rem;
  height: auto;
}

.zd-auth-story-copy {
  max-width: 38rem;
  margin: auto 0;
}

.zd-auth-kicker {
  margin: 0 0 0.75rem;
  color: var(--zd-green);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.zd-auth-story h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.2rem, 6.5vw, 6.8rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.zd-auth-story-copy > p:last-child {
  max-width: 33rem;
  margin: 1.6rem 0 0;
  color: var(--zd-muted);
  font-size: 1.18rem;
  line-height: 1.6;
}

.zd-auth-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.zd-auth-benefits span {
  border: 1px solid var(--zd-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  padding: 0.58rem 0.85rem;
  color: #46514c;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zd-auth-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 5rem);
}

.zd-auth-card {
  width: min(100%, 34rem);
  border: 1px solid var(--zd-line);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.94);
  padding: clamp(1.5rem, 4vw, 3.2rem);
  box-shadow: 0 2rem 5rem rgba(39, 33, 19, 0.1);
}

.zd-auth-card h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
}

.zd-auth-intro {
  margin: 1rem 0 1.5rem;
  color: var(--zd-muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.zd-auth-message {
  margin-bottom: 1rem;
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  line-height: 1.45;
}

.zd-auth-message.is-error {
  border: 1px solid rgba(185, 28, 28, 0.2);
  background: #fff1f2;
  color: #9f1239;
}

.zd-auth-message.is-success {
  border: 1px solid rgba(15, 118, 110, 0.2);
  background: #ecfdf5;
  color: #0f766e;
}

.zd-auth-google {
  min-height: 3.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border: 1px solid rgba(23, 33, 29, 0.16);
  border-radius: 999px;
  background: #fff;
  color: #29332f;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.zd-auth-google:hover,
.zd-auth-google:focus-visible {
  border-color: rgba(15, 118, 110, 0.45);
  outline: 0;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
  transform: translateY(-1px);
}

.zd-auth-google-mark {
  width: 1.55rem;
  height: 1.55rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 50%;
  color: #4285f4;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.zd-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 1rem 0;
  color: var(--zd-muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.zd-auth-divider::before,
.zd-auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--zd-line);
}

.zd-auth-form {
  display: grid;
  gap: 1rem;
}

.zd-auth-field {
  display: grid;
  gap: 0.45rem;
}

.zd-auth-field > span {
  color: #35413b;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.zd-auth-field input,
.zd-auth-field select {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid rgba(23, 33, 29, 0.16);
  border-radius: 0.9rem;
  outline: 0;
  background: #fff;
  padding: 0.8rem 0.95rem;
  color: var(--zd-ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.zd-auth-field input:focus,
.zd-auth-field select:focus {
  border-color: var(--zd-green);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.1);
}

.zd-auth-field small {
  color: var(--zd-muted);
  font-size: 0.84rem;
}

.zd-auth-submit {
  min-height: 3.35rem;
  margin-top: 0.25rem;
  border: 1px solid #d4a900;
  border-radius: 999px;
  background: var(--zd-gold);
  color: #332800;
  cursor: pointer;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.zd-auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.8rem 1.8rem rgba(161, 125, 0, 0.18);
}

.zd-auth-switch {
  margin: 1.35rem 0 0;
  color: var(--zd-muted);
  text-align: center;
}

.zd-auth-switch a {
  color: var(--zd-green);
  font-weight: 600;
}

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

  .zd-auth-story {
    min-height: auto;
    padding-bottom: 2.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--zd-line);
  }

  .zd-auth-story-copy {
    margin: 4rem 0 2.5rem;
  }

  .zd-auth-story h1 {
    font-size: clamp(3rem, 12vw, 5rem);
  }

  .zd-auth-panel {
    min-height: auto;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 520px) {
  .zd-auth-story,
  .zd-auth-panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .zd-auth-card {
    border-radius: 1.4rem;
    padding: 1.35rem;
  }
}
