:root {
  color-scheme: light;
  --ink: #1e2924;
  --muted: #7b8781;
  --line: #e4e9e5;
  --green: #28765a;
  --green-dark: #1e5b45;
  --surface: #ffffff;
  --canvas: #f3f6f3;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button, input { font: inherit; }

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, .96fr);
  width: min(1120px, calc(100% - 48px));
  min-height: min(700px, calc(100vh - 64px));
  margin: 32px auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 24px 70px rgba(31, 59, 46, .08);
}

.login-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 42px 48px 36px;
  color: #f7fbf8;
  background:
    radial-gradient(circle at 80% 15%, rgba(127, 190, 151, .2), transparent 34%),
    linear-gradient(150deg, #1d483a 0%, #255a46 48%, #193c33 100%);
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; font-size: 20px; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: #1c4b39; background: #d5eadb; border-radius: 12px; font-family: Georgia, serif; font-size: 24px; }
.brand-light { margin-left: 3px; color: #bed4c7; font-weight: 500; }
.aside-copy { max-width: 440px; margin: auto 0; padding: 88px 0; }
.eyebrow { margin: 0 0 14px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.login-aside .eyebrow { color: #a9d5b9; }
.aside-copy h1 { margin: 0; font-size: clamp(32px, 4vw, 46px); line-height: 1.35; letter-spacing: -.035em; }
.aside-copy > p:last-child { max-width: 370px; margin: 20px 0 0; color: #c5d8cb; font-size: 15px; line-height: 1.9; }
.aside-footer { color: #b2c9ba; font-size: 12px; }
.aside-footer span { padding: 0 8px; color: #74a889; }

.login-panel { display: flex; flex-direction: column; justify-content: center; width: min(100%, 480px); margin: auto; padding: 64px 56px; }
.panel-heading { margin-bottom: 32px; }
.panel-heading h2 { margin: 0; font-size: 30px; letter-spacing: -.03em; }
.panel-heading > p:last-child { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.field { display: grid; gap: 9px; margin-bottom: 20px; color: #334039; font-size: 13px; font-weight: 650; }
.field input { width: 100%; height: 48px; padding: 0 14px; color: var(--ink); background: #fbfcfb; border: 1px solid var(--line); border-radius: 10px; outline: none; transition: border-color .16s ease, box-shadow .16s ease, background .16s ease; }
.field input:focus { background: white; border-color: #68a783; box-shadow: 0 0 0 3px rgba(65, 137, 96, .13); }
.field input::placeholder { color: #a4ada7; font-weight: 400; }
.field small { color: var(--muted); font-size: 11px; font-weight: 400; }
[hidden] { display: none !important; }
.primary-button { width: 100%; height: 48px; margin-top: 6px; color: white; background: var(--green); border: 0; border-radius: 10px; cursor: pointer; font-weight: 700; transition: background .16s ease, transform .16s ease; }
.primary-button:hover { background: var(--green-dark); }
.primary-button:active { transform: translateY(1px); }
.primary-button:disabled { opacity: .65; cursor: wait; }
.form-message { margin: 0 0 16px; padding: 11px 12px; color: #874829; background: #fff4ea; border: 1px solid #f4ddca; border-radius: 9px; font-size: 13px; line-height: 1.6; }
.form-message.is-success { color: #266347; background: #eef8f1; border-color: #d1e9d8; }
.register-prompt { margin: 23px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.text-button { padding: 0; color: var(--green); background: none; border: 0; cursor: pointer; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.privacy-note { margin: 38px 0 0; color: #98a29c; text-align: center; font-size: 11px; line-height: 1.7; }

@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; width: min(100% - 24px, 520px); min-height: auto; margin: 12px auto; border-radius: 18px; }
  .login-aside { min-height: 196px; padding: 24px; }
  .aside-copy { padding: 30px 0 14px; }
  .aside-copy h1 { font-size: 26px; }
  .aside-copy > p:last-child, .aside-footer { display: none; }
  .login-panel { width: 100%; padding: 34px 24px 30px; }
  .panel-heading { margin-bottom: 26px; }
  .panel-heading h2 { font-size: 26px; }
  .privacy-note { margin-top: 30px; }
}

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