/* Brand source: LSH Portal/Styles/app.tailwind.css; assets/fonts are local only. */
:root {
  color-scheme: light;
  --color-primary: #177419;
  --color-primary-hover: #125e14;
  --color-primary-dark: #0d3d0e;
  --color-primary-light: #edf6ed;
  --color-surface: #ffffff;
  --color-background: #f3f2f1;
  --color-text: #1f2937;
  --color-muted: #64706c;
  --color-border: #e1e6e1;
  --color-error-bg: #fef2f2;
  --color-error-text: #991b1b;
  --color-error-border: #fecaca;
  --color-panel-text: #ffffff;
  --color-panel-muted: rgba(255, 255, 255, .76);
  --color-panel-line: rgba(255, 255, 255, .16);
  --color-panel-tint: rgba(255, 255, 255, .08);
  --color-focus: rgba(23, 116, 25, .16);
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px;
  --radius-control: 10px;
  --radius-card: 20px;
  --shadow-card: 0 16px 56px rgba(13, 61, 14, .07), 0 2px 8px rgba(31, 41, 55, .03);
  --font-sans: 'Inter', 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: var(--s-8); background: var(--color-background); color: var(--color-text); font: 14px/1.5 var(--font-sans); -webkit-font-smoothing: antialiased; }
main { width: 100%; max-width: 420px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); padding: var(--s-8); box-shadow: var(--shadow-card); }
h1 { margin: 0 0 var(--s-2); font-size: 26px; line-height: 1.2; letter-spacing: -.035em; font-weight: 650; }
.client { margin: 0 0 var(--s-6); color: var(--color-muted); font-size: 13px; }
label { display: block; margin: var(--s-4) 0 var(--s-2); font-weight: 600; font-size: 13px; }
input[type=text], input[type=password] { width: 100%; min-width: 0; padding: var(--s-3) var(--s-4); font: inherit; color: var(--color-text); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-control); }
input::placeholder { color: var(--color-muted); opacity: .85; }
input:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }
button { margin-top: var(--s-5); width: 100%; min-height: 46px; padding: var(--s-3) var(--s-4); font: inherit; font-weight: 600; color: var(--color-panel-text); background: var(--color-primary); border: 0; border-radius: var(--radius-control); cursor: pointer; transition: background-color .15s ease; }
button:hover { background: var(--color-primary-hover); }
a { color: var(--color-primary-hover); text-underline-offset: 3px; }
.error { margin: 0 0 var(--s-4); padding: var(--s-3); border-radius: var(--radius-control); background: var(--color-error-bg); color: var(--color-error-text); border: 1px solid var(--color-error-border); font-size: 13px; }
.neutral { margin: 0 0 var(--s-2); padding: var(--s-3); border-radius: var(--radius-control); border: 1px solid var(--color-border); }
.note { margin: var(--s-6) 0 0; color: var(--color-muted); font-size: 12px; }
.auth-layout { max-width: 1040px; min-height: 640px; display: grid; grid-template-columns: 1.04fr 1fr; overflow: hidden; padding: 0; }
.form-panel { padding: var(--s-10) var(--s-12) var(--s-6); display: flex; flex-direction: column; }
.brand-row { display: flex; align-items: center; gap: var(--s-4); margin-bottom: var(--s-10); }
.brand-logo { width: 100px; height: auto; display: block; object-fit: contain; }
.brand-product { border-left: 1px solid var(--color-border); padding-left: var(--s-4); font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.form-content { margin: auto 0; padding-bottom: var(--s-8); }
.eyebrow { color: var(--color-primary); font-weight: 650; font-size: 10px; letter-spacing: .13em; margin: 0 0 var(--s-3); }
.auth-layout h1 { font-size: clamp(28px, 3vw, 34px); }
.intro { margin: 0 0 var(--s-5); color: var(--color-muted); }
.auth-layout .client { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s-1) var(--s-2); font-size: 12px; margin-bottom: var(--s-6); }
.client strong { color: var(--color-primary-hover); background: var(--color-primary-light); padding: var(--s-1) var(--s-2); border-radius: 6px; font-weight: 600; overflow-wrap: anywhere; }
.auth-layout form { display: grid; gap: var(--s-5); }
.field-group label { margin: 0 0 var(--s-2); }
.input-wrap { display: flex; align-items: center; border: 1px solid var(--color-border); border-radius: var(--radius-control); padding-left: var(--s-4); background: var(--color-surface); transition: border-color .15s ease, box-shadow .15s ease; }
.input-wrap:focus-within { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-focus); }
.input-wrap svg { flex: 0 0 18px; width: 18px; height: 18px; stroke: var(--color-muted); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.input-wrap input { border: 0; border-radius: var(--radius-control); min-height: 48px; padding: var(--s-3); }
.input-wrap input:focus-visible { outline: none; }
.form-options { text-align: right; margin-top: calc(-1 * var(--s-2)); font-size: 12px; }
.form-options a { font-weight: 600; text-decoration: none; }
.form-options a:hover { text-decoration: underline; }
.sign-in-button { margin: 0; display: flex; justify-content: center; align-items: center; gap: var(--s-3); min-height: 48px; }
.sign-in-button span { font-size: 20px; font-weight: 400; line-height: 1; }
.sign-in-help { margin: var(--s-4) 0 0; color: var(--color-muted); text-align: center; font-size: 12px; }
.environment-note { display: flex; align-items: center; gap: var(--s-2); margin: var(--s-4) 0 0; color: var(--color-muted); font-size: 10px; }
.environment-note span { width: 5px; height: 5px; border-radius: 50%; background: var(--color-primary); }
.brand-panel { position: relative; display: flex; flex-direction: column; overflow: hidden; color: var(--color-panel-text); padding: var(--s-10); background: linear-gradient(155deg, var(--color-primary-dark), var(--color-primary-hover) 62%, var(--color-primary)); }
.brand-panel-top, .brand-panel-footer { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); position: relative; z-index: 1; }
.brand-kicker { font-size: 11px; font-weight: 650; letter-spacing: .14em; }
.brand-label { font-size: 8px; letter-spacing: .1em; padding: var(--s-1) var(--s-2); border: 1px solid var(--color-panel-line); border-radius: 5px; }
.brand-story { position: relative; z-index: 1; margin-top: var(--s-12); }
.brand-overline { font-size: 9px; color: var(--color-panel-muted); letter-spacing: .14em; margin: 0 0 var(--s-4); }
.brand-story h2 { margin: 0 0 var(--s-5); font-size: clamp(30px, 3.8vw, 42px); line-height: 1.14; letter-spacing: -.045em; font-weight: 550; }
.brand-description { max-width: 290px; margin: 0; color: var(--color-panel-muted); font-size: 13px; line-height: 1.7; }
.business-units { position: relative; z-index: 1; margin: var(--s-8) 0; }
.business-units h3 { margin: 0 0 var(--s-4); color: var(--color-panel-muted); font-size: 9px; font-weight: 500; letter-spacing: .14em; }
.business-units ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-3); }
.business-units li { display: flex; align-items: center; gap: var(--s-4); font-size: 14px; font-weight: 550; line-height: 1.4; }
.business-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-control); background: var(--color-panel-tint); border: 1px solid var(--color-panel-line); }
.business-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand-panel-footer { margin-top: auto; padding-top: var(--s-5); border-top: 1px solid var(--color-panel-line); font-size: 11px; color: var(--color-panel-muted); }
.footer-mark { font-size: 18px; }
@media (max-width: 760px) {
  /* Phone: every page is a full page, no card (the sign-in page and the plain pages: setup, second step, messages). */
  body { display: block; padding: 0; background: var(--color-surface); }
  .auth-layout { display: flex; flex-direction: column; max-width: none; min-height: 100vh; min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
  .form-panel { flex: 1 0 auto; padding: max(var(--s-6), env(safe-area-inset-top)) max(var(--s-6), env(safe-area-inset-right)) var(--s-8) max(var(--s-6), env(safe-area-inset-left)); }
  .brand-row { margin-bottom: var(--s-8); }
  /* top-aligned, not vertically centred: a centred form jumps when the on-screen keyboard opens */
  .form-content { margin: 0; padding-bottom: var(--s-6); }
  /* 16px stops iOS Safari zooming the page on focus */
  .auth-layout .input-wrap input { font-size: 16px; }
  .brand-panel { flex: 0 0 auto; padding: var(--s-6) max(var(--s-6), env(safe-area-inset-right)) max(var(--s-6), env(safe-area-inset-bottom)) max(var(--s-6), env(safe-area-inset-left)); }
  .brand-panel-top, .brand-story, .brand-panel-footer { display: none; }
  .business-units { margin: 0; }
  .business-units li { font-size: 12px; gap: var(--s-3); }
  .business-icon { flex-basis: 32px; width: 32px; height: 32px; border-radius: 8px; }
  .business-icon svg { width: 18px; height: 18px; }
  main:not(.auth-layout) { max-width: none; min-height: 100vh; min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; padding: max(var(--s-6), env(safe-area-inset-top)) max(var(--s-6), env(safe-area-inset-right)) max(var(--s-8), env(safe-area-inset-bottom)) max(var(--s-6), env(safe-area-inset-left)); }
  main:not(.auth-layout) input[type=text], main:not(.auth-layout) input[type=password] { font-size: 16px; }
}
@media (max-width: 380px) {
  .form-panel { padding-left: max(var(--s-5), env(safe-area-inset-left)); padding-right: max(var(--s-5), env(safe-area-inset-right)); }
  .brand-row { gap: var(--s-3); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

/* First-login setup (S05 PB-026): the TOTP setup key and the backup codes, shown once */
.qr{display:flex;justify-content:center;margin:8px 0 16px;line-height:0}
.qr svg{display:block;width:220px;height:220px;max-width:100%;border:1px solid #e1dfdd;border-radius:8px}
.secret{margin:6px 0 10px}
.secret code{display:inline-block;padding:10px 12px;border:1px solid #e1dfdd;border-radius:8px;background:#f8faf7;font-size:17px;letter-spacing:.06em;word-spacing:.35em;overflow-wrap:anywhere}
.codes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 14px;margin:12px 0 18px;padding:0;list-style:none}
.codes code{font-size:15px;letter-spacing:.04em}

/* Verification code (second step, authenticator setup, 2026-11-25): six large centred digits, one-handed on a phone. Pure CSS: the login pages allow no script. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.verify { max-width: 440px; text-align: center; }
.verify .intro { margin: 0 0 var(--s-6); color: var(--color-muted); font-size: 14px; }
.verify .intro strong { color: var(--color-text); }
.verify .eyebrow { margin: 0 0 var(--s-2); }
.verify .client { margin-bottom: var(--s-4); }
.verify .error { text-align: left; }
.verify-badge { width: 56px; height: 56px; margin: 0 auto var(--s-5); display: grid; place-items: center; border-radius: 50%; background: var(--color-primary-light); color: var(--color-primary); }
.verify-badge svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
input.otp { display: block; width: 100%; min-width: 0; min-height: 76px; margin: 0; padding: var(--s-4) 0 var(--s-4) .42em; text-align: center;
  font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace; font-weight: 600; font-variant-numeric: tabular-nums;
  font-size: clamp(30px, 9.5vw, 44px); line-height: 1.2; letter-spacing: .42em; color: var(--color-text); caret-color: var(--color-primary);
  background: var(--color-surface); border: 1.5px solid var(--color-border); border-radius: var(--radius-control); transition: border-color .15s, box-shadow .15s; }
input.otp::placeholder { color: #c3cbc6; opacity: 1; }
input.otp:focus, input.otp:focus-visible { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px var(--color-focus); }
.otp-hint { margin: var(--s-3) 0 0; color: var(--color-muted); font-size: 12px; }
.verify button[type=submit] { min-height: 52px; font-size: 16px; }
.alt { margin-top: var(--s-6); text-align: center; }
.alt summary { display: inline-block; padding: var(--s-2) var(--s-3); color: var(--color-primary-hover); font-weight: 600; font-size: 13px; cursor: pointer; border-radius: 6px; }
.alt summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.alt[open] summary { margin-bottom: var(--s-1); }
.alt label { text-align: left; }
.alt input[type=text] { font-family: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em; text-align: center; }
@media (max-width: 760px) {
  .verify { text-align: center; }
  main.verify:not(.auth-layout) input[type=text] { font-size: 16px; }
  main.verify:not(.auth-layout) input.otp { font-size: clamp(30px, 9.5vw, 44px); }
}

/* The LSH Group logo on every plain page (second step, setup, messages): the identity is the logo as well as the green (Kak, 2026-11-25). Same mark as the sign-in page. */
.plain-brand { display: flex; align-items: center; gap: var(--s-4); margin: 0 0 var(--s-6); }
.plain-brand .brand-logo { width: 100px; height: auto; }
.verify .plain-brand { justify-content: center; margin-bottom: var(--s-6); }
