:root {
  --paper: #f6f3ed;
  --white: #fffdf9;
  --ink: #243d34;
  --muted: #6d796b;
  --line: #dedfd3;
  --green: #254c3e;
  --terra: #bd7055;
  --sage: #e5ecdf;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
.logout-link { border: 0; background: transparent; padding: 15px 0; margin-top: 6px; color: var(--green); font: inherit; font-size: 12px; text-decoration: underline; }

* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: wait; opacity: .65; }
button:focus-visible, input:focus-visible, a:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
p { line-height: 1.7; }
svg { flex: none; }
.skip-link {
  position: fixed;
  top: -70px;
  left: 15px;
  z-index: 5;
  padding: 12px 18px;
  background: var(--green);
  color: var(--white);
  border-radius: 8px;
}
.skip-link:focus { top: 15px; }
.login-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: 100svh; }
.story-panel {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  padding: 47px 64px 34px;
  background: #edf0e8;
  border-right: 1px solid #dfe4d8;
}
.brand > span { font-family: Georgia, "Times New Roman", serif; color: var(--green); font-size: 58px; line-height: .85; letter-spacing: -3px; }
.brand-dot { color: var(--terra); }
.brand p { color: #78846e; font-size: 10px; letter-spacing: 2px; margin-top: 19px; }
.story-copy { position: relative; z-index: 1; margin-top: 71px; }
.eyebrow { font-size: 10px; letter-spacing: 1.9px; font-weight: 600; color: #78846e; margin-bottom: 16px; }
.story-copy h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: clamp(36px, 3.35vw, 54px); line-height: 1.18; letter-spacing: -1.5px; }
.story-copy > p:last-child { margin-top: 23px; color: var(--muted); font-size: 14px; max-width: 420px; }
.story-art { display: block; width: calc(100% + 48px); height: auto; max-height: 320px; object-fit: contain; object-position: center; margin: 20px -24px 6px; mix-blend-mode: multiply; }
.story-footer { margin-top: auto; color: #78846e; font-size: 11px; padding-top: 15px; }
.footer-line { display: block; width: 44px; height: 2px; background: #afba9e; margin-bottom: 14px; }
.access-panel { display: flex; flex-direction: column; padding: 48px 58px 29px; background: var(--paper); outline: none; }
.access-topline { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: #7b8574; font-size: 9px; letter-spacing: 1.2px; }
.access-card { width: 100%; max-width: 395px; margin: auto; padding: 56px 0 45px; }
.chapter-mark { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; background: var(--sage); border: 1px solid #d7dfcd; border-radius: 15px; color: #69815e; margin-bottom: 28px; }
.access-card h1 { font-family: Georgia, "Times New Roman", serif; font-size: 35px; line-height: 1.2; font-weight: 400; letter-spacing: -1px; }
.access-card .eyebrow { font-size: 9px; letter-spacing: 1.7px; margin-bottom: 12px; }
.intro { font-size: 13px; color: var(--muted); margin-top: 16px; max-width: 350px; }
form { margin-top: 34px; }
.field { margin-bottom: 21px; }
.field label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.field input { width: 100%; height: 49px; border: 1px solid #d8dece; border-radius: 9px; background: var(--white); color: var(--ink); padding: 0 14px; font-size: 14px; transition: border-color .15s; }
.field input:hover { border-color: #a4b39b; }
.field input::placeholder { color: #9a9f93; }
.password-field { position: relative; }
.password-field input { padding-right: 89px; }
.password-toggle { position: absolute; right: 6px; top: 5px; height: 39px; padding: 0 11px; border: 0; border-radius: 5px; background: transparent; color: #61755b; font-size: 11px; }
.password-toggle:hover { background: var(--sage); color: var(--green); }
.submit-button { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 49px; padding: 13px 18px; border: 1px solid var(--green); border-radius: 9px; background: var(--green); color: var(--white); font-size: 13px; font-weight: 500; transition: background .15s, transform .15s; }
.submit-button:hover:not(:disabled) { background: #396350; transform: translateY(-1px); }
.first-access-note { display: flex; align-items: flex-start; gap: 9px; border-top: 1px solid var(--line); margin-top: 28px; padding-top: 20px; color: var(--muted); font-size: 11px; }
.note-dot { flex: none; width: 6px; height: 6px; background: #b39962; border-radius: 50%; margin-top: 7px; }
.form-error { font-size: 12px; color: #873f32; background: #f4e5dc; border: 1px solid #e5c9b9; border-radius: 8px; padding: 11px 13px; margin-bottom: 18px; }
.access-footer { color: #8b9283; font-size: 10px; text-align: center; }

@media (min-width: 1600px) {
  .story-panel { padding-left: max(64px, calc((100vw - 1450px) / 2)); }
  .story-copy { margin-top: 95px; }
  .story-art { max-height: 375px; margin-top: 36px; }
}
@media (max-width: 1050px) {
  .story-panel { padding: 38px 36px 28px; }
  .access-panel { padding: 39px 36px 28px; }
  .story-copy { margin-top: 70px; }
  .story-copy h2 { font-size: 39px; }
  .story-copy > p:last-child { font-size: 12px; }
  .desktop-break { display: none; }
  .access-card h1 { font-size: 31px; }
  .story-art { margin-top: 35px; }
}
@media (max-width: 720px) {
  .login-layout { display: block; }
  .story-panel { display: block; padding: 28px 24px 27px; border-right: 0; border-bottom: 1px solid #dfe4d8; }
  .brand > span { font-size: 45px; }
  .brand p { font-size: 8px; letter-spacing: 1.5px; margin-top: 13px; }
  .story-copy { margin-top: 26px; max-width: 67%; }
  .story-copy .eyebrow { font-size: 7px; letter-spacing: 1px; margin-bottom: 9px; }
  .story-copy h2 { font-size: clamp(25px, 5.3vw, 34px); letter-spacing: -.6px; }
  .story-copy > p:last-child, .story-footer { display: none; }
  .story-art { position: absolute; width: 190px; height: 160px; right: -36px; bottom: 3px; margin: 0; object-fit: cover; object-position: center; opacity: .9; }
  .access-panel { padding: 27px 25px 27px; min-height: calc(100svh - 240px); }
  .access-topline { justify-content: flex-start; font-size: 8px; letter-spacing: 1px; }
  .access-card { padding: 36px 0 37px; max-width: 420px; }
  .chapter-mark { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 22px; }
  .chapter-mark svg { width: 22px; height: 22px; }
  .access-card h1 { font-size: 33px; }
  .intro { font-size: 12px; margin-top: 13px; }
  form { margin-top: 28px; }
  .field input { font-size: 16px; }
  .first-access-note { margin-top: 25px; }
}
@media (max-width: 360px) {
  .story-copy { max-width: 75%; }
  .story-art { width: 145px; right: -40px; height: 125px; }
  .access-card h1 { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
