/* Wave 2: login page, account area in the title bar, Users and Account pages. Same tokens. */

/* login page: the title bar and one card */
.login-page { min-height: 100vh; }
.login-bar { height: var(--hr-titlebar-h); justify-content: center; }
.login-bar .mark { position: static; transform: none; }
.login-main { display: flex; flex-direction: column; align-items: center; padding: 64px 24px; gap: 12px; }
.login-panel { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; }
.login-panel h1 { font-size: var(--hr-fs-title); }
.login-panel form { display: flex; flex-direction: column; gap: 12px; }
.login-panel .input { font-family: var(--hr-sans); font-size: var(--hr-fs-body); }
.login-msg { min-height: 1.4em; font-size: 12.5px; }
.login-msg.bad { color: var(--hr-err); }
.login-msg.ok { color: var(--hr-ok); }
.login-foot { max-width: 420px; text-align: center; }

/* who is logged in, in the title bar */
.topbar .who { display: flex; align-items: center; gap: 8px; white-space: nowrap; color: var(--hr-titlebar-text); }
.topbar .who b { color: var(--hr-titlebar-text-strong); font-weight: 500; }
.topbar .who .role { border: 1px solid var(--ui-on-dark-edge); border-radius: var(--hr-r-tag); padding: 0 6px; }
.topbar .who a, .topbar .who button { color: var(--hr-titlebar-text-strong); background: transparent; border: 0; font: inherit; cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--ui-on-dark-edge); text-underline-offset: 3px; padding: 0; }
.topbar .who a:focus-visible, .topbar .who button:focus-visible { box-shadow: var(--hr-focus); border-radius: 2px; }
.topbar .right { display: flex; align-items: center; gap: 16px; min-width: 0; max-width: calc(50% - 90px); justify-content: flex-end; }
.topbar .right .jobind { max-width: none; min-width: 0; overflow: hidden; }

/* session ended: a card over the page, not a browser dialog */
.session-over { position: fixed; inset: 0; z-index: 50; background: color-mix(in srgb, var(--hr-ink) 28%, transparent);
  display: flex; align-items: center; justify-content: center; }
.session-over .panel { max-width: 440px; }

/* users page */
table.users td { vertical-align: middle; }
table.users td.acts { white-space: nowrap; text-align: right; }
table.users td.acts .btn { height: 28px; padding: 0 12px; }
.users-new { display: grid; grid-template-columns: minmax(0, 1fr) 140px minmax(0, 1fr); gap: 12px; align-items: end; margin-top: 12px; }
.users-new .input { font-family: var(--hr-sans); font-size: var(--hr-fs-body); }
.temp-pw { font-family: var(--hr-mono); font-size: var(--hr-fs-mono); background: var(--hr-panel); border: 1px solid var(--hr-line); border-radius: var(--hr-r-tag); padding: 1px 6px; }
.confirm-inline { margin-top: 12px; padding: 12px 16px; border: 1px solid var(--hr-line); border-radius: var(--hr-r-btn); background: var(--hr-panel); }
.confirm-inline.danger { border-color: var(--ui-err-edge); background: var(--hr-err-tint); }
.account-form { display: grid; grid-template-columns: 180px minmax(0, 320px); gap: 12px 16px; align-items: center; margin-top: 12px; }
.account-form label { font-size: var(--hr-fs-label); font-weight: 500; color: var(--hr-ink-2); }
.account-form .input { font-family: var(--hr-sans); font-size: var(--hr-fs-body); }
.jb-user { color: var(--hr-muted); }
