/* Staff hub sign-in (b-tch-login). BUILD-STANDARDS: split layout, clamp() tokens, light default with a remembered dark toggle, 44px targets, AA. The client portal photo hero is unchanged. */
body.auth-hub {
  --login-pane: min(28rem, 42vw);
  --ink: #111111;
  --accent: #FF3400;
}
html:has(body.auth-hub),
body.auth-hub,
body.auth-hub.auth-split-page,
body.auth-hub #app,
body.auth-hub .auth-split {
  min-height: 100vh;
  min-height: 100dvh;
}
body.auth-hub,
body.auth-hub.auth-split-page,
body.auth-hub #app,
body.auth-hub .auth-split {
  background: var(--card, #ffffff);
  color: var(--text, var(--ink));
  margin: 0;
}
body.auth-hub #app { padding: 0; max-width: none; }
body.auth-hub .auth-split {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
body.auth-hub .auth-panel {
  position: relative;
  display: flex;
  align-items: center;
  align-self: stretch;
  width: var(--login-pane);
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--card, #ffffff);
  padding: calc(var(--space-l) + env(safe-area-inset-top)) var(--space-l) calc(var(--space-l) + env(safe-area-inset-bottom));
}
body.auth-hub .auth-panel-inner { width: 100%; max-width: none; }
body.auth-hub .auth-panel-inner > .logo { display: none; } /* the wordmark lives in the brand panel */
body.auth-hub .auth-intro { margin: 0 0 var(--space-l); }
body.auth-hub .auth-intro h1 { margin: 0; }
body.auth-hub .auth-intro .muted { margin: var(--space-2xs, 0.5rem) 0 0; }
body.auth-hub .auth-theme {
  position: absolute;
  top: max(var(--space-s), env(safe-area-inset-top));
  right: max(var(--space-s), env(safe-area-inset-right));
  z-index: 1;
}
body.auth-hub .auth-hero-hub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-xl) var(--space-l);
  flex: 1 1 auto;
  background-color: #111111;
  background-image: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 52, 0, 0.2), transparent 70%);
  color: #f2f2f2;
  overflow: hidden;
}
body.auth-hub .auth-hero-hub::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #FF3400;
  z-index: 1;
}
body.auth-hub .auth-hero-brand {
  position: relative;
  z-index: 1;
  width: min(28rem, 80%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-m);
}
body.auth-hub .auth-hero-brand > img {
  width: 100%;
  height: auto;
  display: block;
}
body.auth-hub .auth-hero-strap {
  margin: 0;
  color: #d4d0d0;
  font-size: var(--step-0);
  line-height: 1.4;
}
body.auth-hub .auth-hero-brands { width: 100%; }
body.auth-hub .auth-hero-brand-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-s) var(--space-m);
}
body.auth-hub .auth-hero-brand-list .brand-mark { display: flex; width: 100%; justify-content: center; }
body.auth-hub .auth-hero-brand-list .brand-logo {
  height: 24px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}
/* The panel is always near-black, so only the on-dark (light) wordmarks show. */
body.auth-hub .auth-hero-brand-list .brand-mark .logo-on-light { display: none; }
body.auth-hub .auth-hero-brand-list .brand-mark .logo-on-dark { display: block; }
body.auth-hub .auth-hero-brand-list .brand-mark picture.logo-on-dark { display: flex; width: 100%; justify-content: center; }
body.auth-hub .auth-hero-brand-list .brand-mark-icon { display: none; }
body.auth-hub .auth-forgot { margin-top: var(--space-s); font-size: var(--step--1); }
body.auth-hub .auth-forgot a { color: var(--accent-text, #C42700); min-height: var(--tap); display: inline-flex; align-items: center; }

html.theme-dark body.auth-hub,
html.theme-dark body.auth-hub.auth-split-page,
html.theme-dark body.auth-hub #app,
html.theme-dark body.auth-hub .auth-split,
html.theme-dark body.auth-hub .auth-panel {
  background: var(--card, #1a1a1a);
  color: var(--text, #f2f2f2);
}
html.theme-dark body.auth-hub .auth-hero-hub {
  background-color: #111111;
  background-image: radial-gradient(ellipse 70% 55% at 50% 42%, rgba(255, 52, 0, 0.28), transparent 70%);
}

@media (min-width: 900px) {
  body.auth-hub .auth-split { flex-direction: row; }
}
@media (max-width: 899px) {
  body.auth-hub .auth-split { flex-direction: column; }
  body.auth-hub .auth-hero-hub {
    order: -1;
    min-height: 0;
    flex: 0 0 auto;
    padding: calc(var(--space-m) + 3px) var(--space-l) var(--space-m);
  }
  body.auth-hub .auth-hero-brand { width: min(18rem, 80%); gap: var(--space-s); }
  body.auth-hub .auth-hero-brand-list { gap: var(--space-xs) var(--space-s); }
  body.auth-hub .auth-hero-brand-list .brand-logo { height: 20px; }
  body.auth-hub .auth-panel {
    width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    align-items: flex-start;
  }
}
