/* The sign-in pages keep the look of the original WellSentra login (its login.css), plus what
   the user list needs. */
:root { color-scheme: light; font-family: "Segoe UI", system-ui, sans-serif; color: #163348; background: #f4f7fa; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; display: grid; place-items: center; padding: 24px; }
.login-panel { width: min(100%, 440px); background: #fff; border: 1px solid #d6e1e9; border-top: 4px solid #12778a; border-radius: 12px; padding: 36px; box-shadow: 0 12px 40px #12354a0c; }
/* The brand, and the languages at the right. */
.login-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.login-top .login-brand { min-width: 0; margin-bottom: 0; }
.login-languages { display: flex; flex: 0 0 auto; gap: 10px; font-size: 12px; white-space: nowrap; }
.login-languages a { color: #526978; text-decoration: none; }
.login-languages a:hover { color: #126b80; text-decoration: underline; }
.login-languages a[aria-current] { color: #163348; font-weight: 700; }
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.login-brand svg { width: 44px; fill: none; stroke: #12778a; stroke-width: 1.5; }
.login-brand strong { display: block; font-size: 23px; }
.login-brand span { display: block; color: #526978; font-size: 13px; }
h1 { font-size: 23px; line-height: 1.3; margin: 0 0 10px; }
p { color: #526978; line-height: 1.5; margin: 0 0 26px; font-size: 15px; }
p strong { color: #163348; }
a { color: #126b80; }
label { display: block; font-weight: 600; margin: 18px 0 7px; font-size: 14px; }
input:not([type=hidden]) { width: 100%; min-height: 46px; border: 1px solid #a5b8c5; border-radius: 6px; padding: 10px 12px; font: inherit; background: white; color: #163348; }
input:focus { outline: 3px solid #cbeaf1; border-color: #12778a; }
input[hidden] { display: none; }
button { width: 100%; min-height: 46px; margin-top: 24px; border: 0; border-radius: 6px; background: #126b80; color: white; font: inherit; font-weight: 650; cursor: pointer; }
button:hover { background: #0d5263; }
button:focus-visible { outline: 3px solid #8dd4e3; outline-offset: 3px; }
small { display: block; color: #526978; text-align: center; margin-top: 26px; font-size: 12px; }
.login-hint { display: block; margin-top: 7px; color: #526978; font-size: 13px; }
.login-errors { color: #a32631; font-size: 14px; }
.login-errors ul { padding-left: 20px; }
.validation-summary-valid { display: none; }

.local-banner { position: fixed; inset: 0 0 auto 0; z-index: 10; padding: 7px 12px; color: #ffffff; background: #b85c00; font-size: 13px; font-weight: 700; text-align: center; }

/* User list */
/* The column may never grow past the window: the table scrolls inside its own box instead. */
body.wide { place-items: start center; grid-template-columns: minmax(0, 1fr); }
body.wide .login-panel { width: min(100%, 1180px); min-width: 0; }
.table-scroll { overflow-x: auto; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.page-head p { max-width: 720px; }
.link-button { flex: 0 0 auto; padding: 9px 14px; border: 1px solid #a5b8c5; border-radius: 6px; font-weight: 600; font-size: 14px; text-decoration: none; }
.link-button:hover { background: #f1f7f9; }
.notice { padding: 10px 14px; color: #0d5263; background: #eaf6f8; border: 1px solid #bfe0e7; border-radius: 6px; }
.create-form { display: grid; grid-template-columns: minmax(0, 420px) auto; justify-content: start; align-items: end; gap: 14px; margin-bottom: 26px; padding: 4px 16px 18px; background: #f7f9fb; border: 1px solid #d6e1e9; border-radius: 8px; }
.create-form button { width: auto; margin-top: 0; padding: 0 22px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid #e2e7ec; text-align: left; vertical-align: middle; }
th { color: #334455; background: #f5f7f9; font-size: 13px; }
td.last-use { white-space: nowrap; font-variant-numeric: tabular-nums; }
td.actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
td.actions button { width: auto; min-height: 32px; margin: 0; padding: 0 12px; color: #126b80; background: #ffffff; border: 1px solid #a5b8c5; font-size: 13px; font-weight: 600; }
td.actions button:hover { background: #f1f7f9; }

@media (max-width: 480px) { body { padding: 14px; } .login-panel { padding: 26px 22px; } }
@media (max-width: 760px) { .create-form { grid-template-columns: 1fr; } .page-head { flex-direction: column; } th, td { white-space: nowrap; } }
