/* IL /login + /signup as a page of the printed report (2026-11-06). Linked
   only for the IL market from login.html / signup.html; every rule hangs off
   .auth-wrap.il-auth, a class only the IL render carries.

   One centred form, no marketing side panel (the owner's standing call): a
   flat paper sheet on a flat night page, the title large, 48px fields with
   labels above, Google as a quiet outline, the submit solid orange. No glow,
   no gradient top line, no shadow at rest; dark mode keeps the composition
   (night ground, one step lighter sheet). The one motion is the title rising
   once. Flow, field names, Turnstile and Google wiring are untouched. */

body .auth-wrap.il-auth {
  --ia-night: #0F1A21; --ia-paper: #FAFAF7; --ia-field: #fff; --ia-ink: #1C2B33; --ia-soft: #5A6B73; --ia-line: #C9CEC6;
  --ia-seal: #16557A; --ia-accent: #E8650D; --ia-accent-hover: #C9560A; --ia-link: #B14A05;
  --ia-bad: #B42318; --ia-bad-wash: #FDECEA; --ia-ok: #1E7A4C; --ia-ok-wash: #E7F4EC;
  --ia-e-out: cubic-bezier(.23, 1, .32, 1);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  min-height: calc(100vh - 64px); padding: clamp(48px, 7vw, 120px) 20px clamp(56px, 7vw, 120px);
  background: var(--ia-night); overflow: visible; isolation: auto; position: static;
}
html[data-ps-theme="dark"] body .auth-wrap.il-auth,
html[data-theme="dark"] body .auth-wrap.il-auth {
  --ia-night: #0B1319; --ia-paper: #152430; --ia-field: #0F1C25; --ia-ink: #E7EDF1; --ia-soft: #9DAFBA; --ia-line: #3A4D5A;
  --ia-seal: #7CB7DE; --ia-accent: #F5822F; --ia-accent-hover: #FF9447; --ia-link: #F19A55;
  --ia-bad: #F4A196; --ia-bad-wash: #3A211D; --ia-ok: #6FD3A0; --ia-ok-wash: #14301F;
  background: var(--ia-night); border: 0; box-shadow: none;
}
body .auth-wrap.il-auth::before, body .auth-wrap.il-auth::after { content: none; display: none; }

/* ── the sheet ────────────────────────────────────────────────────────── */
body .il-auth .auth-card,
html[data-ps-theme="dark"] body .il-auth .auth-card,
html[data-theme="dark"] body .il-auth .auth-card {
  width: min(100%, calc(480px + var(--grow, 0px) * .15)); max-width: none; margin: 0;
  padding: clamp(32px, 3.4vw, 52px); background: var(--ia-paper); color: var(--ia-ink);
  border: 0; border-radius: 12px; box-shadow: none; overflow: visible;
}
body .il-auth .auth-card::before { content: none; display: none; }
body .il-auth .auth-card h1,
html[data-ps-theme="dark"] body .il-auth .auth-card h1 {
  margin: 0 0 14px; font: 800 clamp(34px, 3vw, 52px)/1.04 "Heebo", system-ui, sans-serif; letter-spacing: -.01em; color: var(--ia-ink);
}
@media (prefers-reduced-motion: no-preference) {
  body .il-auth .auth-card h1 { animation: ia-rise 700ms var(--ia-e-out) 120ms backwards; }
}
/* opacity and position only: the clip-path version ended on a box Chromium
   did not paint, and the title stayed invisible (2026-11-07) */
@keyframes ia-rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
body .il-auth .pub-auth-lead { margin: 0 0 28px; font-size: 17px; line-height: 1.55; color: var(--ia-soft); }

/* ── messages: an error you cannot miss, a notice that is calm ────────── */
body .il-auth .alert {
  margin: 0 0 20px; padding: 12px 14px; border: 0; border-inline-start: 3px solid var(--ia-bad); border-radius: 8px;
  background: var(--ia-bad-wash); color: var(--ia-ink); font-size: 15px; line-height: 1.5;
}
body .il-auth .alert.alert-ok { border-inline-start-color: var(--ia-ok); background: var(--ia-ok-wash); }

