/* Employee portal sign-in (resources/views/ess/login.php): the owner's design view-h, built to match the staff sign-in
   (assets/erp/auth-signin.css). White page; left the logo, one line, what the portal offers and three facts; right one
   light panel. Red only on the main button and one sentence. Fonts are the app's own (assets/css/fonts.css). */
: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;
  --warn-bg: #fff5dc; --warn-line: #f5d9a8; --warn-ink: #8a5a00; --ok-bg: #effaf3; --ok-line: #bfe3cf; --ok-ink: #0f6a3a;
  --sans: "DM Sans", "Segoe UI", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body.w9-ess-login { font-family: var(--sans); font-size: 15px; line-height: 1.5; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
.w9-ess-login a { color: inherit; text-decoration: none; }
.w9-ess-login button { font: inherit; }
.w9-ess-login :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* page */
.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 max(var(--gut), env(safe-area-inset-right, 0px)) 0 max(var(--gut), env(safe-area-inset-left, 0px)); overflow: hidden; isolation: isolate; }
.c-seal { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }

/* top row */
.c-top { grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.c-brand { display: flex; align-items: center; min-width: 0; }
.c-brand img { display: block; height: 32px; width: auto; flex: none; }
.c-tag { margin-left: 12px; padding-left: 12px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.c-top nav { display: flex; flex: none; }
.c-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; }
.c-top nav a:hover { border-color: var(--navy); }
.c-top nav svg { width: 16px; height: 16px; color: var(--navy); }

/* left */
.c-left { grid-column: 1; grid-row: 2; align-self: center; min-width: 0; padding: 8px 0 24px; }
.c-lead { margin: 0; max-width: 18ch; font-size: clamp(30px, 3.4vw, 44px); font-weight: 700; line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.c-lead em { font-style: normal; color: var(--red); }
.c-list { list-style: none; margin: 22px 0 0; padding: 0; max-width: 480px; border-top: 1px solid var(--line); }
.c-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.c-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); }
.c-list i svg { width: 19px; height: 19px; }
.c-list b { flex: none; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.c-list span { margin-left: auto; color: var(--muted); font-size: 14px; text-align: right; }
.c-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; }
.c-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; }
.c-facts svg { display: block; width: 18px; height: 18px; margin-bottom: 8px; color: var(--navy); }
.c-facts b { display: block; margin-bottom: 2px; color: var(--ink); font-size: 13px; font-weight: 600; }

/* right: the panel */
.center { grid-column: 2; grid-row: 2; align-self: center; justify-self: end; width: 100%; max-width: 440px; padding: 16px 0; min-width: 0; }
.card { width: 100%; padding: 32px 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); }
.card h1 { margin: 0; font-size: 28px; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.card .sub { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* messages */
.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); overflow-wrap: anywhere; }
.alert--warn { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-ink); }
.alert--ok { border-color: var(--ok-line); background: var(--ok-bg); color: var(--ok-ink); }

/* fields */
.fld { margin-top: 16px; }
.fld label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); }
.inp { position: relative; margin-top: 6px; }
.inp input { 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; }
.inp input.has-peek { padding-right: 68px; }
.inp input::placeholder { color: #707b90; }
.inp input:focus { border-color: var(--focus); box-shadow: 0 0 0 2px rgba(31, 95, 208, .22); }
.peek { position: absolute; right: 3px; top: 3px; height: 42px; min-width: 56px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500; cursor: pointer; }
.peek:hover { color: var(--ink); background: var(--chip); }

/* the one red button */
.go { margin-top: 18px; width: 100%; height: 50px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font: 600 15.5px var(--sans); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 22px -12px rgba(210, 31, 60, .75); transition: background .15s; }
.w9-ess-login .go { font: 600 15.5px var(--sans); }
.go:hover { background: var(--red-d); }
.go kbd { font: 600 10.5px var(--mono); border-radius: 5px; padding: 2px 6px; line-height: 1.4; background: rgba(255, 255, 255, .18); color: #fff; }

/* panel foot */
.c-note { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.c-after { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 12.5px; }
.c-after svg { width: 15px; height: 15px; flex: none; color: var(--navy); }

/* foot */
.foot { grid-column: 1 / -1; grid-row: 3; display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin: 0 calc(var(--gut) * -1); padding: 14px var(--gut) 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }

/* a laptop with the browser's own bars (1366x768 leaves about 630px): tighten so the page needs no scroll */
@media (min-width: 861px) and (max-height: 700px) {
  .c-top { padding: 10px 0; }
  .c-left { padding: 2px 0 8px; }
  .c-lead { font-size: clamp(28px, 2.7vw, 36px); }
  .c-list { margin-top: 12px; }
  .c-list li { padding: 5px 0; }
  .c-list i { width: 34px; height: 34px; }
  .c-list b { font-size: 16px; }
  .c-facts { margin-top: 10px; }
  .c-facts li { padding: 8px 10px; }
  .c-facts svg { margin-bottom: 4px; }
  .center { padding: 4px 0 8px; }
  .card { padding: 20px 26px 16px; }
  .card h1 { font-size: 24px; }
  .fld { margin-top: 10px; }
  .inp input { height: 44px; }
  .peek { height: 38px; }
  .go { margin-top: 12px; height: 46px; }
  .c-note { margin-top: 10px; }
  .c-after { margin-top: 8px; padding-top: 8px; }
  .foot { padding-top: 9px; padding-bottom: 10px; }
}

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

/* three sign-ins link to each other: two round links beside the logo on a phone, so the tag gets narrower */
@media (max-width: 430px) { .c-brand img { height: 24px; } .c-tag { font-size: 10.5px; letter-spacing: .04em; } }
