:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3efe4;
  color: #172b2c;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }
button { cursor: pointer; }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 0.92fr) minmax(460px, 1.08fr); }
.intro { position: relative; overflow: hidden; display: flex; min-height: 100vh; flex-direction: column; padding: clamp(28px, 5vw, 68px); background: #123a3b; color: #f7f1e3; isolation: isolate; }
.intro::before { content: ""; position: absolute; width: min(44vw, 620px); aspect-ratio: 1; right: -22%; bottom: -18%; border: 1px solid rgba(238, 184, 88, .28); border-radius: 50%; box-shadow: 0 0 0 48px rgba(238, 184, 88, .04), 0 0 0 96px rgba(238, 184, 88, .035); z-index: -1; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 720; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.08); font-family: Georgia, serif; font-size: 22px; }
.brand-mark span { color: #eeb858; }
.intro-copy { margin: auto 0; max-width: 590px; }
.eyebrow { margin: 0 0 18px; color: #d6a94f; font-size: 12px; font-weight: 800; letter-spacing: .18em; }
.intro h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5.2vw, 76px); font-weight: 500; line-height: .98; letter-spacing: -.045em; }
.intro h1 em { color: #eeb858; font-weight: 400; }
.intro-copy > p:last-child { max-width: 490px; margin: 34px 0 0; color: #bdd0ca; font-size: 16px; line-height: 1.7; }
.ledger { display: grid; gap: 11px; width: min(80%, 420px); margin-top: 44px; opacity: .48; }
.ledger span { height: 1px; background: linear-gradient(90deg, #eeb858 0 18%, rgba(255,255,255,.25) 18% 100%); }
.ledger span:nth-child(2) { width: 86%; }
.ledger span:nth-child(3) { width: 94%; }
.ledger span:nth-child(4) { width: 72%; }
.footnote { margin: 40px 0 0; color: #8caaa4; font-size: 12px; }

.form-panel { display: grid; place-items: center; min-height: 100vh; padding: 36px; background: #f7f4ec; }
.login-card { width: min(100%, 430px); }
.form-heading { display: flex; align-items: center; gap: 16px; }
.seal { display: grid; flex: 0 0 auto; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e8eee9; color: #1b655e; font-weight: 900; }
.form-heading .eyebrow { margin-bottom: 6px; color: #8b6927; }
.form-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 3vw, 39px); font-weight: 500; letter-spacing: -.035em; }
.form-intro { margin: 22px 0 34px; color: #647170; line-height: 1.6; }
label { display: block; margin: 0 0 9px; color: #283b3c; font-size: 13px; font-weight: 760; }
input { width: 100%; height: 52px; margin-bottom: 22px; padding: 0 15px; border: 1px solid #c9c9be; border-radius: 10px; outline: none; background: #fffefa; color: #152d2e; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: #1b655e; box-shadow: 0 0 0 3px rgba(27,101,94,.12); }
.password-label { display: flex; align-items: baseline; justify-content: space-between; }
.password-label button { border: 0; padding: 0; background: transparent; color: #1b655e; font-size: 12px; font-weight: 750; }
.error { margin: -4px 0 18px; padding: 11px 13px; border-left: 3px solid #b74436; border-radius: 5px; background: #f9e8e4; color: #812a21; font-size: 13px; line-height: 1.45; }
.submit { display: flex; width: 100%; min-height: 54px; align-items: center; justify-content: space-between; border: 0; border-radius: 10px; padding: 0 20px; background: #17534f; color: white; font-weight: 800; box-shadow: 0 10px 25px rgba(18,58,59,.18); transition: transform .15s, background .15s; }
.submit:hover { background: #0f4542; transform: translateY(-1px); }
.submit:focus-visible { outline: 3px solid rgba(238,184,88,.55); outline-offset: 3px; }
.submit:disabled { cursor: wait; opacity: .66; transform: none; }
.privacy { margin: 18px 0 0; text-align: center; color: #78807d; font-size: 12px; }

@media (max-width: 800px) {
  .login-shell { grid-template-columns: 1fr; }
  .intro { min-height: auto; padding: 26px 24px 34px; }
  .intro-copy { margin: 58px 0 0; }
  .intro h1 { font-size: clamp(38px, 11vw, 56px); }
  .intro-copy > p:last-child { margin-top: 24px; }
  .ledger, .footnote { display: none; }
  .form-panel { min-height: auto; padding: 44px 24px 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
