/* Customer sign-in, Polish 9 + 10 (Nov 5 2026). Mobile first at 390px. Loaded after portal.css and the shared button/headline sheets.
   Orange primary comes from /shared/buttons.css (.nl-btn-primary); headlines from /shared/headlines.css (Plus Jakarta Sans 800). */
body[data-mode="customer"] .hx-login{margin:0 auto 32px!important;padding:0 20px 24px!important;color:#17191B}
body[data-mode="customer"] .hx-login .hx-panel.on,body[data-mode="customer"] .hx-login .hx-screen.on{min-height:0!important;justify-content:flex-start!important;padding:calc(8px + env(safe-area-inset-top)) 0 calc(16px + env(safe-area-inset-bottom))!important}
/* Logo bar: customer NoLaundry logo, no badge */
.hx-login .nl-lg-top{display:flex;align-items:center;justify-content:center;height:64px;margin:0 0 20px}
.hx-login .nl-lg-top img{height:36px;width:auto;display:block}
.hx-login .nl-lg-bar{display:grid;grid-template-columns:48px 1fr 48px;align-items:center;margin:0 0 20px}
.hx-login .nl-lg-bar .nl-lg-top{margin:0}
body[data-mode="customer"] .hx-login .hx-back{width:48px;height:48px;margin:0;border-radius:24px;font-size:32px;line-height:1;color:#17191B;display:flex;align-items:center;justify-content:center}
body[data-mode="customer"] .hx-login .hx-back:hover{background:#F4F6F4}
/* Type: big and high contrast */
body[data-mode="customer"] .hx-login h1{font-size:32px!important;line-height:1.12!important;letter-spacing:-.6px!important;margin:0 0 10px!important;color:#17191B!important}
body[data-mode="customer"] .hx-login .hx-sub{font-size:17px;line-height:1.45;color:#3F4A44;margin:0 0 24px}
body[data-mode="customer"] .hx-login .hx-sub b{display:block;color:#17191B;overflow-wrap:anywhere}
body[data-mode="customer"] .hx-login .hx-zl{font:800 15px/1.2 "Plus Jakarta Sans",Nunito,system-ui,sans-serif!important;color:#17191B;margin:0 0 8px}
/* Email field: one clear focus ring, 56px, 18px+ text */
body[data-mode="customer"] .hx-login .hx-field{height:58px;border:2px solid #737D77;border-radius:14px;background:#fff;padding:0 16px}
body[data-mode="customer"] .hx-login .hx-field:focus-within{border-color:#17191B;box-shadow:0 0 0 3px rgba(23,25,27,.18)}
body[data-mode="customer"] .hx-login .hx-field.bad{border-color:#B3261E;box-shadow:0 0 0 3px rgba(179,38,30,.15)}
body[data-mode="customer"] .hx-login .hx-field input{font:600 19px/1.2 Nunito,system-ui,sans-serif!important;color:#17191B;outline:none!important;box-shadow:none!important;height:100%}
body[data-mode="customer"] .hx-login .hx-field input::placeholder{color:#6B746F}
body[data-mode="customer"] .hx-login .hx-err{color:#B3261E;font-size:15px;line-height:1.35;margin:10px 0 0;font-weight:700}
body[data-mode="customer"] .hx-login .hx-err:empty{margin:0}
/* Primary button: full width, 56px, right under the field (never floating) */
body[data-mode="customer"] .hx-login .hx-btn{position:static!important;width:100%;height:56px;min-height:56px;margin:16px 0 0;border-radius:14px;font-size:18px}
body[data-mode="customer"] .hx-login .hx-btn[aria-busy="true"]{opacity:.8;cursor:progress}
body[data-mode="customer"] .hx-login .hx-btn.ok{background:#17191B!important;border-color:#17191B!important;color:#fff!important}
body[data-mode="customer"] .hx-login .hx-btn:focus-visible{outline:3px solid #17191B!important;outline-offset:3px!important}
/* Google: outline button */
body[data-mode="customer"] .hx-login #oauth:empty{display:none}
body[data-mode="customer"] .hx-login .nl-lg-alt{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;margin:12px 0 0;border:2px solid #17191B;border-radius:14px;background:#fff;color:#17191B;font:700 17px/1 Nunito,system-ui,sans-serif;text-decoration:none}
/* Small print and links: readable, 48px tap targets */
body[data-mode="customer"] .hx-login .hx-legal,body[data-mode="customer"] .hx-login .hx-find{font-size:14px;line-height:1.5;color:#3F4A44;margin:16px 0 0}
body[data-mode="customer"] .hx-login #consent a{display:inline-block;padding:14px 0;margin:-14px 0;color:#17191B;text-underline-offset:3px}
body[data-mode="customer"] .hx-login .hx-find{margin:8px 0 0}
body[data-mode="customer"] .hx-login .hx-find a,body[data-mode="customer"] .hx-login .hx-link{display:inline-flex;align-items:center;min-height:48px;padding:0 4px;margin:0 -4px;font:700 16px/1.2 Nunito,system-ui,sans-serif;color:#17191B;text-decoration:underline;text-underline-offset:3px}
body[data-mode="customer"] .hx-login .nl-lg-new{margin:0}
body[data-mode="customer"] .hx-login #hx-book a{display:inline-flex;align-items:center;min-height:48px}
body[data-mode="customer"] .hx-login a:focus-visible,body[data-mode="customer"] .hx-login .hx-link:focus-visible,body[data-mode="customer"] .hx-login .hx-back:focus-visible{outline:3px solid #17191B!important;outline-offset:2px;border-radius:6px}
body[data-mode="customer"] .hx-login .hx-link:disabled{color:#5B635F;text-decoration:none;cursor:default}
/* Code: one real input (autofill, paste, screen readers) drawn as 6 cells */
.hx-login .nl-otp{position:relative;height:64px}
.hx-login .nl-otp-cells{position:absolute;inset:0;display:grid;grid-template-columns:repeat(6,1fr);gap:8px;pointer-events:none}
.hx-login .nl-otp-cells span{display:flex;align-items:center;justify-content:center;border:2px solid #737D77;border-radius:14px;background:#fff;font:800 28px/1 "Plus Jakarta Sans",Nunito,system-ui,sans-serif;color:#17191B;transition:border-color .12s,box-shadow .12s}
.hx-login .nl-otp-cells span.full{border-color:#17191B}
.hx-login .nl-otp-cells span.on{border-color:#17191B;box-shadow:0 0 0 3px rgba(23,25,27,.22)}
.hx-login .nl-otp-cells span.on:empty::after{content:"";width:2px;height:30px;background:#17191B;animation:nlCaret 1s steps(1) infinite}
@keyframes nlCaret{50%{opacity:0}}
.hx-login .nl-otp.bad .nl-otp-cells span{border-color:#B3261E}
.hx-login .nl-otp.bad .nl-otp-cells span.on{box-shadow:0 0 0 3px rgba(179,38,30,.2)}
body[data-mode="customer"] .hx-login .nl-otp input{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;background:transparent;color:transparent;caret-color:transparent;font-size:16px!important;letter-spacing:0;text-align:left;opacity:.01;outline:none!important;box-shadow:none!important;z-index:1}
.hx-login .nl-lg-stat{font-size:15px;font-weight:700;color:#1E6B3A;margin:10px 0 0}
.hx-login .nl-lg-stat:empty{margin:0}
.hx-login .nl-lg-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:8px}
@media (prefers-reduced-motion:reduce){.hx-login .nl-otp-cells span.on:empty::after{animation:none}}
@media(min-width:900px){body[data-mode="customer"] .hx-login{margin:8vh auto 40px!important}}
body[data-mode="customer"]:has(.hx-login) footer.nl-legal a{display:inline-block;padding:14px 4px;line-height:20px}

/* ---- Polish 10 (Nov 5 2026) ---- */
/* Layout: left-aligned like a native app; safe areas on notched phones (portrait and landscape) */
body[data-mode="customer"] .hx-login{padding-left:max(20px,env(safe-area-inset-left))!important;padding-right:max(20px,env(safe-area-inset-right))!important}
body[data-mode="customer"] .hx-login .hx-screen{text-align:left}
body[data-mode="customer"] .hx-login .hx-screen .hx-zl{text-align:left}
body[data-mode="customer"] .hx-login .hx-legal,body[data-mode="customer"] .hx-login .hx-find{text-align:left}
body[data-mode="customer"] .hx-login .nl-lg-top{justify-content:flex-start;height:56px;margin-bottom:24px}
body[data-mode="customer"] .hx-login .nl-lg-bar{grid-template-columns:48px auto 1fr;gap:4px;margin-bottom:24px}
body[data-mode="customer"] .hx-login .nl-lg-bar .nl-lg-top{height:48px;margin:0}
body[data-mode="customer"] .hx-login .hx-back{margin-left:-12px}
body[data-mode="customer"] .hx-login h1{font-size:34px!important}
/* Buttons: 19px bold label = WCAG "large text", so white on Kari's #FF5500 (3.21:1) passes AA; calm busy state with a spinner, no jump */
body[data-mode="customer"] .hx-login .hx-btn{position:relative!important;font-size:19px!important;font-weight:800!important;gap:10px;transition:transform .12s var(--ease-out,cubic-bezier(.23,1,.32,1)),background-color .16s var(--ease-out,cubic-bezier(.23,1,.32,1))}
body[data-mode="customer"] .hx-login .hx-btn:active:not(:disabled){transform:scale(.97)}
/* #main outranks primary.css (:is(...) with 6 classes) so busy keeps full color instead of the faded disabled look */
html body #main.hx-login .hx-btn:is([aria-busy="true"],[data-state="busy"]){background:var(--nl-btn-primary-bg,#17191B)!important;opacity:1!important;cursor:progress!important}
body[data-mode="customer"] .hx-login .hx-btn .nl-bl{display:inline-block}
.hx-login .nl-spin{width:20px;height:20px;flex:none;border-radius:50%;border:3px solid rgba(255,255,255,.45);border-top-color:#fff;animation:nlSpin .55s linear infinite}
@keyframes nlSpin{to{transform:rotate(360deg)}}
.hx-login .nl-check{width:24px;height:24px;flex:none;fill:none;stroke:#fff;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:24;stroke-dashoffset:0;animation:nlDraw .24s var(--ease-out,cubic-bezier(.23,1,.32,1)) both}
@keyframes nlDraw{from{stroke-dashoffset:24}}
html body #main.hx-login .hx-btn:is(.ok,[data-state="ok"]){background:var(--nl-btn-primary-bg,#17191B)!important;color:var(--nl-btn-primary-fg,#fff)!important;opacity:1!important;cursor:default!important;filter:none!important;box-shadow:var(--nl-btn-primary-shadow,none)!important}
.hx-login .nl-otp.ok .nl-otp-cells span{border-color:#17191B;background:#F4F6F4}
/* Focus: one look on every control — 3px ink ring, 3px gap */
body[data-mode="customer"] .hx-login :is(a,button,.hx-btn,.hx-link,.hx-back,#em-fix):focus-visible{outline:3px solid #17191B!important;outline-offset:3px!important;box-shadow:none!important}
body[data-mode="customer"] .hx-login .hx-field:focus-within{border-color:#17191B;box-shadow:0 0 0 3px #fff,0 0 0 6px #17191B}
body[data-mode="customer"] .hx-login .hx-field.bad:focus-within{border-color:#B3261E;box-shadow:0 0 0 3px #fff,0 0 0 6px #B3261E}
.hx-login .nl-otp-cells span.on{box-shadow:0 0 0 3px #fff,0 0 0 5px #17191B}
.hx-login .nl-otp.bad .nl-otp-cells span.on{box-shadow:0 0 0 3px #fff,0 0 0 5px #B3261E}
/* Error text: icon + text, never color alone */
body[data-mode="customer"] .hx-login .hx-err:not(:empty){display:flex;gap:8px;align-items:flex-start;text-align:left}
body[data-mode="customer"] .hx-login .hx-err:not(:empty)::before{content:"!";flex:none;width:20px;height:20px;margin-top:1px;border-radius:50%;background:#B3261E;color:#fff;font:800 14px/20px system-ui,sans-serif;text-align:center}
/* Typo hint: calm, never blocks */
.hx-login .nl-lg-hint{margin:8px 0 0;font-size:15px;line-height:1.4;color:#3F4A44;text-align:left}
.hx-login .nl-lg-hint:empty{margin:0}
body[data-mode="customer"] .hx-login .nl-lg-hint .hx-link{min-height:48px;margin:0 0 0 -4px;font-size:15px;font-weight:700;color:#17191B;word-break:break-all}
.hx-login .nl-lg-hint b{font-weight:800}
/* Resend row: both 48px */
body[data-mode="customer"] .hx-login .nl-lg-row{margin-top:12px}
body[data-mode="customer"] .hx-login .nl-lg-row .hx-link:disabled{color:#4F5753}
/* Motion: email → code slides forward, back slides back; error shake. All off with reduced motion. */
@media (prefers-reduced-motion:no-preference){
 .hx-login .hx-screen.nl-in-fwd{animation:nlInFwd .24s var(--ease-out,cubic-bezier(.23,1,.32,1)) both}
 .hx-login .hx-screen.nl-in-back{animation:nlInBack .24s var(--ease-out,cubic-bezier(.23,1,.32,1)) both}
 .hx-login .nl-shake{animation:nlShake .28s var(--ease-out,cubic-bezier(.23,1,.32,1)) both}
 .hx-login .nl-otp-cells span{transition:border-color .12s,box-shadow .12s,background-color .2s}
}
@keyframes nlInFwd{from{opacity:0;transform:translateX(28px)}to{opacity:1;transform:none}}
@keyframes nlInBack{from{opacity:0;transform:translateX(-28px)}to{opacity:1;transform:none}}
@keyframes nlShake{10%,90%{transform:translateX(-1px)}20%,80%{transform:translateX(2px)}30%,50%,70%{transform:translateX(-4px)}40%,60%{transform:translateX(4px)}}
@media (prefers-reduced-motion:reduce){.hx-login .nl-spin{animation-duration:1.6s}.hx-login .nl-check{animation:none}.hx-login .hx-btn{transition:none}}
/* Small phones (360px) and landscape */
@media (max-width:380px){body[data-mode="customer"] .hx-login h1{font-size:30px!important}.hx-login .nl-otp-cells{gap:6px}.hx-login .nl-otp-cells span{font-size:26px}}
@media (max-height:500px) and (orientation:landscape){body[data-mode="customer"] .hx-login .nl-lg-top{height:44px;margin-bottom:12px}body[data-mode="customer"] .hx-login .nl-lg-bar{margin-bottom:12px}body[data-mode="customer"] .hx-login h1{font-size:28px!important;margin-bottom:6px!important}body[data-mode="customer"] .hx-login .hx-sub{margin-bottom:14px}body[data-mode="customer"] .hx-login .hx-screen.on,body[data-mode="customer"] .hx-login .hx-panel.on{padding-top:max(8px,env(safe-area-inset-top))!important}}
body[data-mode="customer"] .hx-login .hx-field input{text-align:left!important}
/* 19px/800 label (WCAG large text) — #main so it outranks the primary token size; keeps Kari's #FF5500 and passes AA at 3.21:1 */
html body #main.hx-login .hx-btn{font-size:19px!important;font-weight:800!important}
body[data-mode="customer"] .hx-login .nl-lg-hint .hx-link{padding-right:0;margin-right:0}

/* ---- Polish 11 (Nov 5 2026, Kari): one clean border, Uber-style. No outer rings or offset gaps on inputs. ----
   Rest: 2px #737D77 (4.2:1). Focus: border turns ink + 1px inset shadow (reads as 3px, no layout shift). Error: same in red. */
body[data-mode="customer"] .hx-login .hx-field,body[data-mode="customer"] .hx-login .hx-field:focus-within{box-shadow:none}
body[data-mode="customer"] .hx-login .hx-field:focus-within{border-color:#17191B;box-shadow:inset 0 0 0 1px #17191B!important}
body[data-mode="customer"] .hx-login .hx-field.bad{border-color:#B3261E;box-shadow:none!important}
body[data-mode="customer"] .hx-login .hx-field.bad:focus-within{border-color:#B3261E;box-shadow:inset 0 0 0 1px #B3261E!important}
body[data-mode="customer"] .hx-login :is(.hx-field input,.nl-otp input),body[data-mode="customer"] .hx-login :is(.hx-field input,.nl-otp input):is(:focus,:focus-visible){outline:none!important;box-shadow:none!important;border:0!important}
.hx-login .nl-otp-cells span,.hx-login .nl-otp-cells span.on,.hx-login .nl-otp.bad .nl-otp-cells span.on{box-shadow:none}
.hx-login .nl-otp-cells span.on{border-color:#17191B;box-shadow:inset 0 0 0 1px #17191B}
.hx-login .nl-otp.bad .nl-otp-cells span{border-color:#B3261E}
.hx-login .nl-otp.bad .nl-otp-cells span.on{border-color:#B3261E;box-shadow:inset 0 0 0 1px #B3261E}
.hx-login .nl-otp.ok .nl-otp-cells span{border-color:#17191B;background:#fff}
/* Buttons and links: focus ring for keyboard only (:focus-visible); nothing on tap or mouse. */
body[data-mode="customer"] .hx-login :is(a,button):focus:not(:focus-visible){outline:none!important}
/* Success keeps the primary button legible, never faded. */
html body #main.hx-login .hx-btn:is(.ok,[data-state="ok"]):is(:hover,:active,:disabled){background:var(--nl-btn-primary-bg,#17191B)!important;opacity:1!important}
