/* ===== Harbinger auth skin — active only when <html class="hbg-auth"> ===== */
/* STEP-INDEPENDENT: works on the email step AND the password step. The wordmark    */
/* is a card ::before banner (not a child slot); Twenty's logo / "Welcome" heading / */
/* legal are hidden by skin.js via [data-hbg-hide] (never anything with a form field).*/

html.hbg-auth body {
  background: #05070c url("/brand/hero.png?v=2") center / cover no-repeat fixed !important;
}

/* reveal the hero: transparent the app-background wrappers (structural levels 1-5) */
html.hbg-auth #root,
html.hbg-auth #root > div,
html.hbg-auth #root > div > div,
html.hbg-auth #root > div > div > div,
html.hbg-auth #root > div > div > div > div { background-color: transparent !important; }

/* the card = the auth content container: white, centered, hugs content */
html.hbg-auth #root [class*="_content_"] {
  position: fixed !important;
  top: 50% !important; left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10 !important;
  width: 360px !important; max-width: 90vw !important;
  min-height: 0 !important; height: auto !important;
  padding: 30px 34px !important;
  display: flex !important; flex-direction: column !important;
  align-items: center !important; justify-content: center !important;
  gap: 6px !important;
  background-color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.30) !important;
}

/* Harbinger wordmark banner on top of every auth step (does not consume a slot) */
html.hbg-auth #root [class*="_content_"]::before {
  content: "" !important; display: block !important;
  width: 100% !important; height: 54px !important; flex: 0 0 auto !important;
  background: url("/brand/wordmark.png?v=2") center / contain no-repeat !important;
  margin-bottom: 12px !important;
}

/* children flow normally inside the card (native Twenty form styling untouched) */
html.hbg-auth #root [class*="_content_"] > div {
  background: transparent !important; border: none !important;
  position: static !important; box-shadow: none !important;
  width: 100% !important; margin: 0 !important; height: auto !important;
}

/* skin.js flags the Twenty logo block / "Welcome…" heading / legal block */
html.hbg-auth [data-hbg-hide] { display: none !important; }
html.hbg-auth a[href*="twenty.com"] { display: none !important; }

/* ── FIX 2026-08-04: the rules above made the auth form unusable ──────────────
   1) `border:none` on every direct child div also stripped the EMAIL/PASSWORD
      field borders -> invisible inputs on a white card (users could not see
      where to type). Restore a visible field border/background.
   2) skin.js only hides Twenty logo blocks that contain no form control, so on
      some steps Twenty logo survived NEXT TO the ::before wordmark = 2 logos.
      Hide any <img> inside the auth card outright; the wordmark is a ::before,
      so it is unaffected.                                                      */
html.hbg-auth #root [class*="_content_"] img { display: none !important; }

html.hbg-auth #root [class*="_content_"] input {
  border: 1px solid #d4d4d4 !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  color: #111 !important;
}
html.hbg-auth #root [class*="_content_"] input:focus {
  border-color: #b8912f !important;
  outline: none !important;
}

/* ── 2026-10-28 FinWealth (hgi.) sign-in: large Harbinger wordmark (same image as the invite email) ── */
html.hgi-auth a[href="/welcome"] { display:block !important; width:100%; height:100%; background:url(/brand/harbinger-logo-wide-v2.png) center/contain no-repeat; }
html.hgi-auth a[href="/welcome"] > div { display:none !important; }
html.hgi-auth a[href="/welcome"] ~ div { display:none !important; }
html.hgi-auth div:has(> a[href="/welcome"]) { width:min(300px,80vw) !important; height:164px !important; }
html.hgi-auth div:has(> div > a[href="/welcome"]) { width:100% !important; height:auto !important; display:flex; justify-content:center; }


/* ===== 2026-11-04 sign-in / invite background (all workspaces), v2 =====
   The hero (16:9) used `cover`, which cropped the top tagline and the bottom panel on wide windows.
   v2: the WHOLE picture is shown as large as the window allows (about 12px above and below), the left and right seams dissolve softly into a blurred copy of the same picture that fills the rest.
   A 16:9 picture cannot fill a wider window without cropping, so the blurred copy occupies the sides on wide windows.
   Selector .s1wc667 is the SignInUp background container in the current build (SignInUp-*.css); to undo, restore skin.css.bak-20261104-prebgv2 or delete this block. */
.s1wc667 { position: relative; isolation: isolate; background: #05070c !important; }
.s1wc667::before { content: ""; position: fixed; inset: -30px; z-index: -2; background: url(/harbinger-brand/login-hero.jpg) center / cover no-repeat; filter: blur(24px) brightness(.84); pointer-events: none; }
.s1wc667::after { content: ""; position: fixed; left: 50%; top: 50%; height: calc(100vh - 24px); height: calc(100dvh - 24px); aspect-ratio: 1672 / 941; transform: translate(-50%, -50%); z-index: -1; background: url(/harbinger-brand/login-hero.jpg) center / 100% 100% no-repeat; pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent), linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  mask-image: linear-gradient(to right, transparent, #000 56px, #000 calc(100% - 56px), transparent), linear-gradient(to bottom, transparent, #000 14px, #000 calc(100% - 14px), transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
/* ===== end sign-in background ===== */