/* ── fields: labels above, 48px, one clear focus ring ─────────────────── */
body .il-auth .field { gap: 8px; margin-bottom: 20px; }
body .il-auth .auth-card .field > span { font: 600 15px/1.3 "Heebo", system-ui, sans-serif; color: var(--ia-ink); }
body .il-auth .field > span small { font-size: 14px; font-weight: 400; color: var(--ia-soft); }
body .il-auth .field-hint { font-size: 14px; line-height: 1.45; margin-top: 0; color: var(--ia-soft); }
body .il-auth .auth-card input:not([type=checkbox]):not([type=hidden]) {
  height: 48px; padding: 0 14px; font-size: 16px; border: 1px solid var(--ia-line); border-radius: 10px;
  background: var(--ia-field); color: var(--ia-ink); box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
body .il-auth .auth-card input[readonly] { color: var(--ia-soft); }
body .il-auth .auth-card input:focus,
body .il-auth .auth-card input:focus-visible {
  outline: 0; border-color: var(--ia-seal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ia-seal) 28%, transparent);
}
body .il-auth .auth-card input:user-invalid { border-color: var(--ia-bad); }
/* the eye sits on the left and the input reads LTR: the room goes on the left (as
   specific as the card's input rule above, which would otherwise reset it) */
body .il-auth .auth-card .pw-wrap > input:not([type=checkbox]):not([type=hidden]) { padding-left: 50px; padding-right: 14px; }
body .il-auth .pw-toggle { width: 46px; border-radius: 10px; color: var(--ia-soft); }
body .il-auth .pw-toggle:focus-visible { outline: 2px solid var(--ia-seal); outline-offset: -2px; }
body .il-auth .cf-turnstile { margin: 4px 0 20px; }

