/* Customer auth uses the canonical customer_base.css palette and type. */
html { color-scheme: dark; scrollbar-gutter: stable; scrollbar-color: var(--text-muted) var(--bg-body); }
body.customer-auth { min-height: 100vh; min-height: 100svh; font-size: 16px; isolation: isolate; -webkit-font-smoothing: antialiased; }
.customer-auth :is(a, button, input):focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.customer-auth [hidden] { display: none !important; }
.customer-auth-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 40px; min-height: 80px; }
.customer-auth-location { color: var(--text-muted); font-size: 12px; display: flex; gap: 13px; align-items: center; }
.customer-auth-location > span { color: var(--brand); font-weight: 700; letter-spacing: .1em; padding-right: 13px; border-right: 1px solid var(--border-input); }
.customer-auth-motion { min-height: 44px; padding: 8px 10px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--text-muted); font: inherit; font-size: 12px; cursor: pointer; }
.customer-auth-motion:hover { background: var(--bg-input); color: var(--text-primary); }
.scene-play-icon, [aria-pressed="true"] .scene-pause-icon { display: none; }
[aria-pressed="true"] .scene-play-icon { display: block; }
.customer-auth-main { flex: 1; position: relative; display: flex; align-items: center; justify-content: center; padding: 20px 24px 32px; }
.customer-auth-panel { width: 100%; max-width: 462px; min-width: 0; padding: 34px 38px 20px; border: 1px solid var(--border-input); border-radius: 22px; background: var(--bg-card); box-shadow: 0 28px 80px color-mix(in srgb, var(--bg-body) 70%, transparent); }
.customer-auth-heading { text-align: center; margin-bottom: 28px; }
.customer-auth-logo { display: block; width: 160px; height: auto; margin: 0 auto 24px; }
.customer-auth-heading h1 { margin: 0 0 8px; color: var(--text-heading); font-size: 26px; font-weight: 600; letter-spacing: -.035em; line-height: 1.3; }
.customer-auth-heading p { margin: 0; color: var(--text-muted); font-size: 14px; line-height: 1.6; }
.customer-auth-form { display: grid; gap: 20px; }
.customer-auth-field { min-width: 0; }
.customer-auth-field label { display: block; margin-bottom: 8px; color: var(--text-primary); font-size: 13px; font-weight: 500; }
.customer-auth-field input:not([type="hidden"]) { display: block; width: 100%; min-width: 0; min-height: 50px; padding: 11px 13px; border: 1px solid color-mix(in srgb, var(--text-muted) 65%, transparent); border-radius: 9px; background: var(--bg-body); color: var(--text-primary); font: inherit; font-size: 16px; transition: border-color .15s; }
.customer-auth-field .password-field input { padding-right: 52px; }
.customer-auth-field input:hover { border-color: var(--text-muted); }
.customer-auth-field input:focus-visible { border-color: var(--brand); outline-offset: 2px; }
.customer-auth-field input[aria-invalid="true"] { border-color: var(--red); }
.customer-auth .password-visibility { color: var(--text-muted); }
.customer-auth-captcha { display: flex; align-items: center; gap: 12px; }
.customer-auth-captcha img { width: 142px; height: auto; aspect-ratio: 11 / 3; object-fit: contain; background: var(--text-heading); border-radius: 6px; flex-shrink: 0; }
.customer-auth-captcha input:not([type="hidden"]) { flex: 1; width: 0; text-align: center; letter-spacing: .08em; }
.customer-auth-hint { margin: 9px 0 0; font-size: 12px; color: var(--text-muted); line-height: 1.5; }
.customer-auth-submit { display: grid; align-items: center; width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid transparent; border-radius: 9px; background: var(--brand); color: var(--bg-body); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: background .15s; }
.customer-auth-submit:hover { background: var(--brand-hover); }
.customer-auth-submit:disabled { cursor: wait; }
.customer-auth-idle, .customer-auth-busy { grid-area: 1 / 1; }
.customer-auth-idle { display: flex; justify-content: space-between; align-items: center; }
.customer-auth-busy { visibility: hidden; text-align: center; }
.customer-auth-form[aria-busy="true"] .customer-auth-idle { visibility: hidden; }
.customer-auth-form[aria-busy="true"] .customer-auth-busy { visibility: visible; }
.customer-auth-recovery { min-height: 44px; display: flex; justify-content: center; align-items: center; margin-top: 8px; color: var(--text-muted); font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.customer-auth-recovery:hover, .customer-auth-portal a:hover { color: var(--text-primary); }
.customer-auth-portal { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-input); }
.customer-auth-portal a { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.customer-auth-error { margin-bottom: 22px; padding: 12px 14px; border: 1px solid var(--red); border-radius: 9px; font-size: 14px; line-height: 1.6; }
.customer-auth-error, .customer-auth-field-error, .customer-auth-lockout { color: color-mix(in srgb, var(--red) 65%, var(--text-heading)); }
.customer-auth-field-error { margin-top: 8px; font-size: 13px; }
.customer-auth .errorlist { list-style: none; padding: 0; margin: 0; }
.customer-auth-lockout { padding: 16px 0 28px; text-align: center; }
.customer-auth-lockout h2 { font-size: 18px; font-weight: 600; margin: 16px 0 10px; }
.customer-auth-lockout p { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.customer-auth-footer { position: relative; text-align: center; padding: 0 20px 24px; color: var(--text-muted); font-size: 11px; }

/* Packaging-only scene, inspired by the public website's fixedFloat motion. */
.customer-auth-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; background: radial-gradient(ellipse at 12% 35%, var(--brand-glow), transparent 48%), radial-gradient(ellipse at 90% 85%, color-mix(in srgb, var(--text-muted) 10%, transparent), transparent 42%), var(--bg-body); }
.customer-auth-scene::before { content: ""; position: absolute; inset: 0; opacity: .3; background-image: radial-gradient(circle at 10% 16%, var(--text-muted) 1px, transparent 1.6px), radial-gradient(circle at 34% 72%, var(--text-muted) 1px, transparent 1.6px), radial-gradient(circle at 80% 23%, var(--text-muted) 1.3px, transparent 2px), radial-gradient(circle at 86% 77%, var(--brand) 1px, transparent 1.8px), radial-gradient(circle at 21% 63%, var(--brand) 1px, transparent 1.8px), radial-gradient(circle at 69% 90%, var(--text-muted) 1px, transparent 1.6px); background-size: 510px 430px; }
.customer-auth-sprite { position: absolute; }
.customer-auth-orbit { position: absolute; left: 50%; top: 50%; border: 1px solid var(--border); border-radius: 50%; transform: translate(-50%, -50%) rotate(-28deg); }
.orbit-one { width: 1160px; height: 590px; }
.orbit-two { width: 1490px; height: 860px; }
.auth-floater { position: absolute; display: block; color: var(--brand); opacity: .36; animation: auth-float 12s ease-in-out infinite; animation-play-state: paused; }
.auth-floater svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.is-moving .auth-floater { animation-play-state: running; }
.floater-cup { left: calc(50% - 470px); top: 17%; width: 66px; height: 83px; --tilt: -16deg; animation-delay: -3s; }
.floater-box { right: calc(50% - 510px); top: 23%; width: 76px; height: 76px; color: var(--text-muted); --tilt: 15deg; animation-delay: -8s; animation-duration: 14s; }
.floater-bag { left: calc(50% - 440px); bottom: 13%; width: 60px; height: 75px; color: var(--text-muted); --tilt: 13deg; animation-delay: -5s; animation-duration: 13s; }
.floater-bowl { right: calc(50% - 470px); bottom: 13%; width: 80px; height: 64px; --tilt: -12deg; animation-delay: -4s; }
.floater-shopbag { left: calc(50% - 620px); top: 48%; width: 36px; height: 42px; --tilt: -12deg; animation-delay: -5s; animation-duration: 15s; }
.floater-small-cup { right: calc(50% - 620px); top: 53%; width: 36px; height: 45px; --tilt: 17deg; animation-delay: -8s; animation-duration: 13s; }
.floater-small-box { left: calc(50% - 330px); top: 44%; width: 36px; height: 36px; --tilt: -10deg; opacity: .22; animation-delay: -6s; animation-duration: 14s; }
.floater-small-bag { right: calc(50% - 350px); top: 7%; width: 36px; height: 45px; --tilt: 12deg; opacity: .25; animation-delay: -3s; animation-duration: 16s; }
@keyframes auth-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--tilt)); }
  20% { transform: translate3d(10px, -16px, 0) rotate(calc(var(--tilt) + 5deg)); }
  40% { transform: translate3d(-12px, -6px, 0) rotate(calc(var(--tilt) - 3deg)); }
  60% { transform: translate3d(8px, -20px, 0) rotate(calc(var(--tilt) + 4deg)); }
  80% { transform: translate3d(-6px, -4px, 0) rotate(calc(var(--tilt) - 5deg)); }
}
@media (max-width: 1000px) {
  .floater-cup { left: 4%; } .floater-box { right: 3%; }
  .floater-bag { left: 7%; } .floater-bowl { right: 5%; }
  .floater-shopbag, .floater-small-cup, .floater-small-box, .floater-small-bag { display: none; }
}
@media (max-width: 600px) {
  .customer-auth-top { padding: 10px 16px; min-height: 64px; }
  .customer-auth-main { padding: 8px 16px 24px; }
  .customer-auth-panel { padding: 28px 24px 16px; border-radius: 18px; }
  .customer-auth-logo { width: 136px; margin-bottom: 22px; }
  .customer-auth-heading { margin-bottom: 25px; }
  .customer-auth-heading h1 { font-size: 24px; }
  .customer-auth-form { gap: 18px; }
  .customer-auth-scene { background: radial-gradient(ellipse at 0 20%, var(--brand-glow), transparent 65%), var(--bg-body); }
  .floater-cup { left: -24px; top: 6%; opacity: .18; }
  .floater-box { right: -35px; top: auto; bottom: 3%; opacity: .15; }
  .floater-bag, .floater-bowl, .orbit-two { display: none; }
}
@media (max-width: 360px) {
  .customer-auth-top { gap: 6px; padding-inline: 14px; }
  .customer-auth-location { gap: 8px; font-size: 11px; }
  .customer-auth-location > span { padding-right: 8px; }
  .customer-auth-motion { padding-inline: 3px; font-size: 11px; }
  .customer-auth-panel { padding-inline: 20px; }
  .customer-auth-captcha { flex-wrap: wrap; }
  .customer-auth-captcha input:not([type="hidden"]) { flex: 1 1 100%; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .customer-auth .auth-floater { animation: none; transform: rotate(var(--tilt)); }
  .customer-auth :is(input, button) { transition: none; }
}

/* Branded entry hosts (blysscafe.b2b-bbp.com): house logo on landing + login. */
.customer-auth-logo-brand { width: auto; max-width: 220px; max-height: 110px; height: auto; object-fit: contain; }
.brand-landing-logo { max-width: 260px; max-height: 140px; margin-bottom: 18px; }
.brand-landing-panel { text-align: center; }
.brand-landing-panel .customer-auth-heading { align-items: center; }
.brand-landing-cta { text-decoration: none; margin-top: 10px; }
.brand-landing-cta .customer-auth-idle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.customer-auth-home { color: var(--brand); font-weight: 700; letter-spacing: .1em; text-decoration: none; }

/* Logo intro overlay (customer login). The page underneath is complete. The
   video stops on the assembled logo; the white dissolves into the page while
   the logo (colour → white) travels into the card and the card's own elements
   build up. Everything animated is opacity/transform on its own GPU layer. */
.login-intro { position: fixed; inset: 0; z-index: 50; overflow: hidden; }
.login-intro[hidden] { display: none; }
.login-intro.is-dissolving { pointer-events: none; }
.login-intro-white { position: absolute; inset: 0; background: #fff; will-change: opacity; }
.login-intro.is-dissolving .login-intro-white { opacity: 0; transition: opacity .42s ease-out; }
.login-intro-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.login-intro.is-frozen .login-intro-video { display: none; }
.login-intro-logo { position: absolute; display: none; transform-origin: center center; will-change: transform; backface-visibility: hidden; }
.login-intro.is-frozen .login-intro-logo { display: block; }
.login-intro-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; will-change: opacity; }
.login-intro-logo-white { opacity: 0; }
.login-intro.is-dissolving .login-intro-logo { transition: transform .5s cubic-bezier(.3,.9,.25,1), opacity .25s ease; }
.login-intro.is-dissolving .login-intro-logo-colour { opacity: 0; transition: opacity .28s ease .06s; }
.login-intro.is-dissolving .login-intro-logo-white { opacity: 1; transition: opacity .28s ease .06s; }
.login-intro-skip { position: absolute; right: 20px; bottom: max(20px, env(safe-area-inset-bottom)); min-height: 44px; padding: 10px 16px; border: 1px solid rgba(11,15,20,.25); border-radius: 999px; background: rgba(255,255,255,.85); color: #0b0f14; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; opacity: 0; animation: login-intro-skip-in .4s ease 1.2s forwards; }
.login-intro-skip:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.login-intro.is-frozen .login-intro-skip { opacity: 0; pointer-events: none; animation: none; }
@keyframes login-intro-skip-in { to { opacity: 1; } }
/* Page build-up: card frame snaps in, rows follow 35 ms apart, then header,
   footer and the packaging scene. Layers are promoted so it stays on the GPU. */
body.intro-playing .customer-auth-panel, body.intro-handoff .customer-auth-panel { opacity: 0; }
/* The card's own logo stays hidden until the travelling logo has landed; the two never show together. */
body.intro-playing [data-intro-target], body.intro-handoff [data-intro-target],
body.intro-done:not(.intro-landed) [data-intro-target] { opacity: 0; }
body.intro-playing .customer-auth-top, body.intro-playing .customer-auth-footer, body.intro-playing .customer-auth-scene,
body.intro-handoff .customer-auth-top, body.intro-handoff .customer-auth-footer, body.intro-handoff .customer-auth-scene { opacity: 0; }
body.intro-done .customer-auth-panel { will-change: transform, opacity; animation: login-intro-card .38s cubic-bezier(.2,.8,.2,1) .04s both; }
body.intro-done .customer-auth-heading > :not([data-intro-target]),
body.intro-done .brand-landing-cta, body.intro-done .brand-landing-powered,
body.intro-done .customer-auth-form > *, body.intro-done .customer-auth-recovery, body.intro-done .customer-auth-portal,
body.intro-done .customer-auth-lockout, body.intro-done .customer-auth-error { will-change: transform, opacity; animation: login-intro-rise .3s cubic-bezier(.2,.8,.2,1) both; }
body.intro-done .customer-auth-heading > .customer-auth-logo-brand { animation-delay: .18s; }
body.intro-done .customer-auth-heading > h1 { animation-delay: .22s; }
body.intro-done .brand-landing-cta { animation-delay: .34s; }
body.intro-done .customer-auth-heading > p { animation-delay: .26s; }
body.intro-done .customer-auth-form > :nth-child(3) { animation-delay: .30s; }
body.intro-done .customer-auth-form > :nth-child(4) { animation-delay: .34s; }
body.intro-done .customer-auth-form > :nth-child(5) { animation-delay: .38s; }
body.intro-done .customer-auth-form > :nth-child(6) { animation-delay: .42s; }
body.intro-done .customer-auth-form > :nth-child(7) { animation-delay: .46s; }
body.intro-done .customer-auth-form > :nth-child(n+8) { animation-delay: .5s; }
body.intro-done .customer-auth-recovery { animation-delay: .52s; }
body.intro-done .customer-auth-portal { animation-delay: .56s; }
body.intro-done .customer-auth-lockout, body.intro-done .customer-auth-error { animation-delay: .24s; }
body.intro-done .customer-auth-top, body.intro-done .customer-auth-footer { opacity: 1; will-change: opacity; transition: opacity .35s ease .3s; }
body.intro-done .customer-auth-scene { opacity: 1; will-change: opacity; transition: opacity .6s ease .35s; }
body.intro-skipped .customer-auth-panel, body.intro-skipped .customer-auth-panel *, body.intro-skipped [data-intro-target], body.intro-skipped .customer-auth-top, body.intro-skipped .customer-auth-footer, body.intro-skipped .customer-auth-scene { transition: none !important; animation: none !important; opacity: 1; }
@keyframes login-intro-card { from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.975); } to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); } }
@keyframes login-intro-rise { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: translate3d(0, 0, 0); } }
@media (prefers-reduced-motion: reduce) {
  .login-intro { display: none; }
  body.intro-playing .customer-auth-panel, body.intro-handoff .customer-auth-panel, body.intro-done .customer-auth-panel,
  body.intro-playing .customer-auth-top, body.intro-playing .customer-auth-footer, body.intro-playing .customer-auth-scene,
  body.intro-done .customer-auth-top, body.intro-done .customer-auth-footer, body.intro-done .customer-auth-scene { opacity: 1; transition: none; animation: none; }
  body.intro-done .customer-auth-panel *, body.intro-done .customer-auth-heading > * { animation: none; }
  body.intro-done [data-intro-target] { opacity: 1; }
}

.brand-landing-powered { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 4px; color: var(--text-muted); font-size: 12px; }
.brand-landing-bbp { width: 72px; height: auto; opacity: .9; }
