.login-page {
  min-height: 100vh;
  background: var(--canvas);
}

.login-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.9fr) minmax(480px, 1.1fr);
}

.login-story {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 5vw, 68px);
  color: white;
  background: var(--nav);
}

.login-story .brand-mark {
  background: transparent;
}

.login-story-copy {
  max-width: 560px;
  margin: auto 0;
  padding: 60px 0;
}

.login-story-copy .section-kicker {
  color: var(--lime);
}

.login-story h1 {
  margin: 10px 0 17px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.login-story-copy > p:nth-child(3) {
  max-width: 490px;
  color: #b7c4bc;
  font-size: 15px;
}

.login-benefits {
  display: grid;
  gap: 15px;
  margin-top: 40px;
}

.login-benefits > div {
  display: grid;
  grid-template-columns: 35px 1fr;
  gap: 12px;
  align-items: start;
}

.login-benefits > div > span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--nav);
  font-size: 9px;
  font-weight: 900;
  background: var(--lime);
  border-radius: 7px;
}

.login-benefits p,
.login-benefits strong {
  display: block;
}

.login-benefits p {
  margin: 0;
  color: #9fb0a5;
  font-size: 11px;
}

.login-benefits strong {
  margin-bottom: 2px;
  color: white;
  font-size: 12px;
}

.login-local-note {
  margin: 0;
  color: #7f9187;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.login-form-side {
  display: grid;
  padding: 32px;
  place-items: center;
}

.login-card {
  width: min(100%, 440px);
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line);
}

.auth-tabs button {
  padding: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.auth-tabs button.active {
  color: var(--green-dark);
  border-bottom-color: var(--green);
}

.login-heading h2 {
  margin: 5px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 500;
  letter-spacing: -0.035em;
}

.login-heading > p:last-child {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 12px;
}

.auth-field {
  display: grid;
  gap: 6px;
  margin-bottom: 15px;
}

.auth-field > span:first-child {
  color: #4e5b54;
  font-size: 10px;
  font-weight: 750;
}

.auth-field input {
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  color: var(--ink);
  font-size: 12px;
  background: white;
  border: 1px solid #cfd2cc;
  border-radius: 6px;
}

.auth-field small {
  color: #7a5548;
  font-size: 9px;
  line-height: 1.45;
}

.password-control {
  position: relative;
  display: block;
}

.password-control input {
  padding-right: 55px;
}

.password-control button {
  position: absolute;
  top: 50%;
  right: 7px;
  padding: 4px 6px;
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 800;
  background: transparent;
  border: 0;
  transform: translateY(-50%);
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  margin-top: 5px;
}

.auth-error {
  margin: 4px 0 10px;
  padding: 9px 10px;
  color: #8e302b;
  font-size: 10px;
  background: #fbe8e6;
  border-left: 3px solid #b74e45;
}

.guest-link {
  display: block;
  margin-top: 12px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.login-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.privacy-copy {
  margin: 24px 0 0;
  color: #909995;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 850px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-story {
    min-height: auto;
  }

  .login-story-copy {
    margin: 50px 0 20px;
    padding: 0;
  }

  .login-benefits,
  .login-local-note {
    display: none;
  }
}

@media (max-width: 520px) {
  .login-story {
    padding: 24px;
  }

  .login-story h1 {
    font-size: 40px;
  }

  .login-form-side {
    padding: 18px;
  }

  .login-card {
    padding: 25px 20px;
  }
}
