/* ============================================================================================
   LOOK-1 · PIECE D — Super User, Investor, the sign-in family (login/forgot/reset/password) and
   offline, wearing the owner's design tokens/parts/wordmark/icons from piece A
   (/look1-tokens.css, /look1-mark.js, /look1-icons.js; all values read from the design-ref).
   Link order on these pages: page CSS … motion.css → look1-tokens.css → this file.
   Only these seven pages link this file; the shared app.css/pages.css/ui2.css/motion.css are untouched.
   MOTION-ALL stays: nothing here re-animates or removes motion.
   ============================================================================================ */

/* ---- 1. surfaces / type: the tokens bridge the old --nawtt-* names already, these are the design's
   differences on the parts these pages use (square 2px corners, flat panel cards, Manrope everywhere). ---- */
body.login-body, body.offline, .pg-auth { background: var(--canvas); color: var(--ink); font-family: var(--latin); }
.login-card {
  max-inline-size: 430px; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--look1-radius); box-shadow: none; padding: var(--look1-space-28) var(--look1-space-24);
}
.login-card h1, .login-card h2 { font-weight: 800; letter-spacing: -0.01em; }
.login-card__eyebrow, .login-card .eyebrow, .eyebrow {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
}
.login-card__sub, .login-card__foot { color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--look1-radius); box-shadow: none; }
.card__head { border-block-end: 1px solid var(--line); }     /* the design separates a head with one line, nothing else */

