:root {
  color-scheme: light;
  --ink: #17211b;
  --muted: #68736c;
  --line: #d9e0db;
  --brand: #145c3c;
  --brand-dark: #0c422b;
  --danger: #a92f26;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #f5f7f4; color: var(--ink); font-family: "Leelawadee UI", "Noto Sans Thai", system-ui, sans-serif; line-height: 1.5; }
button, input { font: inherit; }
.login-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(380px, .9fr) minmax(520px, 1.1fr); }
.brand-panel { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(32px, 5vw, 72px); background: #10261b; color: white; }
.brand-lockup { display: flex; align-items: center; gap: 12px; }
.brand-lockup > span { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 11px; background: #c5ead3; color: var(--brand-dark); font: 800 1.15rem Georgia, serif; }
.brand-lockup strong { font-size: 1rem; line-height: 1.15; }
.brand-lockup small { display: block; color: #9dafA4; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; }
.brand-copy { max-width: 590px; padding-block: 48px; }
.eyebrow { margin: 0 0 8px; color: #71907f; font-size: .67rem; font-weight: 800; letter-spacing: .17em; }
.brand-copy h1 { max-width: 560px; margin: 0; font: 500 clamp(2rem, 4vw, 3.6rem)/1.15 Georgia, "Times New Roman", serif; letter-spacing: -.035em; }
.brand-copy > p:last-child { max-width: 540px; margin: 22px 0 0; color: #a9bbb0; font-size: .9rem; }
.security-note { margin: 0; color: #81968a; font-size: .72rem; }
.security-note::before { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: #76d69a; content: ""; }
.form-panel { display: grid; place-items: center; padding: clamp(24px, 6vw, 80px); }
.login-form { width: min(410px, 100%); }
.login-form header { margin-bottom: 30px; }
.login-form h2 { margin: 0; font: 500 clamp(1.9rem, 3vw, 2.5rem)/1.25 Georgia, serif; letter-spacing: -.025em; }
.login-form header > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: .84rem; }
.login-form label { display: grid; gap: 7px; margin-top: 18px; }
.login-form label span { font-size: .78rem; font-weight: 700; }
.login-form input { width: 100%; min-height: 48px; padding: 10px 13px; border: 1px solid #cbd5ce; border-radius: 9px; outline: none; background: white; }
.login-form input:hover { border-color: #aab9af; }
.login-form input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgb(20 92 60 / 13%); }
.login-form button { width: 100%; min-height: 48px; margin-top: 24px; border: 0; border-radius: 9px; background: var(--brand); color: white; font-weight: 800; cursor: pointer; }
.login-form button:hover { background: var(--brand-dark); }
.login-form button:focus-visible { outline: 3px solid rgb(20 92 60 / 24%); outline-offset: 3px; }
.alert { margin-bottom: 20px; padding: 11px 13px; border: 1px solid #ecc7c3; border-radius: 9px; background: #fff3f1; color: var(--danger); font-size: .76rem; }
.help { margin: 18px 0 0; color: var(--muted); text-align: center; font-size: .72rem; }
@media (max-width: 820px) {
  .login-shell { grid-template-columns: 1fr; }
  .brand-panel { min-height: 250px; padding: 28px 24px; }
  .brand-copy { padding: 42px 0 24px; }
  .brand-copy h1 { max-width: 620px; font-size: clamp(1.85rem, 7vw, 2.8rem); }
  .brand-copy > p:last-child, .security-note { display: none; }
  .form-panel { place-items: start center; padding: 42px 24px 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
