/* EWS Portal — sign-in pages (login / forgot / set password / dead link).
   Design locked 2026-11-01 (vault 20_Decisions/2026-11-01-portal-login-design-packing-slip-conveyor.md):
   LEFT a packing-slip card on Stone paper; RIGHT (login only) the conveyor — an open box is packed under
   Ordered, sealed, then carried through In transit → Out for delivery → Received. Loaded after portal.css.
   The sign-in pages are always dark: this is the one brand moment, and it must look the same on every OS theme. */

.auth-body {
  color-scheme: dark;
  --bg: #15181d; --ink: #e8ebf0; --mute: #94a3b8; --line: #262c35; --line-strong: #2e3540;
  --acc: #13b685; --acc-hover: #17c793; --acc-muted: rgba(19,182,133,.12); --acc-ink: #04140e;
  /* Stone paper — low-saturation so it never reads yellow; sits well off the dark ground without glare. */
  --paper: #cfc9bd; --paper-2: #dfdad0; --paper-hover: #e8e4dc; --paper-line: #a29c8f; --paper-mute: #4a463f; --paper-ink: #14161a;
  --ease-out: cubic-bezier(0.23,1,0.32,1); --ease-in-out: cubic-bezier(0.77,0,0.175,1);
  background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.5;
  display: block; padding: 0; min-height: 0;
}

/* ---------- layout: slip left, conveyor right (login); slip alone, centred (other pages) ---------- */
.auth-split { display: grid; grid-template-columns: minmax(400px, 1fr) 1.25fr; min-height: 100vh; min-height: 100dvh; gap: 24px; padding: 24px; }
.auth-split.solo { grid-template-columns: 1fr; }
.auth-left { display: grid; place-items: center; padding: 16px; }
.auth-split > * { min-width: 0; }
@media (max-width: 960px) { .auth-split { grid-template-columns: 1fr; } .auth-split > .r-panel { display: none; } }
/* Phones: the robot-check widget is never narrower than 300px, so the paddings around it shrink to fit 375px. */
@media (max-width: 560px) { .auth-split { padding: 12px; } .auth-left { padding: 0; } .slip-band, .slip-foot { padding-left: 16px; padding-right: 16px; } .slip-body { padding: 18px 16px 8px; } }

