:root {
  color-scheme: light;
  --green-950: #17211d;
  --green-800: #294438;
  --green-700: #3c634d;
  --paper: #f3f5f1;
  --ink: #242a25;
  --muted: #788078;
  --line: #e5e9e3;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #86ad91; outline-offset: 3px; }
[hidden] { display: none !important; }
.login-layout { display: grid; min-height: 100vh; grid-template-rows: 1fr auto 1fr; justify-items: center; padding: 22px; }
.brand { grid-row: 1; align-self: start; justify-self: start; display: inline-flex; overflow: hidden; padding: 0 10px; background: #101714; }
.brand img { display: block; width: 166px; height: 67px; object-fit: cover; }
.login-card { grid-row: 2; width: min(420px,100%); padding: clamp(26px,6vw,43px); border: 1px solid var(--line); border-radius: 9px; background: white; box-shadow: 0 13px 40px #18231b0b; }
.eyebrow { margin: 0 0 11px; color: var(--green-700); font-size: 9px; font-weight: 700; letter-spacing: .15em; }
h1 { margin: 0 0 9px; font-size: clamp(27px,6vw,34px); font-weight: 700; letter-spacing: -.055em; }
.intro { margin: 0 0 26px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.field { display: grid; gap: 7px; margin-bottom: 16px; color: #475047; font-size: 10px; font-weight: 600; }
.field input { min-height: 42px; padding: 9px 11px; border: 1px solid #dfe5df; border-radius: 5px; outline: 0; color: #283029; background: #fff; font-size: 12px; font-weight: 400; }
.field input:focus { border-color: #6c9673; box-shadow: 0 0 0 3px #739b791f; }
.error { margin: 0 0 13px; padding: 10px; border-radius: 5px; color: #8d352c; background: #fff0ee; font-size: 10px; line-height: 1.6; }
.submit-button { display: flex; width: 100%; min-height: 43px; align-items: center; justify-content: center; gap: 11px; margin-top: 21px; border: 0; border-radius: 5px; color: white; background: var(--green-800); cursor: pointer; font-size: 11px; font-weight: 600; transition: background .2s, transform .2s; }
.submit-button:hover { transform: translateY(-1px); background: var(--green-700); }
.submit-button:disabled { cursor: wait; opacity: .7; }
.public-link { display: block; width: fit-content; margin: 23px auto 0; color: var(--muted); font-size: 10px; }
.public-link:hover { color: var(--green-700); }
.login-footer { grid-row: 3; align-self: end; margin: 0 0 7px; color: #8a928a; font-size: 9px; letter-spacing: .04em; }
.login-footer span { margin: 0 5px; color: #b7beb7; }
body.is-loading .login-card { opacity: .75; }
