/* Independent local authentication surface; no external assets. */
:root { color-scheme: light; --ink: #10283F; --muted: #43596B; --brand: #10283F; --surface: #fff; --line: #647781; --focus: #1687B3; --error: #962727; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding: clamp(1rem, 5vw, 3rem); background: #edf3f5; color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
.login-card { width: 100%; max-width: 30rem; margin: 3vh auto; padding: clamp(1.25rem, 5vw, 2.5rem); background: var(--surface); border: 1px solid var(--line); border-radius: 1rem; }
.brand { color: var(--brand); font-weight: 700; letter-spacing: .06em; }
.login-card h1 { margin: .5rem 0; font-size: 2rem; line-height: 1.25; }
.login-card form { display: grid; gap: .625rem; margin-top: 1.5rem; }
.login-card label { font-weight: 650; }
.login-card input, .login-card button { min-width: 0; min-height: 44px; width: 100%; font: inherit; border-radius: .375rem; }
.login-card input { padding: .625rem; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.login-card button { margin-top: .625rem; padding: .625rem 1rem; border: 2px solid var(--brand); background: var(--brand); color: white; font-weight: 650; cursor: pointer; }
.login-card button:hover { background: #173D59; }
.login-card button:disabled { background: #465d60; border-color: #465d60; cursor: wait; }
.login-card input:disabled { background: #edf3f5; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
#feedback { color: var(--error); font-weight: 600; overflow-wrap: anywhere; }
#status { overflow-wrap: anywhere; }
.note { margin-top: 1.5rem; color: var(--muted); font-size: .9375rem; }
.login-card noscript { display: block; margin-top: 1rem; color: var(--error); }
.auth-module { display: none; }
.is-authenticated { padding: 0; }
.is-authenticated .login-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem; max-width: 1440px; margin: 0 auto; padding: .75rem 1rem; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.is-authenticated .login-card header { display: contents; }
.is-authenticated .login-card .sentra-logo { width: clamp(100px, 15vw, 150px); }
.is-authenticated .brand { display: none; }
.is-authenticated .auth-module { display: block; margin: 0; font-size: .875rem; font-weight: 700; color: var(--ink); }
/* Retain session announcements for assistive technology without stale visual loading copy. */
.is-authenticated #status { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.is-authenticated #feedback { grid-column: 1 / -1; margin: 0; }
.is-authenticated #feedback:empty { display: none; }
.is-authenticated #login-title, .is-authenticated #login-help, .is-authenticated #session-note { display:none; }
.is-authenticated #logout { width: auto; margin: 0; grid-column: 3; grid-row: 1; }
