/* ================= Organization onboarding screens =================
   Extends login.html's visual system: reuses login.css classes or builds from its tokens, and
   loads after it. Loads no application stylesheet (sys_design-system.md §14a). Markup: five
   sibling panels in login.html's #authCard; JS/features/org-onboarding.js is the only script. */

/* ---------- Screen 1 — the optional Organization Token field on Create Account ---------- */

/* Label and help button are two elements, never a <label> wrapping the button, which would
   fold the button's name into the field's (accessible-names.py) and focus the input on click.
   Typography is restated because this row's parent isn't .lg-field. */
.lg-org-token-head{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.lg-org-token-head label{
  font-family:var(--mono); font-size:var(--a-fs-11); font-weight:600;
  letter-spacing:.09em; text-transform:uppercase;
  color:var(--text-2);
}
.lg-org-token-optional{
  font-style:normal; font-weight:400; text-transform:none; letter-spacing:normal;
  font-size:var(--a-fs-11); color:var(--text-3);
}
/* A keyboard-reachable toggle, not a hover tooltip: login.html has no floating-UI system, so
   it reveals a real `.lg-hint` paragraph like the page's other hints. */
.lg-org-token-help{
  display:inline-flex; align-items:center; justify-content:center;
  /* Containing block for the target-expanding ::after below, nothing else. */
  position:relative;
  width:16px; height:16px; padding:0; flex:0 0 auto;
  border-radius:50%; border:1px solid var(--border-strong);
  background:var(--surface-2); color:var(--text-2);
  font-family:var(--mono); font-size:var(--a-fs-11); line-height:var(--a-lh-ctl); font-weight:700;
  cursor:pointer;
}
/* Pointer target is 24px, the circle stays 16px (sys_design-system.md). `inset` resolves
   against the padding box (box-sizing:border-box is global, login.css), so -5px on a 14px
   padding box gives 24x24 (-4px measured 22x22). No pointer-events:none: it must be hit-testable. */
.lg-org-token-help::after{
  content:''; position:absolute; inset:-5px; border-radius:50%;
}
.lg-org-token-help:hover{ border-color:var(--blue); color:var(--blue-text); }
.lg-org-token-help:focus-visible{ outline:2px solid var(--ring); outline-offset:2px; }
.lg-org-token-tip{
  margin-top:4px;
}
.lg-field input.lg-org-token-input{
  text-transform:uppercase;
}

/* ---------- shared: a cautionary note and its inline actions (screens 4 and 5; screen 7's
   error uses .lg-note-warn below instead, being a refusal rather than a caution) ---------- */

.lg-org-warn-actions{
  display:flex; flex-wrap:wrap; gap:14px 18px; margin-top:10px;
}

/* Departs from `.lg-note`'s blue: a refusal reads as a caution, mirroring `.lg-status.err`
   (red means a refusal). */
.lg-note-warn{
  padding:14px 16px;
  border-radius:var(--r-sm);
  background:var(--red-soft);
  border:1px solid var(--red-line);
  border-left:3px solid var(--red);
  font-size:var(--a-fs-ctl); line-height:var(--a-lh-ui); color:var(--text);
}

/* ---------- Screen 2 — How would you like to use STRIDE? ---------- */

.lg-org-choice-grid{
  display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px;
  margin-top:4px;
}
/* Below 420px the two tiles stack — the same width login.css already treats as single-column
   for this card (its .lg-dest-grid phone breakpoint). */
@media (max-width: 420px){
  .lg-org-choice-grid{ grid-template-columns:1fr; }
}
.lg-org-invite-note{
  margin-top:14px;
  display:flex; flex-wrap:wrap; align-items:center; gap:10px 14px;
}

/* ---------- Screen 4 — Create Organization, Review ---------- */

.lg-org-mark-row{
  display:flex; align-items:center; gap:12px; margin-top:4px;
}
/* The same 30x28 slot every mark in this product draws in (team-brand.js's TEAM_BRAND_W/H) — a
   different-shaped preview would misrepresent what the corner will actually show. */
.lg-org-mark-preview{
  width:30px; height:28px; flex:0 0 auto;
  border-radius:var(--r-sm); border:1px solid var(--border);
  background-color:var(--surface-2);
  background-repeat:no-repeat; background-position:center; background-size:contain;
}
.lg-org-mark-preview[hidden]{ display:none; }
.lg-org-mark-pick{ cursor:pointer; }

.lg-org-review{
  margin-top:18px; padding:14px 16px;
  border-radius:var(--r-sm); border:1px solid var(--border);
  background:var(--surface-2);
}
.lg-org-review-h{
  margin:0 0 8px; font-family:var(--display); font-weight:700; font-size:var(--a-fs-ctl);
  color:var(--text);
}
.lg-org-review-row{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:4px 0; font-size:var(--a-fs-ctl); color:var(--text-2);
}
.lg-org-review-row + .lg-hint{ margin-top:8px; }

/* ---------- Screen 5 — Organization Created ---------- */

.lg-form #orgCreatedBody{ display:block; margin-top:4px; color:var(--text-2); }