/* ---- 2. buttons / inputs / focus: the design's parts (primary burgundy, outline, 2px gold focus) ---- */
.btn { border-radius: var(--look1-radius); font-weight: 700; }
.btn--primary { background: var(--burg); border-color: var(--burg); color: #fff; }
.btn--primary:hover { background: var(--burg-d); border-color: var(--burg-d); }
.btn--ghost { background: var(--panel); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.input { border-radius: var(--look1-radius); border: 1px solid var(--line); background: var(--panel); color: var(--ink); }
.input:focus { border-color: var(--ink); }
.field__label { font-weight: 700; }
.field__hint, .card__hint, .pg-hint { color: var(--muted); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- 3. sign-in family: no blank band above the card + ONE-LINE "Sign in to nawtt" lockup ------------- */
/* The card sits high in the viewport instead of being vertically centred (the current centre left a
   ~220 px blank band above the card at 320-1280). Shared shell CSS is anim-h's; this is the page-level fix. */
.pg-auth { place-items: start center; padding-block: clamp(24px, 6vh, 60px) var(--look1-space-16); }
.login-card { margin-block-start: 0; }
/* the card headings never break inside a word and the sign-in title always stays on one line */
.login-card h1 { font-size: clamp(1.05rem, 0.9rem + 0.9vw, 1.5rem); white-space: nowrap; line-height: 1.2;
  overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.login-card h2, .card__title, .page-head h1, .page-head h2 { overflow-wrap: normal; word-break: keep-all; hyphens: none; }
/* the lockup: lowercase "nawtt" in Baloo 2 800 + the design's core mark at 11 px, never a huge SVG, never a wrap */
.login-card .wordmark, .login-card .wm, .card-brand {
  display: inline-flex; align-items: center; gap: 2px; font-family: var(--wordmark); font-weight: 800;
  font-size: 1.1em; line-height: 1; text-transform: lowercase; letter-spacing: 0; white-space: nowrap;
  color: var(--accent-ink); direction: ltr;
}
.login-card .wordmark .mk, .login-card .wm .mk, .card-brand .mk {
  display: inline-block; inline-size: 11px; block-size: 11px; margin-block-start: 0.12em; flex: 0 0 11px;
}
.login-card .wordmark .mk svg, .login-card .wm .mk svg, .card-brand .mk svg,
.login-card .wordmark .mk > svg, .card-brand .mk > svg {
  display: block; inline-size: 11px; block-size: 11px; width: 11px; height: 11px;
}
.card-brand { margin-block-end: var(--look1-space-6); display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--wordmark); font-weight: 800; text-transform: lowercase; letter-spacing: 0;
  white-space: nowrap; color: var(--accent-ink); line-height: 1; }
.card-brand .wm, .card-brand .wm .mk { display: inline-flex; align-items: center; }
.card-brand .mk, .card-brand .mk svg { inline-size: 11px; block-size: 11px; width: 11px; height: 11px; }

/* ---- 5. icons mounted by look1-pages-d.js (design set: 24-grid, stroke 1.7, square caps, miter joins) ---- */
.btn .ic { inline-size: 18px; block-size: 18px; margin-inline-end: 6px; flex: 0 0 auto; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 2px; }
.card__head .ic, .login-lockup .ic { inline-size: 20px; block-size: 20px; }
/* the offline retry button's icon + the sign-in card's mark share the accent colour */
.login-card .ic, .offline .card .ic { color: var(--accent-ink); }

/* ---- 6. investor: its own --inv-* token block maps onto the same design palette (surfaces, lines, ink, type) ---- */
body.inv {
  --inv-brand: var(--burg); --inv-brand-soft: var(--tint); --inv-bg: var(--canvas); --inv-surface: var(--panel);
  --inv-ink: var(--ink); --inv-muted: var(--muted); --inv-line: var(--line); --inv-row: var(--tint);
  --inv-green: var(--green); --inv-danger: var(--burg-d); --inv-grid: var(--line); --inv-font: var(--latin);
}
body.inv h1, body.inv h2, body.inv h3 { font-weight: 800; letter-spacing: -0.01em; }
body.inv .card, body.inv .panel, body.inv .tile { border-radius: var(--look1-radius); box-shadow: none; }

/* ---- 7. the design's mark/pulse stay still for reduced motion (MOTION-ALL rules untouched) ---- */
@media (prefers-reduced-motion: reduce) {
  .btn, .card, .topbar { transition: none !important; }
}

/* ---- 8. investor: the page's own button/tile classes get the same 2px design corners + Manrope 800 heads ---- */
body.inv .btn, body.inv button, body.inv .tile, body.inv .kpi, body.inv .panel { border-radius: var(--look1-radius); }
body.inv button { font-family: var(--latin); font-weight: 700; }
body.inv .muted, body.inv .pg-hint { color: var(--muted); }

/* ---- 9. responsive polish (reviewer RED): no word broken inside a button/title and nothing wider than
   the screen at 320/390/430/1280; tokens/parts/icons/motion unchanged -------------------------------- */
.btn { max-inline-size: 100%; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.btn .btn__label, .btn__label { white-space: normal; overflow-wrap: normal; word-break: keep-all; }
.btn .ic { flex: 0 0 auto; }
body, main, .card, .login-card, .page-head, .card__body { min-inline-size: 0; }
.card { max-inline-size: 100%; }
.login-card { max-inline-size: min(100%, 430px); }
.table-wrap, .table { max-inline-size: 100%; }
.pg-form, .field, .field .input { min-inline-size: 0; max-inline-size: 100%; }
.pg-form .input, .field .input { inline-size: 100%; box-sizing: border-box; }
img, svg { max-inline-size: 100%; }
@media (max-width: 360px) {
  .btn { font-size: 0.8rem; padding-inline: 10px; }
  .login-card { padding: var(--look1-space-18) var(--look1-space-16); }
  .login-card h1 { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .card, .login-card, .pg-auth { transition: none !important; animation: none !important; }
}

/* ---- 10. narrow-screen labels (reviewer RED): never break a word in half in a tab/header label; the tab
   bar and header are shared-shell CSS (anim-h's) — these are page-level overrides so the seven pages meet the
   no-wrapped-words rule at 320/390/430. Nothing here changes ids/handlers/motion. ---------------- */
.topbar .tab, #tabbar .tab, .tabbar .tab, .tabbar__more, .tabbar .tab__label,
.tabbar .tab__ic, .topbar .brand, .topbar .brand .wm { overflow-wrap: normal; word-break: keep-all; hyphens: none; }
.topbar .brand .wm { white-space: nowrap; }
/* the dark header is owned by the shared look1-shell.css pass-10 rule (7 px header core mark + 12-16 px gap to the
   role badge); no page-level header-mark size here, so the shared rule always wins. The sign-in/card lockups below stay
   exactly 11x11 px (design rule for the card marks). */
@media (max-width: 360px) {
  .tabbar .tab, .tabbar__more { font-size: 0.62rem; line-height: 1.15; padding-inline: 3px; gap: 2px; }
  .tabbar .tab__label, .tabbar .tab .tab__label { font-size: 0.62rem; letter-spacing: 0; }
  .tabbar .tab .tab__ic svg, .tabbar__more .tab__ic svg { width: 18px; height: 18px; }
}
/* ===== WEB-FIX-1 W1 (patch-b) — tables at tablet width never squeeze a word ============================
   At 761-1200 px the app.css large-text rule `.btn { white-space: normal }` (app.css:2583) plus the table
   cells' `overflow-wrap: anywhere` (pages.css:38) let a squeezed action column break "Approve"/"Reject" one
   letter per line, and the operator People Name column do the same. Keep every cell and button on one line
   and let the existing .table-wrap scroll sideways instead of destroying the words. 390 px phone layout
   (cards) is untouched. */
@media (min-width: 761px) and (max-width: 1200px) {
  /* words wrap at spaces only: a squeezed column never breaks a name letter by letter */
  .table-wrap { overflow-x: auto; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
  .table th, .table td { padding-block: 8px; padding-inline: 8px; overflow-wrap: normal; word-break: normal; white-space: normal; }
  .table td .table__main, .table td .table__meta { white-space: normal; overflow-wrap: normal; word-break: normal; }
  /* figures and dates stay on one line; the action cell and its buttons never break inside a word */
  .table td.num, .table th.num, .table td.amount-cell { white-space: nowrap; }
  .table th.actions, .table td.actions { white-space: nowrap; }
  .table td .row-actions { flex-wrap: nowrap; }
  .table .btn, .table .btn--sm { flex: 0 0 auto; white-space: nowrap; overflow-wrap: normal; word-break: keep-all; line-height: 1.1; }
  /* no sticky column at tablet width: sticky first/last cells would cover the neighbour column while the wrapper scrolls;
     the whole row scrolls together instead, so every column keeps its own space (reviewer W1-1) */
  .table-wrap .table th:first-child, .table-wrap .table td:first-child { position: static; background: transparent; }
  /* wide tables: no sticky overlay (the reviewer's W1-1: it covered the Outstanding column); the table-wrap scrolls
     sideways instead, so every column keeps its own space and the action buttons stay one line inside their cell */
}

/* reviewer 2026-11-12 (owner): sign-in pages - all normal text pitch black (light) / white (dark), no grey */
body.login-body, body.password { --muted: var(--ink); --nawtt-muted: var(--ink); color: var(--ink); }
body.login-body p, body.login-body label, body.login-body small, body.login-body .lead, body.password p, body.password label, body.password small { color: var(--ink); }

/* OWNER 2026-11-12: tidy sign-in pages (login, forgot, reset) - logo centred on top, plain title, calm labels, one clean
   focus border, even 8/16/24 spacing; on phones no card frame. Static (no motion). */
body.login-body .pg-auth { min-block-size: 100dvh; display: grid; align-content: start; justify-items: center; padding: 48px 16px 32px; box-sizing: border-box; }
body.login-body .login-card { inline-size: 100%; max-inline-size: 400px; box-sizing: border-box; padding: 32px 28px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); box-shadow: none; }
body.login-body .login-card__logo, body.login-body .card-brand { display: flex; justify-content: center; margin: 0 0 20px; }
body.login-body .login-card__head { text-align: center; margin: 0 0 24px; }
body.login-body .login-card__head h1, body.login-body .login-card h1 { margin: 0 0 6px; font-size: 1.5rem; line-height: 1.25; font-weight: 800; text-align: center; }
body.login-body .login-card__sub { margin: 0; font-size: .95rem; line-height: 1.45; }
body.login-body .login-card__eyebrow { display: none; }
body.login-body .pg-form { display: grid; gap: 16px; }
body.login-body .field { margin: 0; }
body.login-body .field__label { display: block; margin: 0 0 6px; font-size: .9rem !important; font-weight: 700; text-transform: none !important; letter-spacing: 0 !important; }
body.login-body .input { box-sizing: border-box; inline-size: 100%; block-size: 48px; padding: 0 14px; font-size: 1rem; border: 1px solid #B9BCB1; border-radius: 8px; background: #fff; outline: none; box-shadow: none; }
body.login-body .input:focus, body.login-body .input:focus-visible { border-color: var(--burg); box-shadow: 0 0 0 1px var(--burg); outline: none; }
body.login-body .btn--block, body.login-body #signInButton { block-size: 48px; border-radius: 8px; margin-block-start: 8px; font-size: 1rem; }
body.login-body .login-card__foot { margin: 16px 0 0; text-align: center; font-size: .85rem; line-height: 1.45; }
body.login-body .login-card__foot a { font-size: .95rem; font-weight: 700; }
@media (max-width: 560px) {
  body.login-body .pg-auth { padding: 32px 20px 24px; }
  body.login-body .login-card { border: 0; background: transparent; padding: 0; }
}
