/* The sign-in screen uses the existing auth form and design tokens. */
body.bh-entry {
  margin:0;
  min-height:100vh;
  color:var(--ink);
  background:var(--bg);
  --text:var(--ink);
  --panel:var(--surface);
  --theme-surface:var(--surface);
  --theme-overlay:var(--overlay);
  font:14px/1.5 "Segoe UI Variable Text","Segoe UI",system-ui,sans-serif;
}
body.bh-entry *, body.bh-entry *::before, body.bh-entry *::after {box-sizing:border-box}
body.bh-entry #authEntry {
  min-width:0;
  background:radial-gradient(circle at 20% 10%,var(--blue-bg) 0,transparent 34%),var(--bg);
}
body.bh-entry .auth-card-v060b {background:var(--surface);border-color:var(--line);box-shadow:var(--shadow)}
body.bh-entry :is(h1,h2,p) {margin-block:0}
body.bh-entry :is(button,input) {font:inherit}
body.bh-entry input {
  width:100%;
  min-width:0;
  min-height:42px;
  color:var(--ink);
  background:var(--subtle);
  border:1px solid var(--line);
  border-radius:9px;
  line-height:1.45;
}
body.bh-entry :is(button:not(.auth-login-eye-v060b),.auth-login-link-v060b), #authBootstrapScreen button {
  border:1px solid transparent;
  border-radius:9px;
  padding:10px 14px;
  color:var(--primary-ink);
  background:var(--primary);
  font:inherit;
  font-weight:650;
  cursor:pointer;
}
body.bh-entry :is(button.secondary,a.secondary) {color:var(--ink);background:var(--raised);border-color:var(--line)}
body.bh-entry #authLoginSubmit {border-radius:10px;padding:10px 12px;font-weight:400}
body.bh-entry button:disabled {opacity:.6;cursor:default}
body.bh-entry :is(button,input,a):focus-visible, #authBootstrapScreen button:focus-visible {outline:3px solid var(--focus);outline-offset:3px}

#authBootstrapScreen {
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  padding:20px;
  place-items:center;
  color:var(--ink);
  background:var(--bg);
  font:600 16px/1.45 system-ui,sans-serif;
}
#authBootstrapScreen [hidden], #authBootstrapScreen[hidden], #authEntry[hidden] {display:none!important}
#authBootstrapScreen:has([data-auth-retry]) #entrySpinner {display:none}
.bh-auth-bootstrap-card {display:grid;justify-items:center;gap:14px;text-align:center}
.bh-auth-bootstrap-card img {width:58px;height:58px;border-radius:15px}
.bh-auth-bootstrap-spinner {width:26px;height:26px;border:3px solid var(--line);border-top-color:var(--blue);border-radius:50%;animation:bh-auth-spin .8s linear infinite}
@keyframes bh-auth-spin {to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.bh-auth-bootstrap-spinner{animation:none}}
html.bh-workspace-loading body>:not(#authBootstrapScreen) {visibility:hidden!important;pointer-events:none}

body.bh-entry .ops-auth-entry {
  width:min(760px,calc(100% - 32px));
  margin:clamp(20px,6vh,54px) auto;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
body.bh-entry .ops-panel-head {padding:16px 20px;border-bottom:1px solid var(--line)}
body.bh-entry .ops-panel-head h2 {font-size:20px}
body.bh-entry .ops-panel-body {padding:20px}
body.bh-entry .ops-auth-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin:0;
}
body.bh-entry .ops-field {display:grid;align-content:start;gap:7px;font-weight:650}
body.bh-entry .ops-field input {padding:10px 12px}
body.bh-entry :is(.ops-auth-help,.auth-error-v060b) {grid-column:1/-1}
body.bh-entry .ops-auth-help {color:var(--muted);font-size:12px}
body.bh-entry .ops-auth-form>button {justify-self:start}
body.bh-entry .ops-auth-actions {margin-top:14px;display:flex;flex-wrap:wrap;gap:10px}
body.bh-entry .ops-auth-notice {padding:13px 15px;background:var(--blue-bg);border:1px solid var(--blue-border);border-radius:11px}
body.bh-entry .ops-auth-notice.tone-warning {background:var(--warning-bg);border-color:var(--warning-border)}
body.bh-entry .ops-notice-icon {display:inline-flex;width:18px;color:var(--blue)}
body.bh-entry .auth-workplace-confirm-v060b .auth-confirm-actions-v060b {display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
@media(max-width:700px) {
  body.bh-entry .ops-auth-form {grid-template-columns:1fr}
  body.bh-entry .ops-field input {font-size:16px;min-height:44px}
}