/* ── buttons: Google quiet, the submit solid orange ───────────────────── */
body .il-auth .auth-card .btn {
  min-height: 52px; border-radius: 10px; font: 600 16px/1.3 "Heebo", system-ui, sans-serif; box-shadow: none;
  transition: transform 160ms var(--ia-e-out), background-color .15s ease, border-color .15s ease;
}
body .il-auth .auth-card .btn-google,
html[data-ps-theme="dark"] body .il-auth .auth-card .btn-google {
  background: transparent; color: var(--ia-ink); border: 1px solid var(--ia-line);
}
body .il-auth .auth-card .btn-primary,
body.il-pub .il-auth .auth-card .btn-primary {
  background: var(--ia-accent); border: 0; color: #fff; font-weight: 700; font-size: 17px;
  min-width: 220px; padding: 0 28px;
}
html[data-ps-theme="dark"] body .il-auth .auth-card .btn-primary,
html[data-theme="dark"] body .il-auth .auth-card .btn-primary { color: #111A20; }
body .il-auth .auth-card .btn-primary::after { content: none; }
body .il-auth .auth-card .btn:focus-visible { outline: 2px solid var(--ia-seal); outline-offset: 2px; }
body .il-auth .auth-card .btn:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  body .il-auth .auth-card .btn-google:hover { background: transparent; border-color: var(--ia-soft); }
  body .il-auth .auth-card .btn-primary:hover { background: var(--ia-accent-hover); }
}
/* "או" as plain text between the two ways in */
body .il-auth .auth-sep { justify-content: center; margin: 18px 0 22px; font-size: 15px; color: var(--ia-soft); }
body .il-auth .auth-sep::before, body .il-auth .auth-sep::after { content: none; display: none; }
body .il-auth .auth-forgot { font-size: 15px; }
body .il-auth .auth-card > p.muted { margin-top: 28px !important; font-size: 16px; color: var(--ia-soft); }
body .il-auth .auth-card a:not(.btn) { color: var(--ia-link); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ── phones: the sheet runs edge to edge ─────────────────────────────── */
@media (max-width: 560px) {
  /* the sheet fills the phone, as on the UK site: no box, no strip of night
     under it. The dark selectors are repeated so they do not win here. */
  body .auth-wrap.il-auth,
  html[data-ps-theme="dark"] body .auth-wrap.il-auth,
  html[data-theme="dark"] body .auth-wrap.il-auth { padding: 0 0 40px; background: var(--ia-paper); min-height: calc(100dvh - 56px); }
  body .il-auth .auth-card,
  html[data-ps-theme="dark"] body .il-auth .auth-card,
  html[data-theme="dark"] body .il-auth .auth-card { width: 100%; border-radius: 0; padding: 36px 20px 40px; }
  body .il-auth .auth-card .btn-primary, body.il-pub .il-auth .auth-card .btn-primary { width: 100%; min-width: 0; }
  /* the page is the form, one screen, no scroll (owner, 2026-11-07): no site
     footer under it on a phone (1.5K px of links), and tighter rhythm */
  body:has(.auth-wrap.il-auth) > footer { display: none; }
  body .auth-wrap.il-auth,
  html[data-ps-theme="dark"] body .auth-wrap.il-auth,
  html[data-theme="dark"] body .auth-wrap.il-auth { padding-bottom: 0; min-height: calc(100dvh - 65px); }
  body .il-auth .auth-card,
  html[data-ps-theme="dark"] body .il-auth .auth-card,
  html[data-theme="dark"] body .il-auth .auth-card { padding: 22px 20px 24px; }
  body .il-auth .auth-card h1 { margin-bottom: 6px; }
  body .il-auth .pub-auth-lead { margin-bottom: 18px; font-size: 16px; }
  body .il-auth .auth-sep { margin: 12px 0 14px; }
  body .il-auth .auth-card .field { margin-bottom: 12px; }
  body .il-auth .auth-card > p.muted { margin-top: 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body .il-auth .auth-card .btn, body .il-auth .auth-card input { transition: none; }
  body .il-auth .auth-card .btn:active { transform: none; }
}

/* the line under the title in the site's own seal blue (owner, 2026-11-06:
   the old header, the text in a native colour): seal on paper, the pale seal
   on the dark sheet. */
body .il-auth .auth-card .pub-auth-lead,
html[data-ps-theme="dark"] body .il-auth .auth-card .pub-auth-lead,
html[data-theme="dark"] body .il-auth .auth-card .pub-auth-lead { color: var(--ia-seal); }
body .il-auth .ia-hi { color: inherit; font-weight: 600; }

/* big screens: the sheet and its type grow a step, so it does not sit small in the middle */
@media (min-width: 1700px) {
  body .il-auth .auth-card, html[data-ps-theme="dark"] body .il-auth .auth-card, html[data-theme="dark"] body .il-auth .auth-card { width: min(100%, 560px); }
  body .il-auth .auth-card .field > span, body .il-auth .auth-card label { font-size: 16.5px; }
  body .il-auth .auth-card input:not([type=checkbox]):not([type=hidden]) { height: 54px; font-size: 17px; }
  body .il-auth .auth-card .pub-auth-lead { font-size: 19px; }
  body .il-auth .auth-card, html[data-ps-theme="dark"] body .il-auth .auth-card, html[data-theme="dark"] body .il-auth .auth-card { padding: 56px; }
  body .il-auth .auth-card h1, html[data-ps-theme="dark"] body .il-auth .auth-card h1 { font-size: clamp(48px, 2.6vw, 60px); }
  body .il-auth .auth-card .btn { min-height: 56px; font-size: 17.5px; }
  body .il-auth .auth-sep, body .il-auth .auth-forgot { font-size: 16px; }
  body .il-auth .auth-card > p.muted { font-size: 17px; }
}
/* the largest screens (2560 and up): one more step, as on the UK site */
@media (min-width: 2300px) {
  body .il-auth .auth-card, html[data-ps-theme="dark"] body .il-auth .auth-card, html[data-theme="dark"] body .il-auth .auth-card { width: min(100%, 640px); padding: 64px; }
  body .il-auth .auth-card .pub-auth-lead { font-size: 21px; }
  body .il-auth .auth-card .field > span, body .il-auth .auth-card label { font-size: 18px; }
  body .il-auth .auth-card input:not([type=checkbox]):not([type=hidden]) { height: 60px; font-size: 18.5px; }
  body .il-auth .auth-card .btn { min-height: 62px; font-size: 19px; }
}

/* ── field messages (form-check.js): under the field, in the page's
      language. Calm, not alarm (owner, 2026-11-06: the red was too
      aggressive): the words in the sheet's ink, the only colour a small warm
      mark, the field's edge a soft warm line; the label is left alone. ──── */
body .auth-wrap.il-auth { --ia-warn: #C2410C; --ia-warn-edge: #E9A27A; }
html[data-ps-theme="dark"] body .auth-wrap.il-auth, html[data-theme="dark"] body .auth-wrap.il-auth { --ia-warn: #F08A4B; --ia-warn-edge: #B5643A; }
body .il-auth .auth-card .field > .fc-err, body .il-auth .fc-err {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 8px;
  font-size: 14px; line-height: 1.45; font-weight: 500; color: var(--ia-ink);
}
body .il-auth .fc-err::before {
  content: "!"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 2px;
  border-radius: 50%; background: var(--ia-warn); color: #fff; font: 800 11px/1 system-ui, sans-serif;
}
body .il-auth .field.has-error input:not([type=checkbox]):not([type=hidden]),
html[data-ps-theme="dark"] body .il-auth .field.has-error input:not([type=checkbox]):not([type=hidden]) {
  border-color: var(--ia-warn-edge); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ia-warn) 10%, transparent);
}
body .il-auth .field.has-error .field-hint { display: none; }
@media (prefers-reduced-motion: no-preference) {
  body .il-auth .fc-err { animation: fc-in 180ms var(--ia-e-out) both; }
}
@keyframes fc-in { from { opacity: 0; transform: translateY(-3px); } }

/* an address reads left to right even on a Hebrew page ("abc@" showed as "@abc") */
body .il-auth .auth-card input[type=email] { direction: ltr; text-align: left; }

/* ── "בדקו את הדוא״ל" (verify_sent.html), the page sign-up lands on: the
      same sheet, a mail mark, the address on its own line in the lead, a
      quiet outline resend; both themes and every size (owner, 2026-11-07) ── */
body .il-auth .ia-verify-mark {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 12px;
  background: color-mix(in srgb, var(--ia-seal) 14%, transparent); color: var(--ia-seal); }
body .il-auth .ia-verify .pub-auth-lead { margin: 0 0 12px; color: var(--ia-seal); }
body .il-auth .ia-verify .pub-auth-lead b { display: block; margin-top: 2px; color: var(--ia-ink); font-weight: 700; overflow-wrap: anywhere; text-align: right; }
body .il-auth .ia-verify-hint { margin: 0 0 28px; font-size: 15.5px; line-height: 1.6; color: var(--ia-soft); }
body .il-auth .auth-card .ia-quiet,
html[data-ps-theme="dark"] body .il-auth .auth-card .ia-quiet {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: transparent; color: var(--ia-ink); border: 1px solid var(--ia-line); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  body .il-auth .auth-card .ia-quiet:hover { border-color: var(--ia-soft); background: transparent; }
}
@media (max-width: 560px) {
  body .il-auth .ia-verify-mark { width: 42px; height: 42px; margin-bottom: 14px; }
  body .il-auth .ia-verify-hint { margin-bottom: 20px; font-size: 15px; }
}
@media (min-width: 1700px) {
  body .il-auth .ia-verify-mark { width: 56px; height: 56px; }
  body .il-auth .ia-verify-hint { font-size: 17px; }
}
@media (min-width: 2300px) {
  body .il-auth .ia-verify-hint { font-size: 18.5px; }
}
