:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #15130f;
  background: #faf9f7;
  color-scheme: light;
  --surface: #fff;
  --surface-2: #f5f4f1;
  --text: #15130f;
  --text-2: #4a4741;
  --muted: #6e685f;
  --line: #e8e6e1;
  --line-strong: #dedbd4;
  --brand: #3f5c7a;
  --ring: 0 0 0 3px rgba(63, 92, 122, .22);
  --shadow: 0 18px 48px rgba(20, 18, 15, .08);
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: grid; place-items: center; padding: 24px; background: var(--surface-2); color: var(--text); }
main { width: min(100%, 500px); padding: 42px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.brand-link { display: block; width: fit-content; margin: 0 auto; border-radius: 4px; line-height: 0; }
.brand-logo { display: block; width: 215px; max-width: 100%; height: auto; }
.eyebrow { margin: 34px 0 0; color: var(--brand); font-size: 10px; letter-spacing: 1.8px; }
h1 { margin: 0 0 12px; font-size: 34px; line-height: 1.12; letter-spacing: -1px; font-weight: 700; }
form { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 9px; }
.autofill-username { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }
label { display: block; margin: 26px 0 9px; color: var(--text-2); font-size: 12px; font-weight: 700; }
.access-row { display: flex; align-items: stretch; justify-content: center; gap: 10px; max-width: 100%; margin-inline: auto; }
input:not(.autofill-username) { width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 11px 12px; background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.access-row input:not(.autofill-username) { width: 260px; min-width: 0; }
input:not(.autofill-username):hover { border-color: #c9c5bc; }
input:not(.autofill-username):focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.primary-action { display: inline-flex; align-items: center; justify-content: center; align-self: flex-start; width: fit-content; min-height: 44px; margin-top: 16px; padding: 11px 18px; border: 1px solid var(--text); border-radius: 7px; background: var(--text); color: var(--surface); font: inherit; font-size: 13px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; transition: background .18s, border-color .18s, opacity .18s, transform .18s; }
.access-row .primary-action { margin-top: 0; flex: 0 0 auto; }
.primary-action:hover { background: #2b2925; border-color: #2b2925; transform: translateY(-1px); }
.primary-action:disabled { opacity: .55; cursor: wait; }
.note { margin: 18px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; text-align: center; }
:focus-visible { outline: none; box-shadow: var(--ring); }
#access-error { color: #d84a3f; }
@media (max-width: 450px) { main { padding: 28px; border-radius: 12px; } h1 { font-size: 30px; } body { padding: 16px; } .access-row { width: 100%; } .access-row input:not(.autofill-username) { width: auto; flex: 1 1 auto; min-width: 0; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }
@media (max-width:450px) { main { min-width:0; } .brand-link { max-width:100%; } h1 { font-size:clamp(24px,7.5vw,30px); overflow-wrap:anywhere; } }
@media (max-height:520px) { body { align-items:start; } }
