:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #173f35;
  background: #f7f4eb;
  font-synthesis: none;
  --green: #173f35;
  --deep-green: #0d3028;
  --sage: #93a99d;
  --gold: #b69455;
  --cream: #f7f4eb;
  --paper: #fffdf8;
}

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

.page-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(460px, 1.08fr) minmax(520px, .92fr); }
.story-panel { position: relative; overflow: hidden; padding: 48px clamp(48px, 7vw, 110px); display: flex; flex-direction: column; justify-content: space-between; background: #e5ece6; }
.story-panel::before { content: ""; position: absolute; width: 650px; height: 650px; border: 1px solid #bac9bf; border-radius: 50%; top: -360px; left: -280px; box-shadow: 0 0 0 85px #ffffff26, 0 0 0 170px #ffffff1e; }
.story-panel::after { content: ""; position: absolute; width: 420px; height: 420px; right: -260px; bottom: -200px; border-radius: 50%; border: 1px solid #c3cec6; }
.brand { position: relative; z-index: 1; display: inline-flex; width: fit-content; align-items: center; gap: 11px; text-decoration: none; font-size: 19px; font-weight: 700; letter-spacing: -.04em; }
.brand > span:last-child > span { color: var(--gold); }
.brand-mark { width: 34px; height: 34px; display: inline-grid; place-items: center; border: 1px solid #879f94; border-radius: 50%; }
.brand-mark span { width: 15px; height: 20px; border-radius: 50%; box-shadow: -5px 1px 0 0 var(--gold); transform: rotate(-25deg); }
.story-content { position: relative; z-index: 1; margin: 70px 0 50px; }
.kicker { margin: 0 0 16px; color: #738b80; font-size: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.story-content h1 { margin: 0; font: 600 clamp(45px, 5vw, 73px)/1.02 Georgia, "Times New Roman", serif; letter-spacing: -.055em; color: #173f35; }
.story-content h1 em { color: var(--gold); font-weight: 500; }
.story-copy { max-width: 510px; margin: 26px 0 40px; color: #60786e; font-size: 15px; line-height: 1.75; }
.features { display: grid; gap: 14px; max-width: 520px; }
.features > div { display: flex; align-items: center; gap: 17px; padding-top: 14px; border-top: 1px solid #c5d1c9; }
.features > div > span { color: #a1b1a8; font: 11px Georgia, serif; }
.features p { display: flex; margin: 0; color: #72877e; font-size: 12px; }
.features strong { width: 170px; color: #31564c; font-weight: 700; }
blockquote { position: relative; z-index: 1; margin: 0; max-width: 560px; padding-left: 18px; border-left: 2px solid var(--gold); color: #647b71; font: italic 14px/1.6 Georgia, serif; }
blockquote cite { display: block; margin-top: 7px; color: #789087; font: 700 9px Inter, sans-serif; letter-spacing: .15em; text-transform: uppercase; }

.form-panel { display: grid; place-items: center; padding: 48px clamp(40px, 6vw, 88px); background: var(--paper); }
.form-wrap { width: min(510px, 100%); }
.mobile-brand { display: none; }
.form-wrap h2 { margin: 0 0 8px; font: 600 42px/1.1 Georgia, serif; letter-spacing: -.04em; }
.subtitle { margin: 0 0 31px; color: #84938d; font-size: 13px; }
form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: grid; gap: 8px; color: #375a50; font-size: 11px; font-weight: 750; letter-spacing: .01em; }
.optional { float: right; color: #9aa7a2; font-size: 9px; font-weight: 500; text-transform: uppercase; }
input, select { width: 100%; height: 46px; padding: 0 13px; border: 1px solid #ced7d1; border-radius: 3px; outline: none; background: #fff; color: #183e35; font-size: 13px; transition: .2s ease; }
input::placeholder { color: #aeb8b3; }
input:focus, select:focus { border-color: #608c7e; box-shadow: 0 0 0 3px #dfeae5; }
.password-field { position: relative; display: block; }
.password-field input { padding-right: 60px; }
.password-field button { position: absolute; right: 8px; top: 8px; height: 30px; border: 0; background: transparent; color: #658176; font-size: 10px; font-weight: 750; cursor: pointer; }
.hint { margin-top: -3px; color: #9aa7a2; font-size: 9px; font-weight: 500; }
.login-link a { color: #315f52; font-weight: 750; }
.submit-button { height: 48px; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; border: 0; border-radius: 3px; background: var(--green); color: #fff; font-size: 12px; font-weight: 750; cursor: pointer; box-shadow: 0 10px 24px #173f3525; transition: transform .2s, background .2s; }
.submit-button:hover { background: var(--deep-green); transform: translateY(-1px); }
.submit-button:disabled { opacity: .65; cursor: wait; }
.login-link { margin: 23px 0 0; text-align: center; color: #8b9893; font-size: 11px; }
.form-message { display: none; padding: 10px 12px; border-radius: 3px; font-size: 11px; line-height: 1.5; }
.form-message.error { display: block; color: #8a4037; background: #f8e9e5; border: 1px solid #ebcbc3; }
.form-message.success { display: block; color: #23644e; background: #e2f1e9; border: 1px solid #bddbcd; }
.login-wrap { max-width: 430px; }
.login-story .story-content { margin-top: 100px; }
.login-note { display: flex; align-items: center; gap: 16px; max-width: 440px; margin-top: 44px; padding: 17px 19px; border: 1px solid #bdcbc2; background: #ffffff35; }
.login-note > span { color: var(--gold); font-size: 22px; }
.login-note p { display: grid; gap: 4px; margin: 0; color: #71867d; font-size: 11px; }
.login-note strong { color: #365a50; font-size: 12px; }
.login-options { display: flex; align-items: center; justify-content: space-between; margin-top: -3px; }
.remember { display: flex; grid-template-columns: none; align-items: center; gap: 7px; color: #71857d; font-size: 10px; font-weight: 550; }
.remember input { width: 14px; height: 14px; margin: 0; accent-color: var(--green); }
.login-options > a { color: #486f63; font-size: 10px; font-weight: 700; }
.registration-message { display: none; grid-template-columns: 28px 1fr; align-items: center; gap: 11px; margin: -8px 0 22px; padding: 11px 13px; color: #38705d; background: #e5f1ea; border: 1px solid #c5ddcf; font-size: 10px; }
.registration-message.visible { display: grid; }
.registration-message > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: #4e826e; }
.registration-message p { display: grid; gap: 2px; margin: 0; }
.registration-message strong { color: #285f4c; font-size: 11px; }
.privacy-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 40px 0 0; color: #9aa7a2; font-size: 9px; }

@media (max-width: 980px) {
  .page-shell { grid-template-columns: 1fr; }
  .story-panel { display: none; }
  .form-panel { min-height: 100vh; padding: 32px 22px; }
  .mobile-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 50px; font-weight: 750; }
}
@media (max-width: 540px) {
  .field-row { grid-template-columns: 1fr; }
  .form-wrap h2 { font-size: 36px; }
}