/* ---------- the packing slip ---------- */
.slip { width: 100%; max-width: 420px; background: var(--paper); color: var(--paper-ink); border-radius: 6px; color-scheme: light;
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 30px 60px rgba(0,0,0,.45); animation: slipIn 280ms var(--ease-out) both; font-size: 16px; }
@keyframes slipIn { from { opacity: 0; transform: translateY(12px) rotate(-.4deg); } to { opacity: 1; transform: none; } }
.slip-band { display: flex; justify-content: space-between; align-items: center; padding: 14px 22px; border-bottom: 2px solid var(--paper-ink);
  font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.slip-band .acc { display: inline-flex; align-items: center; gap: 8px; }
.slip-band .acc i { width: 10px; height: 10px; background: var(--acc); border-radius: 2px; }
.slip-body { padding: 20px 22px 8px; display: flex; flex-direction: column; gap: 0; }
.slip h1 { margin: 0 0 20px; font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.slip form { display: flex; flex-direction: column; gap: 0; margin: 0; }
.slip .note { color: var(--paper-mute); font-size: 14px; margin: -8px 0 18px; }
.slip form + .note, .slip .btn + .note { margin-top: 16px; }
.slip .note b { color: var(--paper-ink); }
.slip .err { color: #9f1239; font-size: 14px; margin: -6px 0 14px; }
.slip .ok { color: #0b6b4f; font-size: 14px; margin: -6px 0 14px; }
.slip a { color: var(--paper-mute); text-decoration: underline; text-underline-offset: 3px; }
.slip a:hover { color: var(--paper-ink); }
.slip label.field { gap: 6px; margin-bottom: 14px; font: 600 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--paper-mute); }
.slip input[type=email], .slip input[type=password], .slip input[type=text] { height: 46px; padding: 0 14px; border-radius: 4px; border: 1.5px solid var(--paper-ink);
  background: var(--paper-2); color: var(--paper-ink); font: 400 16px var(--font); letter-spacing: 0; text-transform: none; }
.slip input::placeholder { color: #7b776f; }
.slip input:focus { outline: none; border-color: #0b8a63; box-shadow: 0 0 0 3px rgba(19,182,133,.28); }
.slip .pw { position: relative; display: flex; }
.slip .pw input { flex: 1; padding-right: 48px; }
.slip .pw-eye { position: absolute; right: 2px; top: 1px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--paper-mute); display: grid; place-items: center; cursor: pointer; border-radius: 4px; }
.slip .pw-eye:hover { color: var(--paper-ink); }
.slip .pw-eye:focus-visible, .slip .btn:focus-visible, .slip a:focus-visible { outline: 2px solid #0b8a63; outline-offset: 2px; }
.slip .btn.wide { height: 48px; padding: 0 14px; border-radius: 4px; border-width: 1.5px; font-weight: 600; font-size: 15px; box-shadow: none;
  transition: background-color 150ms ease-out, transform 120ms ease-out; }
.slip .btn.primary { background: var(--acc); border-color: #0b8a63; color: var(--acc-ink); }
.slip .btn.primary:hover:not(:disabled) { background: var(--acc-hover); }
.slip .btn.google { background: var(--paper-2); color: var(--paper-ink); border-color: var(--paper-ink); }
.slip .btn.google:hover:not(:disabled) { background: var(--paper-hover); }
.slip .btn:disabled { opacity: .55; }
.slip .or { color: var(--paper-mute); font-size: 13px; margin: 16px 0; gap: 12px; }
.slip .or:before, .slip .or:after { border-top: 1px solid var(--paper-line); }
.slip .ts { justify-content: stretch; min-height: 65px; margin: 2px 0 12px; }
.slip .ts > div { width: 100%; }
.slip .links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 14px 0 0; font-size: 14px; }
.slip-perf { height: 0; border-top: 2px dashed var(--paper-line); margin: 16px 0 0; }
.slip-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 22px 18px; }
.slip-foot .code { font: 500 11px var(--mono); letter-spacing: .12em; color: var(--paper-mute); }
.bars { display: flex; gap: 2px; align-items: stretch; height: 34px; } .bars span { background: var(--paper-ink); }

/* ---------- the conveyor (login only) ---------- */
.r-panel { position: relative; border-radius: 20px; border: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, #1b1f26 0%, #15181d 100%); }
.r-cap { position: absolute; left: 28px; top: 22px; right: 28px; z-index: 5; display: flex; justify-content: flex-end; align-items: center; }
.live { display: inline-flex; align-items: center; gap: 8px; font: 500 11px var(--mono); letter-spacing: .12em; color: var(--acc); text-transform: uppercase; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); }
.beltp { display: flex; flex-direction: column; justify-content: center; padding: 60px 0 36px; }
.gates { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 40px; }
.gate { text-align: center; position: relative; padding-bottom: 78px; }
.gate .g-name { font: 500 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.gate .g-n { font: 700 40px/1.1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.gate .g-n.bump { animation: bump 240ms var(--ease-out); }
@keyframes bump { 50% { transform: scale(1.18); } }
.gate .post { position: absolute; left: 50%; bottom: 0; width: 2px; height: 64px; margin-left: -1px; background: var(--line-strong); }
.gate[data-i="0"] .post { display: none; }
.gate .chute { display: none; position: absolute; left: 50%; bottom: 52px; width: 44px; height: 12px; margin-left: -22px; background: #0e1014; border: 1px solid var(--line-strong); border-radius: 3px; }
.gate[data-i="0"] .chute { display: block; }
.gate .ring { position: absolute; left: 50%; bottom: -18px; width: 36px; height: 36px; margin-left: -18px; border-radius: 50%; border: 2px solid var(--acc); opacity: 0; }
.gate .ring.on { animation: ring 480ms var(--ease-out); }
@keyframes ring { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.9); } }
.gate[data-i="3"] .g-n { color: #6ee7b7; }
.belt { position: relative; height: 200px; margin: 0 40px; }
.track { position: absolute; left: calc(12.5% - 58px); right: 0; bottom: 40px; height: 14px; border-radius: 7px; background: #0e1014; border: 1px solid var(--line-strong); overflow: hidden; }
.dash { position: absolute; top: 5px; left: 0; height: 3px; width: calc(100% + 28px);
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 14px, transparent 14px 28px); animation: belt 700ms linear infinite; }
@keyframes belt { to { transform: translateX(-28px); } }
/* A parcel: one SVG in a single 3/4 view (conveyor.js). Cardboard faces share one light source (top lightest,
   front mid, side darkest); one tape strip runs over the lid and down the front; the label sits below the tape.
   Open = interior + two flaps up; closed = lid + tape. Only opacity/transform change. */
.box { position: absolute; bottom: 40px; left: 0; width: 156px; height: 135px; margin-left: -78px; will-change: transform; }
.box svg { display: block; overflow: visible; }
.box .p-shadow { fill: rgba(0,0,0,.42); filter: blur(2px); }
.box .p-front { fill: #c2995f; }
.box .p-side { fill: #9a7244; }
.box .p-top { fill: #d8b884; }
.box .p-seam { stroke: rgba(80,55,25,.45); stroke-width: 1; }
.box .p-tape { fill: #e9dcc0; fill-opacity: .8; }
.box .p-edges { fill: none; stroke: rgba(60,40,18,.38); stroke-width: .8; stroke-linejoin: round; }
.box .p-inside { fill: #4a3720; }
.box .p-inside-wall { fill: #33261a; }
.box .p-flap { fill: #cfab76; stroke: rgba(60,40,18,.38); stroke-width: .8; stroke-linejoin: round; }
.box .p-flap-r { fill: #b48a55; }
.box .p-label rect:first-child { fill: var(--paper-2); stroke: rgba(0,0,0,.14); stroke-width: .6; }
.box .p-label text { font: 600 8.5px var(--mono); letter-spacing: .04em; fill: var(--paper-ink); }
.box .chip { fill: #0369a1; transition: fill 200ms var(--ease-out); }
.box[data-st="1"] .chip, .box[data-st="2"] .chip { fill: #b45309; } .box[data-st="3"] .chip { fill: #0b8a63; }
.box .item rect:first-child { fill: #e3e7ec; stroke: #3b4250; stroke-width: 2; }
.box .item .scr { fill: #1f252e; }
.box .item { opacity: 0; }
.box .open-top, .box .open-flaps { opacity: 0; transition: opacity 220ms var(--ease-out); }
.box .closed-top, .box .closed-tape { opacity: 1; transition: opacity 220ms var(--ease-out); }
.box[data-open] .open-top, .box[data-open] .open-flaps { opacity: 1; }
.box[data-open] .closed-top, .box[data-open] .closed-tape { opacity: 0; }
.belt-foot { margin: 26px 40px 0; display: flex; justify-content: flex-end; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

@media (prefers-reduced-motion: reduce) {
  .slip { animation-duration: 1ms; }
  .dash { animation: none; }
  .box .open-top, .box .open-flaps, .box .closed-top, .box .closed-tape, .box .chip { transition: none; }
}
