/* Client portal sign-in + code step (resources/views/portal/login.php), owner's design G (taxclue-login-designs.html, view-g).
   Same look as the staff page (assets/erp/auth-signin.css). Loaded after portal-ob.css, so its body.pt-auth rules are overridden here.
   Fonts are the app's own (assets/css/fonts.css). Look only: forms, names and ids live in the view. */
:root {
  --page: #ffffff; --panel: #f3f6fb; --navy: #081a36; --red: #d21f3c; --red-d: #b1182f;
  --ink: #0f1928; --muted: #566076; --line: #dbe2ee; --line-strong: #b8c3d7; --chip: #e8edf5; --focus: #1f5fd0;
  --err-bg: #fdf0f2; --err-line: #f3c2ca; --err-ink: #9d1028;
  --sans: "DM Sans", "Segoe UI", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.pt-auth { font-family: var(--sans); font-size: 15px; line-height: 1.5; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.pt-auth a { color: inherit; text-decoration: none; }
body.pt-auth button { font: inherit; }
body.pt-auth :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* page */
.ps-stage { --gut: clamp(24px, 7vw, 110px); position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); grid-template-rows: auto 1fr auto;
  column-gap: clamp(24px, 5vw, 80px); padding: 0 var(--gut); overflow: hidden; isolation: isolate; }
.c-seal { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* top row */
.ps-top { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.ps-brand { display: flex; align-items: center; min-width: 0; }
.ps-brand a { display: block; flex: none; }
.ps-brand img { display: block; height: 32px; width: auto; }
.ps-tag { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: .08em; line-height: 20px; white-space: nowrap; }
.ps-top nav { flex: none; }
body.pt-auth .ps-top nav a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 500; }
body.pt-auth .ps-top nav a:hover { border-color: var(--navy); }
.ps-top nav svg { width: 16px; height: 16px; color: var(--navy); }

/* left */
.ps-left { grid-column: 1; grid-row: 2; align-self: center; min-width: 0; padding: 8px 0 24px; }
.ps-lead { margin: 0; max-width: 15ch; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.ps-lead em { font-style: normal; color: var(--red); }
.ps-list { list-style: none; margin: 22px 0 0; padding: 0; max-width: 480px; border-top: 1px solid var(--line); }
.ps-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ps-list i { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); color: var(--navy); }
.ps-list i svg { width: 19px; height: 19px; }
.ps-list b { flex: none; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.ps-list span { margin-left: auto; min-width: 0; color: var(--muted); font-size: 13.5px; text-align: right; }
.ps-facts { list-style: none; margin: 18px 0 0; padding: 0; max-width: 480px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ps-facts li { padding: 12px 12px 11px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.ps-facts svg { display: block; width: 18px; height: 18px; margin-bottom: 8px; color: var(--navy); }
.ps-facts b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13px; font-weight: 600; }
.ps-nb { white-space: nowrap; }
body.pt-auth .ps-facts a { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }

/* right: the panel */
.ps-center { grid-column: 2; grid-row: 2; align-self: center; justify-self: end; width: 100%; max-width: 440px; padding: 16px 0; min-width: 0; }
.ps-panel { width: 100%; padding: 30px 32px 26px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 30px 60px -40px rgba(8, 26, 54, .45); }
.ps-panel h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; color: var(--ink); }
.ps-sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.ps-sub b { color: var(--ink); font-weight: 600; }
.ps-alert { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; padding: 11px 13px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; border: 1px solid var(--err-line); background: var(--err-bg); color: var(--err-ink); }
.ps-alert svg { flex: none; margin-top: 2px; }

/* fields */
.fg { margin-top: 16px; }
.fg label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
body.pt-auth .fg input { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: 400 15.5px var(--sans); outline: none; transition: border-color .15s, box-shadow .15s; }
body.pt-auth .fg input::placeholder { color: #707b90; }
body.pt-auth .fg input:focus { border-color: var(--focus); box-shadow: 0 0 0 2px rgba(31, 95, 208, .22); }
body.pt-auth .fg input.pcode { font: 500 22px var(--mono); letter-spacing: .4em; text-align: center; padding: 0 0 0 .4em; }
input:-webkit-autofill, input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px #fff inset; -webkit-text-fill-color: var(--ink); }
.pin-wrap { position: relative; }
body.pt-auth .pin-wrap input { padding-right: 64px; font-family: var(--mono); letter-spacing: 3px; }
body.pt-auth .pin-wrap input::placeholder { font-family: var(--sans); letter-spacing: 0; }
.pin-toggle { position: absolute; top: 5px; right: 5px; height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 12.5px !important; font-weight: 600 !important; cursor: pointer; }
.pin-toggle:hover { color: var(--ink); background: var(--chip); }
.prem { display: flex; align-items: center; gap: 10px; margin-top: 12px; min-height: 36px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--ink); line-height: 1.3; }
.prem input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }

/* the one red button */
.ps-go { margin-top: 16px; width: 100%; height: 50px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font: 600 15.5px var(--sans) !important; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px -12px rgba(210, 31, 60, .75); transition: background .15s; }
.ps-go:hover { background: var(--red-d); }
.psmall { margin: 10px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
body.pt-auth .psmall a, .psmall button { padding: 0; border: 0; background: none; color: var(--navy); font-weight: 500; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
form.psmall { display: block; }

/* PIN, collapsed */
details.pin-alt { margin-top: 14px; }
details.pin-alt summary { display: inline-block; min-height: 24px; cursor: pointer; list-style: none; color: var(--navy); font-size: 13.5px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
details.pin-alt summary::-webkit-details-marker { display: none; }
details.pin-alt form { margin-top: 2px; }

/* Google / Microsoft */
.pdiv { display: flex; align-items: center; gap: 12px; margin: 14px 0 12px; color: var(--muted); font-size: 12.5px; }
.pdiv::before, .pdiv::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.ps-sso { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ps-sso .pbtn:only-child { grid-column: 1 / -1; }
body.pt-auth .pbtn { display: flex; align-items: center; justify-content: center; gap: 9px; height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font-size: 14.5px; font-weight: 500; }
body.pt-auth .pbtn:hover { border-color: var(--navy); }
.pbtn svg { width: 17px; height: 17px; flex: none; }

/* foot */
.ps-foot { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: space-between; gap: 6px 20px; flex-wrap: wrap; margin: 0 calc(var(--gut) * -1); padding: 14px var(--gut) 16px; border-top: 1px solid var(--line); background: #fff; font-size: 12.5px; color: var(--muted); }
body.pt-auth .ps-foot a { color: var(--navy); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }

/* phone and narrow windows: logo, the form at once, then the rest */
@media (max-width: 860px) {
  .ps-stage { --gut: 16px; display: flex; flex-direction: column; }
  .ps-top { order: 1; padding: 14px 0 0; }
  .ps-brand img { height: 28px; }
  .ps-tag { margin-left: 9px; padding-left: 9px; font-size: 11.5px; }
  body.pt-auth .ps-top nav a { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .ps-top nav a span { display: none; }
  .ps-center { order: 2; align-self: stretch; max-width: none; padding: 14px 0 0; }
  .ps-left { order: 3; align-self: stretch; padding: 24px 0 20px; }
  .ps-foot { order: 4; margin-top: auto; }
  .ps-panel { padding: 22px 18px 20px; border-radius: 16px; }
  .ps-panel h1 { font-size: 24px; }
  .ps-lead { max-width: none; font-size: 24px; }
  .ps-list { margin-top: 12px; max-width: none; }
  .ps-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 1px 12px; padding: 8px 0; }
  .ps-list i { grid-row: 1 / span 2; width: 34px; height: 34px; }
  .ps-list b { font-size: 15px; line-height: 1.25; }
  .ps-list span { margin: 0; font-size: 13px; line-height: 1.3; text-align: left; }
  .ps-facts { grid-template-columns: 1fr; max-width: none; }
  .ps-facts li { display: grid; grid-template-columns: 18px minmax(0, 1fr); column-gap: 10px; align-items: center; }
  .ps-facts svg { grid-row: 1 / span 2; margin: 0; }
  .ps-facts b { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
