:root {
  color-scheme: light;
  --ink: #20352c;
  --muted: #718078;
  --green: #3d765b;
  --green-dark: #2d5d46;
  --green-soft: #e5eee8;
  --coral: #bd6958;
  --paper: #f3f6f2;
  --line: #dbe3dc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

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

button, input { font: inherit; }
a { color: inherit; }

.login-shell { width: min(1080px, calc(100% - 64px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.login-header { display: flex; align-items: center; justify-content: space-between; min-height: 82px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; background: var(--green); border-radius: 7px; }
.brand-mark span { position: relative; display: block; width: 19px; height: 19px; border: 1.5px solid #e4efe8; border-radius: 50%; }
.brand-mark span::before, .brand-mark span::after { position: absolute; content: ''; background: #e4efe8; }
.brand-mark span::before { top: 8px; left: 2px; width: 13px; height: 1.5px; }
.brand-mark span::after { top: 3px; left: 8px; width: 1.5px; height: 12px; }
.brand-copy strong, .brand-copy small { display: block; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { margin-top: 2px; color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: .16em; }
.header-note { color: var(--muted); font-size: 12px; }
.header-switch { color: var(--green-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.header-switch:hover { color: var(--green); }
.header-switch span { margin-left: 4px; font-size: 15px; }

.login-main { display: grid; grid-template-columns: minmax(0, 1fr) 420px; align-items: center; gap: 64px; flex: 1; padding: 64px 0 76px; }
.welcome { padding-bottom: 14px; }
.eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 22px; color: var(--coral); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
.status-dot { width: 7px; height: 7px; background: #78a181; border-radius: 50%; }
.welcome h1 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-size: 54px; font-weight: 400; line-height: 1.2; }
.welcome h1 em { color: var(--green); font-style: normal; }
.welcome-copy { margin: 24px 0 0; color: var(--muted); font-size: 14px; }
.measure-line { display: flex; align-items: center; gap: 9px; width: min(380px, 100%); margin-top: 52px; }
.measure-line-start, .measure-line-end { width: 7px; height: 7px; flex: 0 0 auto; border: 1.5px solid var(--coral); border-radius: 50%; }
.measure-line-end { background: var(--coral); }
.measure-line-track { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 24px; border-top: 1px solid #b8c8bd; }
.measure-line-track i { display: block; width: 1px; height: 7px; margin-top: -1px; background: #b8c8bd; }
.measure-line-track i:nth-child(3n + 1) { height: 12px; background: var(--green); }
.welcome-footnote { margin: 12px 0 0 16px; color: var(--muted); font-size: 11px; }

.login-panel { padding: 36px 36px 30px; background: #fff; border: 1px solid var(--line); border-radius: 7px; box-shadow: 0 14px 40px rgb(32 53 44 / 5%); }
.panel-kicker { margin: 0 0 8px; color: var(--green); font-size: 12px; font-weight: 750; }
.panel-heading h2 { margin: 0; font-size: 24px; font-weight: 720; }
.panel-heading > p:last-child { margin: 9px 0 26px; color: var(--muted); font-size: 12px; }
#login-form { display: flex; flex-direction: column; }
#login-form label { margin: 0 0 8px; font-size: 12px; font-weight: 700; }
#login-form input { width: 100%; height: 46px; margin-bottom: 19px; padding: 0 12px; color: var(--ink); background: #fff; border: 1px solid #cbd6ce; border-radius: 4px; outline: none; }
#login-form input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgb(61 118 91 / 12%); }
.form-error { margin: -3px 0 13px; color: #a54135; font-size: 12px; line-height: 1.5; }
.form-error[hidden] { display: none; }
.submit-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 15px; color: #fff; background: var(--green); border: 1px solid var(--green); border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 750; }
.submit-button:hover { background: var(--green-dark); border-color: var(--green-dark); }
.submit-button:focus-visible { outline: 3px solid rgb(61 118 91 / 28%); outline-offset: 2px; }
.submit-button:disabled { cursor: wait; opacity: .7; }
.submit-arrow { font-size: 18px; font-weight: 400; }
.security-note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: 10px; }
.security-mark { color: var(--green); font-size: 8px; }
.login-footer { display: flex; justify-content: space-between; padding: 17px 0 22px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }

@media (max-width: 920px) {
  .login-main { grid-template-columns: minmax(0, 1fr) minmax(340px, 390px); gap: 36px; }
  .welcome h1 { font-size: 42px; }
  .login-panel { padding: 32px 30px 26px; }
}

@media (max-width: 760px) {
  .login-shell { width: min(100% - 36px, 480px); }
  .login-header { min-height: 70px; }
  .login-main { grid-template-columns: 1fr; gap: 34px; padding: 44px 0 48px; }
  .welcome { padding: 0; }
  .eyebrow { margin-bottom: 15px; }
  .welcome h1 { font-size: 40px; }
  .welcome-copy { margin-top: 15px; }
  .measure-line { margin-top: 26px; }
  .welcome-footnote { margin-top: 8px; }
  .login-panel { padding: 28px 24px 24px; }
}

@media (max-width: 380px) {
  .login-shell { width: calc(100% - 28px); }
  .login-main { gap: 27px; padding: 34px 0 36px; }
  .welcome h1 { font-size: 36px; }
  .login-panel { padding-right: 19px; padding-left: 19px; }
  .login-footer { gap: 16px; font-size: 9px; }
}
