:root {
  color-scheme: light;
  --forest: #15241d;
  --forest-soft: #21362b;
  --forest-faint: #e8eee8;
  --copper: #b96f37;
  --copper-light: #d79a61;
  --cream: #f6f0e4;
  --text-primary: #17211b;
  --text-secondary: #5e655f;
  --text-muted: #8b8e88;
  --baseline: #cbc4b5;
  --series-1: #426b55;
  --font: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --display: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--forest); }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--forest);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.006em;
  -webkit-text-size-adjust: 100%;
}
a { color: #315e47; font-weight: 520; text-decoration: none; }
a:hover { color: var(--copper); }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid rgba(185, 111, 55, 0.34);
  outline-offset: 2px;
}

.login-page { overflow: hidden; }
.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(420px, 0.9fr);
  width: 100%;
  min-height: 100vh;
}
.login-story {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  padding: 44px 56px 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(215,154,97,0.17), transparent 25%),
    radial-gradient(ellipse at 110% 100%, rgba(87,124,98,0.38), transparent 50%),
    linear-gradient(145deg, #13221b, #1c3025 65%, #263e30);
  color: var(--cream);
}
.login-story::before, .login-story::after {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  border: 1px solid rgba(246,240,228,0.07);
  border-radius: 48% 52% 45% 55%;
  transform: rotate(22deg);
}
.login-story::before {
  right: -300px;
  bottom: -250px;
  box-shadow: 0 0 0 55px rgba(246,240,228,0.018), 0 0 0 110px rgba(246,240,228,0.012);
}
.login-story::after { left: -470px; top: 140px; }
.login-brand {
  position: relative;
  z-index: 1;
  display: block;
  width: 120px;
  color: var(--cream);
}
.login-brand picture, .login-brand img { display: block; width: 100%; height: auto; }
.login-brand img { filter: drop-shadow(0 7px 16px rgba(0,0,0,0.18)); }
.login-story-copy { position: relative; z-index: 1; max-width: 610px; margin: auto 0; }
.login-story-copy h1 {
  margin: 0;
  color: #fff;
  font-family: var(--display);
  font-size: clamp(48px, 5.8vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.login-story-copy p {
  max-width: 520px;
  margin-top: 24px;
  color: rgba(246,240,228,0.6);
  font-size: 16px;
  line-height: 1.65;
}
.login-trust {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(246,240,228,0.48);
  font-size: 10px;
}
.login-trust > span {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: #75b987;
  box-shadow: 0 0 0 4px rgba(117,185,135,0.11);
}
.login-panel {
  display: grid;
  min-height: 100vh;
  padding: 48px;
  place-items: center;
  background: #f7f3ea;
}
.login-form-wrap { width: min(100%, 400px); }
.eyebrow {
  margin-bottom: 9px;
  color: var(--copper);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}
.eyebrow.light { color: var(--copper-light); }
.login-form-wrap h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.login-intro {
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}
.login-form { display: grid; gap: 8px; }
.login-form label {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
}
.login-form input:not([type="hidden"]) {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--baseline);
  border-radius: 9px;
  background: #fff;
  color: var(--text-primary);
  font: inherit;
  font-size: 13px;
}
button, .button {
  min-height: 42px;
  border: 1px solid var(--baseline);
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
button.primary {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}
button.primary:hover { background: var(--forest-soft); }
.login-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  padding: 11px 16px;
}
.button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
}
.button.secondary.login-google {
  border-color: rgba(11,11,11,0.24);
  color: #0b0b0b;
}
.button.secondary.login-google:hover { border-color: #0b0b0b; color: #0b0b0b; }
.login-help { margin-top: 25px; color: var(--text-muted); font-size: 10px; text-align: center; }
.login-mobile-mark { display: none; }
.login-mobile-mark img { display: block; width: 72px; height: auto; }
.notice {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(66,107,85,0.16);
  border-left: 3px solid var(--series-1);
  border-radius: 9px;
  background: var(--forest-faint);
  color: #536258;
  font-size: 12px;
}
.notice.success { background: #edf5ee; }
.notice.warn { background: #f7eedf; }

@media (max-width: 760px) {
  .login-page { overflow: auto; }
  .login-shell { display: block; min-height: 100vh; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 34px 22px; }
  .login-mobile-mark { display: block; margin-bottom: 32px; }
  .login-form-wrap h2 { font-size: 38px; }
}
