/* HEB's own Tower OS sign-in (heb.solosecure.tech/toweros; owner, 16 Nov 2026: "I need a HEB login now also only
   HEB users can login here"). Copied from the second customer's sheet: black and white with HEB's red as the accent
   (#DC291E, HEB's brand red as published; to confirm with HEB). Loaded only on HEB's host (src/lib/brandedPortal.ts).
   HEB's logo file is a white mark on a transparent background, so it sits on the black panel as it is. */
body.heb-brand {
  --cb-accent: #dc291e;
  --cb-on-accent: #ffffff;
  --cb-black: #000000;
  --cb-white: #ffffff;
  --cb-field: #0d0d0d;
  --cb-line: #2b2b2b;
  --cb-grey: #d4d4d4;
}
/* No orange: login.css and mission-control.css set the Solo orange on :root; these take it over. */
body.heb-brand {
  --orange: var(--cb-accent);
  --orange-d: #b71f16;
  --orange-bg: rgba(220, 41, 30, .14);
  --orange-ln: rgba(220, 41, 30, .5);
}
/* A dark area (as the VPS one): tokens first, then the places login.css paints white. */
body.heb-brand {
  --ink: #ffffff;
  --ink2: #d4d4d4;
  --ink3: #9a9a9a;
  --line: #2b2b2b;
  --line2: #161616;
  background: var(--cb-black);
  color: var(--cb-white);
}
body.heb-brand .btn,
body.heb-brand button.btn {
  background: var(--cb-accent) !important;
  color: var(--cb-on-accent) !important;
  border-radius: 999px;
}
body.heb-brand .btn:hover { filter: brightness(0.9); }
body.heb-brand .btn.ghost {
  background: var(--cb-field) !important;
  color: var(--cb-white) !important;
  border-color: var(--cb-line) !important;
}
body.heb-brand .btn.ghost:hover { border-color: var(--cb-accent) !important; }
body.heb-brand a { color: var(--cb-white); }
body.heb-brand .eyebrow,
body.heb-brand .sec-eyebrow { color: var(--cb-black) !important; } /* as on VPS: the logo leads the form */
body.heb-brand .bname { color: var(--cb-white); }
body.heb-brand .brand .bdiv { background: rgba(255, 255, 255, 0.35); }
body.heb-brand .side .bname { color: var(--cb-white) !important; }
body.heb-brand .side-in h2 em { color: var(--cb-white) !important; }

body.heb-brand input,
body.heb-brand select,
body.heb-brand textarea,
body.heb-brand .inp,
body.heb-brand .sigmode button,
body.heb-brand .code input,
body.heb-brand .qrbox,
body.heb-brand .sigcanvas {
  background: var(--cb-field) !important;
  color: var(--cb-white) !important;
  border-color: var(--cb-line) !important;
}
body.heb-brand input:focus,
body.heb-brand select:focus,
body.heb-brand textarea:focus { border-color: #8a8a8a !important; outline: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12) !important; }
body.heb-brand input::placeholder { color: #6e6e6e; }
body.heb-brand .role { background: #161616 !important; border-color: var(--cb-line) !important; }
/* Customer is the only tab here (no Solo Staff), so it takes the whole row. */
body.heb-brand .role { grid-template-columns: 1fr; }
body.heb-brand .role button { color: var(--cb-grey); }
body.heb-brand .role button.on,
body.heb-brand .tabs button.on,
body.heb-brand .seg button.on,
body.heb-brand .sigmode button.on {
  background: var(--cb-accent) !important;
  color: var(--cb-on-accent) !important;
  border-color: var(--cb-accent) !important;
  box-shadow: none !important;
}
body.heb-brand .chk input,
body.heb-brand .recovery-ack input { accent-color: var(--cb-accent); }
body.heb-brand .field label,
body.heb-brand label { color: var(--cb-grey); }
body.heb-brand .sub,
body.heb-brand p.sub { color: #a6a6a6; }

/* The English / Español switch at the top right: dark, the active one white. */
body.heb-brand .tos-lang { background: #161616 !important; border-color: var(--cb-line) !important; }
body.heb-brand .tos-lang button { background: transparent !important; color: var(--cb-grey) !important; }
body.heb-brand .tos-lang button.on { background: var(--cb-accent) !important; color: var(--cb-on-accent) !important; }
body.heb-brand .top a { color: var(--cb-grey) !important; }
body.heb-brand .top a:hover { color: var(--cb-white) !important; }

/* LOCSA's logo in place of Solo's (logo-white.png, swapped in by brandPortalHtml).
   login.css inverts the Solo logo for light backgrounds; LOCSA's white mark is already right on black. */
body.heb-brand .brand img,
body.heb-brand .mbrand img { width: 120px !important; height: auto !important; filter: none !important; }
body.heb-brand .mc-splash-name img { width: 110px !important; height: auto !important; filter: none !important; }

/* The side panel: black, with LOCSA's logo and the tower photo; the orange glow is Solo's, so it goes. */
body.heb-brand .side { background: var(--cb-black) !important; }
body.heb-brand .side-glow { display: none !important; }
body.heb-brand .side .brand img,
body.heb-brand .side .mbrand img { width: 190px !important; }

/* LOCSA's logo above the sign-in form: white on black. */
body.heb-brand .heb-form-logo { display: block; width: 150px; height: auto; margin-bottom: 36px; }

/* "Tower OS - Powered By Solo Secure": plain white, readable, under the tagline. */
body.heb-brand .heb-powered { margin-top: 10px; color: var(--cb-white); font-size: 15px; font-weight: 600; letter-spacing: 0.02em; }

/* The top row (language switch, Support) sits on one line. */
body.heb-brand .top { align-items: center; min-height: 40px; }
body.heb-brand .tos-lang { display: inline-flex; align-items: center; height: 34px; }
body.heb-brand .tos-lang button { height: 100%; display: inline-flex; align-items: center; }
body.heb-brand .top a { line-height: 34px; }

/* Short windows: the sign-in fits without scrolling. */
@media (max-height: 760px) {
  body.heb-brand .heb-form-logo { width: 104px; margin-bottom: 14px; }
  body.heb-brand .form h1 { margin-top: 0; }
  body.heb-brand .form .sub { margin-top: 6px; }
  body.heb-brand .btn { height: 44px; margin-top: 16px; }
  body.heb-brand .wrap { padding-block: 12px; }
  body.heb-brand .main { padding-block: 18px; }
  body.heb-brand .side { padding-block: 18px; }
}
/* Owner, 16 Nov 2026: "they don't need it over the image as it's on the top of the login". The logo stays above
   the sign-in form only; the photo panel keeps Tower OS, the tagline and Powered By Solo Secure. The logo file is a
   white mark on solid black, so where it does show it is screen-blended (no black box). */
/* (The logo is off the photo panel for every customer's sign-in: src/lib/brandedPortal.ts.) */
body.heb-brand .brand img,
body.heb-brand .mbrand img,
body.heb-brand .heb-form-logo,
body.heb-brand .mc-splash-name img { mix-blend-mode: screen; }
