:root {
  --paper: #f4f0e8;
  --ink: #17231f;
  --muted: #68716c;
  --forest: #1c4f3f;
  --forest-dark: #123c30;
  --sun: #e39343;
  --white: #fffefa;
  --line: rgba(23, 35, 31, 0.14);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
}

button, input { font: inherit; }

.login-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: stretch;
}

.welcome-panel {
  position: relative;
  min-height: 680px;
  padding: clamp(48px, 7vw, 92px) clamp(30px, 7vw, 78px) 48px;
  overflow: hidden;
}

.brand-mark { width: 36px; display: grid; gap: 3px; margin-bottom: 48px; }
.brand-mark i { height: 8px; margin: 0 auto; border-radius: 8px 8px 2px 2px; background: var(--forest); }
.brand-mark i:nth-child(1) { width: 12px; }
.brand-mark i:nth-child(2) { width: 22px; }
.brand-mark i:nth-child(3) { width: 32px; }

.eyebrow {
  margin: 0 0 13px;
  color: var(--forest);
  font-size: 0.73rem;
  font-weight: 780;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1, h2, p { margin-top: 0; }

h1 {
  position: relative;
  z-index: 2;
  max-width: 620px;
  margin-bottom: 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 6.8vw, 5.85rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.93;
}

.intro {
  position: relative;
  z-index: 2;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.65;
}

.family-art {
  position: absolute;
  inset: auto 0 0 0;
  height: 265px;
  overflow: hidden;
}

.sun { position: absolute; width: 72px; height: 72px; right: 23%; top: 24px; border-radius: 50%; background: #edb36f; }
.hill { position: absolute; display: block; border-radius: 50% 50% 0 0; }
.hill-back { width: 570px; height: 205px; right: -120px; bottom: -60px; transform: rotate(-4deg); background: #b7cbb9; }
.hill-front { width: 650px; height: 190px; left: -165px; bottom: -64px; transform: rotate(5deg); background: #6e9a79; }
.tree { position: absolute; width: 16px; height: 82px; bottom: 70px; border-radius: 50% 50% 5px 5px; background: var(--forest); }
.tree::after { content: ""; position: absolute; width: 4px; height: 42px; left: 6px; bottom: -29px; background: var(--forest-dark); }
.tree-one { left: 24%; transform: rotate(-3deg); }
.tree-two { left: 35%; bottom: 58px; transform: scale(0.72); }

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

.form-card {
  width: min(100%, 445px);
  padding: clamp(30px, 4.5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 24px 60px rgba(21, 53, 43, 0.1);
}

h2 {
  margin-bottom: 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.04em;
}

.form-copy { margin-bottom: 30px; color: var(--muted); line-height: 1.55; }

form { display: grid; gap: 10px; }
label { margin-top: 7px; font-size: 0.82rem; font-weight: 740; }

input {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid rgba(23, 35, 31, 0.22);
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  font-size: 1rem;
  outline: none;
}

input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(28, 79, 63, 0.13); }
.password-row { position: relative; }
.password-row input { padding-right: 74px; }

.show-password {
  position: absolute;
  right: 8px;
  top: 8px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--forest);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 750;
  cursor: pointer;
}
.show-password:hover { background: #e8eee9; }

.message { min-height: 22px; margin: 4px 0 0; color: #a23f2d; font-size: 0.84rem; line-height: 1.45; }

.submit-button {
  min-height: 54px;
  margin-top: 2px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--forest);
  font-weight: 760;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(28, 79, 63, 0.18);
}
.submit-button:hover { background: var(--forest-dark); }
.submit-button:focus-visible, .show-password:focus-visible { outline: 3px solid rgba(227, 147, 67, 0.55); outline-offset: 2px; }
.submit-button:disabled { cursor: wait; opacity: 0.7; }

.privacy-note { margin: 25px 0 0; color: var(--muted); font-size: 0.75rem; text-align: center; }
.privacy-note span { margin-right: 5px; color: #52a36c; }

@media (max-width: 800px) {
  .login-shell { width: 100%; grid-template-columns: 1fr; }
  .welcome-panel { min-height: 375px; padding: 38px 25px 26px; }
  .brand-mark { margin-bottom: 30px; }
  h1 { font-size: clamp(2.8rem, 13vw, 4.8rem); }
  .intro { max-width: 470px; }
  .family-art { height: 155px; opacity: 0.82; }
  .sun { width: 54px; height: 54px; top: 18px; }
  .hill-back { height: 130px; }
  .hill-front { height: 120px; }
  .tree { bottom: 34px; transform: scale(0.72); transform-origin: bottom; }
  .form-panel { padding: 20px 16px 42px; }
  .form-card { border-radius: 20px; }
}

@media (max-width: 430px) {
  .welcome-panel { min-height: 335px; }
  .intro { font-size: 0.96rem; }
  .form-card { padding: 28px 22px; }
}

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