:root {
  --ink: #173129;
  --muted: #6d7c77;
  --forest: #123b30;
  --sage: #dce9e1;
  --cream: #f4f2ea;
  --line: rgba(23, 49, 41, .13);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: radial-gradient(circle at 75% 15%, rgba(161, 192, 174, .18), transparent 34%), var(--cream);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(420px, .95fr) minmax(520px, 1.05fr);
  min-height: 100vh;
}

.login-story {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  color: #f4f6f1;
  background: radial-gradient(circle at 16% 82%, rgba(123, 178, 148, .34), transparent 35%), radial-gradient(circle at 90% 12%, rgba(204, 164, 91, .16), transparent 26%), var(--forest);
}

.login-story::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 50%;
  box-shadow: 0 0 0 72px rgba(255,255,255,.025), 0 0 0 144px rgba(255,255,255,.018);
}

.wordmark,
.mobile-wordmark {
  color: inherit;
  font-family: ui-serif, Georgia, serif;
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -.045em;
  text-decoration: none;
}

.story-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.story-copy > p,
.eyebrow {
  margin: 0 0 18px;
  color: #a9c6b5;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.story-copy h1 {
  margin: 0;
  font-family: ui-serif, Georgia, serif;
  font-size: clamp(42px, 5.2vw, 74px);
  font-weight: 500;
  letter-spacing: -.045em;
  line-height: .98;
}

.story-copy h1 em {
  color: #c7dccf;
  font-weight: 400;
}

.story-copy > span {
  display: block;
  max-width: 480px;
  margin-top: 28px;
  color: rgba(242, 246, 241, .65);
  font-size: 14px;
  line-height: 1.65;
}

.privacy-line {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(242, 246, 241, .65);
  font-size: 12px;
}

.privacy-line i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #76bd92;
  box-shadow: 0 0 0 5px rgba(118, 189, 146, .12);
}

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

.login-card {
  width: min(100%, 430px);
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255,255,255,.76);
  box-shadow: 0 24px 70px rgba(20, 49, 40, .1), inset 0 1px 0 rgba(255,255,255,.8);
  backdrop-filter: blur(24px) saturate(115%);
}

.mobile-wordmark { display: none; }
.login-card .eyebrow { margin-bottom: 10px; color: #487a65; }

.login-card h2 {
  margin: 0;
  font-family: ui-serif, Georgia, serif;
  font-size: 38px;
  font-weight: 500;
  letter-spacing: -.035em;
}

.intro {
  margin: 12px 0 30px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.login-card label { display: block; margin-top: 18px; }
.login-card label span { display: block; margin: 0 0 8px 2px; font-size: 12px; font-weight: 700; }

.login-card input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  color: var(--ink);
  background: rgba(255,255,255,.9);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-card input:focus {
  border-color: rgba(47,115,93,.55);
  box-shadow: 0 0 0 4px rgba(47,115,93,.09);
}

.login-error {
  min-height: 18px;
  margin: 14px 2px 4px;
  color: #a4483e;
  font-size: 12px;
}

.login-card button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--forest);
  font-weight: 750;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(18, 59, 48, .16);
  transition: transform 120ms ease, opacity 160ms ease, background 160ms ease;
}

.login-card button:hover { background: #1b4b3e; }
.login-card button:active { transform: scale(.985); }
.login-card button:disabled { opacity: .55; cursor: wait; }
.support { margin: 24px 0 0; color: #87928e; text-align: center; font-size: 11px; }

@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-panel { min-height: 100vh; padding: 20px; }
  .mobile-wordmark { display: block; margin-bottom: 48px; }
}

@media (max-width: 520px) {
  .login-card { padding: 28px 22px; border-radius: 22px; }
  .login-card h2 { font-size: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .login-card input,
  .login-card button { transition: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .login-card { background: #fff; backdrop-filter: none; }
}

