@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap");

:root {
  color-scheme: light;
  --auth-forest: #173b35;
  --auth-deep: #102d29;
  --auth-leaf: #c8e58b;
  --auth-coral: #e99578;
  --auth-paper: #f4f6f2;
  --auth-white: #fff;
  --auth-ink: #202c29;
  --auth-muted: #697671;
  --auth-line: #d7dfda;
  --auth-focus: #337d69;
  font-family: "DM Sans", "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body.auth-page { min-height: 100vh; background: var(--auth-paper); color: var(--auth-ink); }

a { color: inherit; }

.auth-layout {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(420px, 1.02fr) minmax(460px, 0.98fr);
}

.auth-story {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(36px, 5vw, 74px);
  background-color: var(--auth-forest);
  background-image: repeating-linear-gradient(0deg, transparent 0, transparent 55px, rgb(255 255 255 / 4%) 56px), repeating-linear-gradient(90deg, transparent 0, transparent 55px, rgb(255 255 255 / 4%) 56px);
  color: var(--auth-white);
}

.auth-brand { display: inline-flex; width: fit-content; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.auth-brand-mark { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; }
.auth-brand-name { display: grid; gap: 3px; font-size: 20px; font-weight: 700; line-height: 1.05; }
.auth-brand-name small { color: #c5d8ce; font-size: 10px; font-weight: 600; }
.auth-story-copy { width: min(100%, 540px); margin: auto 0 38px; padding-top: 60px; animation: auth-appear 600ms ease-out both; }
.auth-eyebrow { margin: 0 0 14px; color: #477964; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.auth-story .auth-eyebrow { color: var(--auth-leaf); }
.auth-story h1 { max-width: 530px; margin: 0; font-family: "Newsreader", Georgia, serif; font-size: 64px; font-weight: 500; line-height: 0.98; }
.auth-story-copy > p:not(.auth-eyebrow) { max-width: 430px; margin: 20px 0 0; color: #d2ded8; font-size: 15px; line-height: 1.7; }
.auth-visual { width: min(100%, 520px); margin-top: 42px; padding: 19px 0 14px; border-top: 1px solid rgb(255 255 255 / 20%); border-bottom: 1px solid rgb(255 255 255 / 20%); }
.auth-visual-caption { display: flex; justify-content: space-between; gap: 12px; color: #d2ded8; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.auth-visual-caption span:last-child { color: var(--auth-leaf); }
.auth-chart { display: flex; height: 118px; align-items: end; gap: 13px; margin-top: 17px; padding: 0 2px; border-bottom: 1px solid rgb(255 255 255 / 25%); }
.auth-chart span { width: 100%; height: var(--bar-height); border-radius: 2px 2px 0 0; background: #6ca994; transform-origin: bottom; animation: auth-bar 650ms cubic-bezier(.2,.7,.2,1) both; }
.auth-chart span:nth-child(3n) { background: var(--auth-leaf); }
.auth-chart span:nth-child(4n) { background: var(--auth-coral); }
.auth-chart span:nth-child(2) { animation-delay: 40ms; }
.auth-chart span:nth-child(3) { animation-delay: 80ms; }
.auth-chart span:nth-child(4) { animation-delay: 120ms; }
.auth-chart span:nth-child(5) { animation-delay: 160ms; }
.auth-chart span:nth-child(6) { animation-delay: 200ms; }
.auth-chart span:nth-child(7) { animation-delay: 240ms; }
.auth-chart span:nth-child(8) { animation-delay: 280ms; }
.auth-chart span:nth-child(9) { animation-delay: 320ms; }
.auth-chart span:nth-child(10) { animation-delay: 360ms; }
.auth-chart span:nth-child(11) { animation-delay: 400ms; }
.auth-chart span:nth-child(12) { animation-delay: 440ms; }
.auth-story-footer { color: #bdcec6; font-size: 11px; }

.auth-entry { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: clamp(32px, 6vw, 88px); }
.auth-entry-inner { width: min(100%, 400px); animation: auth-appear 650ms 80ms ease-out both; }
.auth-entry h2 { margin: 0; font-family: "Newsreader", Georgia, serif; font-size: 39px; font-weight: 500; line-height: 1.08; }
.auth-intro { margin: 12px 0 31px; color: var(--auth-muted); font-size: 14px; line-height: 1.65; }
.auth-form { display: grid; gap: 19px; }
.auth-field { display: grid; gap: 7px; }
.auth-label { color: var(--auth-ink); font-size: 12px; font-weight: 700; }
.auth-input { display: block; width: 100%; min-height: 51px; padding: 0 14px; border: 1px solid #cbd5cf; border-radius: 4px; outline: none; background: var(--auth-white); color: var(--auth-ink); font: inherit; font-size: 14px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.auth-input::placeholder { color: #87938d; }
.auth-input:focus { border-color: var(--auth-focus); box-shadow: 0 0 0 3px rgb(51 125 105 / 14%); }
.auth-remember { display: flex; align-items: center; gap: 9px; color: var(--auth-muted); font-size: 12px; }
.auth-options { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.auth-forgot { color: #28674f; font-size: 12px; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.auth-remember input { width: 16px; height: 16px; accent-color: var(--auth-focus); }
.auth-submit { display: grid; min-height: 52px; place-items: center; margin-top: 2px; border: 1px solid var(--auth-forest); border-radius: 4px; background: var(--auth-forest); color: var(--auth-white); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; transition: background 150ms ease, transform 150ms ease; }
.auth-submit:hover { background: var(--auth-deep); }
.auth-submit:active { transform: translateY(1px); }
.auth-register-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--auth-line); color: var(--auth-muted); font-size: 12px; }
.auth-register-line a { color: #28674f; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.auth-entry-footer { margin: 38px 0 0; color: #89948e; font-size: 10px; }
.auth-field-error, .auth-validation-summary { color: #a34532; font-size: 12px; line-height: 1.45; }
.auth-validation-summary:empty { display: none; }
.auth-validation-summary ul { margin: 0; padding-left: 18px; }
.auth-notice { margin: 0 0 22px; padding: 12px 14px; border-left: 3px solid #78a98e; background: rgb(120 169 142 / 12%); color: #2d4a3f; font-size: 13px; line-height: 1.55; }
.auth-notice-error { border-left-color: #c9785f; background: rgb(201 120 95 / 10%); color: #7a3a29; }
.auth-notice a { color: inherit; font-weight: 700; }
.email-dev { margin: 0 0 22px; padding: 12px 14px; border: 1px dashed #c9a24a; border-radius: 6px; background: #fdf6e3; color: #6b5214; font-size: 13px; line-height: 1.55; }
.email-dev a { color: inherit; font-weight: 700; }
a.auth-submit { display: flex; align-items: center; justify-content: center; text-decoration: none; }
.auth-link-button { padding: 0; border: 0; background: none; color: #28674f; font: inherit; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
.account-dev-note {margin: 0 0 20px; padding-left: 12px; border-left: 2px solid #78a98e; background: rgb(120 169 142 / 10%); color: #5c6e64; font-size: 11px; line-height: 1.6; }

.auth-page :focus-visible, .site-shell :focus-visible { outline: 3px solid var(--auth-coral); outline-offset: 3px; }

@keyframes auth-appear { from { opacity: 0; transform: translateY(11px); } to { opacity: 1; transform: translateY(0); } }
@keyframes auth-bar { from { transform: scaleY(.15); } to { transform: scaleY(1); } }

@media (max-width: 900px) {
  .auth-layout { display: flex; flex-direction: column; }
  .auth-story { min-height: auto; padding: 32px; }
  .auth-story-copy { margin: 44px 0 26px; padding: 0; }
  .auth-story h1 { font-size: 53px; }
  .auth-visual { margin-top: 24px; }
  .auth-entry { min-height: auto; padding: 48px 32px; }
  .auth-entry-inner { max-width: 470px; }
}

@media (max-width: 600px) {
  .auth-story { padding: 22px 22px 17px; }
  .auth-brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .auth-brand-name { font-size: 18px; }
  .auth-story-copy { margin: 31px 0 19px; }
  .auth-story .auth-eyebrow { margin-bottom: 9px; }
  .auth-story h1 { font-size: 43px; }
  .auth-story-copy > p:not(.auth-eyebrow) { margin-top: 12px; font-size: 13px; }
  .auth-visual { margin-top: 18px; padding: 12px 0 9px; }
  .auth-chart { height: 62px; gap: 9px; margin-top: 10px; }
  .auth-story-footer { display: none; }
  .auth-entry { flex: 1; align-items: flex-start; padding: 30px 22px 34px; }
  .auth-entry h2 { font-size: 35px; }
  .auth-intro { margin-bottom: 25px; }
  .auth-entry-footer { margin-top: 31px; }
}

@media (max-width: 360px) {
  .auth-story, .auth-entry { padding-right: 18px; padding-left: 18px; }
  .auth-story h1 { font-size: 38px; }
  .auth-visual-caption { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
