/* ==========================================================================
   Sign-in pages: staff (/login) and customer portal (/portal/login).
   Used by resources/views/layouts/auth.blade.php. Shared hero animation
   script: public/js/auth.js. The scene SVG: auth/partials/wash-scene.blade.php
   ========================================================================== */
:root {
    --water: #7dd3fc;
    --water-deep: #0e7490;
    --ease-out: cubic-bezier(.2, .7, .3, 1);
}

html { -webkit-text-size-adjust: 100%; }

body {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: #fff;
    color: var(--slate-900);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 100vh;
    min-height: 100dvh;
}

/* ==================================================================
   Hero — the wash tunnel
   ================================================================== */
.wash-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #e2e8f0;
    background:
        radial-gradient(120% 80% at 0% 0%, #065f4c 0%, transparent 55%),
        radial-gradient(90% 70% at 100% 100%, #075985 0%, transparent 60%),
        linear-gradient(160deg, #022c25 0%, #04342f 45%, #0b2f4a 100%);
}

.wash-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: radial-gradient(rgb(255 255 255 / 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
    mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
}

.hero-glow {
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.hero-glow.g1 { top: -8rem; left: -8rem; width: 26rem; height: 26rem; background: #10b98c; opacity: 0.45; animation: cwFloat 16s ease-in-out infinite alternate; }
.hero-glow.g2 { right: -6rem; bottom: -6rem; width: 22rem; height: 22rem; background: #0ea5e9; opacity: 0.35; animation: cwFloat 20s ease-in-out infinite alternate-reverse; }

/* Rising soap bubbles (generated by JS) */
.bubbles { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; --rise: -110vh; }
.bubble {
    position: absolute;
    bottom: -3rem;
    left: var(--x);
    width: var(--s);
    height: var(--s);
    border-radius: 50%;
    border: 1px solid rgb(255 255 255 / 0.22);
    background: radial-gradient(circle at 30% 28%, rgb(255 255 255 / 0.6), rgb(255 255 255 / 0.08) 38%, rgb(125 211 252 / 0.06) 70%);
    animation: cwRise var(--t) linear var(--d) infinite;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.4vh, 1.75rem);
    height: 100%;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.hero-brand { display: flex; align-items: center; gap: 0.75rem; min-width: 0; }
.hero-brand img {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0.125rem;
    border-radius: 0.75rem;
    background: #fff;
    object-fit: contain;
    box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2), 0 8px 20px -8px rgb(0 0 0 / 0.5);
}
.hero-brand span { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.01em; color: #fff; overflow-wrap: anywhere; }

.hero-copy { max-width: 32rem; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 0.08);
    border: 1px solid rgb(255 255 255 / 0.14);
    color: var(--brand-200);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hero-eyebrow .bi { display: inline-block; color: var(--water); animation: cwDrip 2.4s ease-in-out infinite; }

.hero-title {
    margin: 0.875rem 0 0;
    font-size: clamp(1.875rem, 3.4vw, 3rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #fff;
}
.shine-text {
    background: linear-gradient(100deg, #6ee7c2 20%, #ffffff 40%, #7dd3fc 60%, #6ee7c2 80%);
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: cwTextShine 6s linear infinite;
}
.hero-sub { max-width: 28rem; margin: 0.75rem 0 0; font-size: clamp(0.9375rem, 1.15vw, 1.0625rem); line-height: 1.6; color: rgb(226 232 240 / 0.78); }

.scene-wrap { display: flex; flex: 1; align-items: center; justify-content: center; min-height: 0; }
.scene {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    max-height: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}

/* Wash stage stepper — synced to the 12s scene loop */
.wash-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.wash-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.375rem;
    padding: 0.625rem 0.25rem;
    border: 1px solid rgb(255 255 255 / 0.08);
    border-radius: 0.875rem;
    background: rgb(255 255 255 / 0.04);
    color: rgb(203 213 225 / 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    animation: 12s linear infinite;
}
.wash-step .ws-icon { display: grid; place-items: center; width: 1.875rem; height: 1.875rem; border-radius: 0.625rem; background: rgb(255 255 255 / 0.07); font-size: 0.95rem; }
.wash-step.s1 { animation-name: cwStep1; }
.wash-step.s2 { animation-name: cwStep2; }
.wash-step.s3 { animation-name: cwStep3; }
.wash-step.s4 { animation-name: cwStep4; }

.wash-progress { height: 3px; margin-top: -0.25rem; overflow: hidden; border-radius: 3px; background: rgb(255 255 255 / 0.08); }
.wash-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-400), var(--water)); transform-origin: left; animation: cwProgress 12s linear infinite; }

/* ---- SVG scene parts ---- */
.scene .car { transform: translate(130px, 118px); animation: cwCar 12s infinite; }
.scene .car-body { animation: cwBob 12s infinite; }
.scene .wheel { transform-box: fill-box; transform-origin: center; animation: cwWheel 12s infinite; }
.scene .mud { opacity: 0; animation: cwMud 12s infinite; }
.scene .foam { opacity: 0; animation: cwFoam 12s infinite; }
.scene .shine { transform: translateX(300px); animation: cwShineSweep 12s infinite; }
.scene .beam { opacity: 0; animation: cwBeam 12s infinite; }
.scene .spark { transform-box: fill-box; transform-origin: center; transform: scale(0); animation: cwSpark 12s infinite; }
.scene .spark.k2 { animation-delay: 0.2s; }
.scene .spark.k3 { animation-delay: 0.4s; }
.scene .spark.k4 { animation-delay: 0.6s; }
.scene .spray, .scene .mist { opacity: 0; animation: cwSpray 12s infinite; }
.scene .drop { animation: cwDrop 0.7s linear infinite; }
.scene .drop.late { animation-delay: 0.35s; }
.scene .roller-drop { animation: cwRollerDrop 12s infinite; }
.scene .roller { transform-box: fill-box; transform-origin: center; animation: cwSpin 1.1s linear infinite; }
.scene .brush-strips { animation: cwStrips 0.45s linear infinite; }
.scene .lamp-stop { opacity: 0.25; animation: cwLampStop 12s infinite; }
.scene .lamp-go { animation: cwLampGo 12s infinite; }
.scene .gantry-led { animation: cwPulse 2s ease-in-out infinite; }
.scene .puddle { animation: cwPuddle 12s infinite; }
/* All vehicles animate in sync; only the one in the bay is painted */
.scene .vehicle { visibility: hidden; }
.scene .vehicle.is-on { visibility: visible; }

/* "In the bay" plate under the scene */
.bay-tag { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.375rem 0.625rem; margin-top: -0.5rem; color: rgb(226 232 240 / 0.8); font-size: 0.75rem; font-weight: 600; }
.bay-label { color: rgb(203 213 225 / 0.55); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; }
.bay-plate {
    display: inline-flex;
    align-items: center;
    padding: 0.0625rem 0.5rem;
    border: 2px solid var(--slate-900);
    border-radius: 0.375rem;
    background: #ffd21f;
    color: var(--slate-900);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgb(255 210 31 / 0.35), 0 6px 14px -8px rgb(0 0 0 / 0.6);
}
.bay-type { display: inline-flex; align-items: center; gap: 0.3rem; }
.bay-type .bi { color: var(--brand-300); }
.bay-tag.swap .bay-plate { animation: cwPlateIn 0.6s var(--ease-out) backwards; }
.bay-tag.swap .bay-type { animation: cwFadeUp 0.5s var(--ease-out) 0.1s backwards; }

/* ==================================================================
   Sign-in panel
   ================================================================== */
.auth-panel { position: relative; z-index: 3; background: #fff; }
.auth-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(40rem 20rem at 100% 0%, rgb(16 185 140 / 0.07), transparent 60%),
        radial-gradient(30rem 18rem at 0% 100%, rgb(14 165 233 / 0.06), transparent 60%);
}
.auth-inner {
    position: relative;
    width: 100%;
    max-width: 27rem;
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 3rem) 1.25rem;
    padding-bottom: max(1.75rem, env(safe-area-inset-bottom));
}

.auth-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; margin-bottom: 1.25rem; }
.greet { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.8125rem; font-weight: 600; color: var(--brand-700); }
.greet .bi { display: inline-block; color: var(--amber-500); animation: cwBob2 3s ease-in-out infinite; }
.clock {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--slate-100);
    color: var(--slate-700);
    font-size: 0.75rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.clock .bi { color: var(--slate-400); }
.clock .colon { animation: cwBlink 1s steps(1) infinite; }
.clock .clk-date { padding-left: 0.375rem; border-left: 1px solid var(--slate-300); color: var(--slate-500); font-weight: 500; }

.auth-title { margin: 0; font-size: clamp(1.625rem, 3vw, 1.875rem); font-weight: 800; letter-spacing: -0.03em; color: var(--slate-900); }
.auth-subtitle { margin: 0.375rem 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--slate-500); }
.auth-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.auth-alerts .alert { margin-bottom: 1rem; font-size: 0.8125rem; line-height: 1.5; border-radius: 0.875rem; }

.step-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; color: var(--slate-500); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.step-label .count { color: var(--slate-400); font-weight: 500; letter-spacing: 0; text-transform: none; }

.search-wrap { position: relative; margin-bottom: 0.625rem; }
.search-wrap .bi { position: absolute; top: 50%; left: 0.875rem; transform: translateY(-50%); color: var(--slate-400); pointer-events: none; }
.search-wrap .form-control { min-height: 2.75rem; padding-left: 2.5rem; border-radius: 0.75rem; font-size: 1rem; }

/* Account picker */
.user-grid { display: grid; gap: 0.5rem; max-height: 19.5rem; margin: -0.25rem; padding: 0.25rem; overflow-y: auto; scrollbar-width: thin; }
.user-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.625rem 0.75rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.875rem;
    background: #fff;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.2s var(--ease-out), border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    animation: cwFadeUp 0.45s var(--ease-out) backwards;
    animation-delay: calc(var(--base, 520ms) + min(var(--i, 0), 10) * 45ms);
}
.user-card[hidden] { display: none !important; }
.user-card:hover { border-color: var(--brand-300); background: linear-gradient(135deg, #fff, var(--brand-50)); box-shadow: 0 10px 22px -14px rgb(5 150 115 / 0.55); transform: translateY(-1px); }
.user-card:focus-visible { border-color: var(--brand-400); box-shadow: 0 0 0 4px rgb(16 185 140 / 0.18); outline: none; }
.user-card:active { transform: scale(0.985); }
.user-card .uc-go { color: var(--brand-600); opacity: 0; transform: translateX(-6px); transition: opacity 0.2s ease, transform 0.2s var(--ease-out); }
.user-card:hover .uc-go, .user-card:focus-visible .uc-go { opacity: 1; transform: none; }
.user-card .uc-bio { display: inline-grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 0.5rem; background: var(--brand-50); color: var(--brand-600); font-size: 0.9rem; }

.user-avatar {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.375rem;
    height: 2.375rem;
    border-radius: 9999px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.25);
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
}
.user-avatar.av-1 { background: linear-gradient(135deg, var(--sky-500), var(--sky-700)); }
.user-avatar.av-2 { background: linear-gradient(135deg, #8b5cf6, var(--violet-700)); }
.user-avatar.av-3 { background: linear-gradient(135deg, var(--amber-500), var(--amber-700)); }
.user-avatar.av-4 { background: linear-gradient(135deg, #fb7185, var(--rose-700)); }
.user-avatar.av-5 { background: linear-gradient(135deg, #06b6d4, var(--water-deep)); }

.user-info { flex: 1; min-width: 0; }
.user-name { overflow: hidden; color: var(--slate-900); font-size: 0.875rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.user-empty { margin: 0.5rem 0 0; color: var(--slate-500); font-size: 0.8125rem; text-align: center; }

.selected-user {
    display: none;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--brand-200);
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--brand-50), var(--sky-50));
}
.selected-user.show { display: flex; }
.selected-user .user-avatar { position: relative; width: 2.75rem; height: 2.75rem; font-size: 1.05rem; }
.selected-user .user-avatar::after { content: ''; position: absolute; right: -1px; bottom: -1px; width: 0.75rem; height: 0.75rem; border: 2px solid #fff; border-radius: 50%; background: var(--brand-500); }
.btn-change {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.625rem;
    background: #fff;
    color: var(--slate-700);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-change:hover, .btn-change:focus-visible { border-color: var(--brand-300); color: var(--brand-700); }

/* Fingerprint / face */
.btn-bio {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0.875rem 1rem;
    overflow: hidden;
    border: 1px solid var(--brand-200);
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--brand-50), #ecfeff);
    color: var(--slate-900);
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s var(--ease-out);
}
.btn-bio:hover:not(:disabled) { border-color: var(--brand-400); box-shadow: 0 12px 26px -16px rgb(5 150 115 / 0.6); transform: translateY(-1px); }
.btn-bio:focus-visible { outline: none; box-shadow: 0 0 0 4px rgb(16 185 140 / 0.2); }
.btn-bio:disabled { cursor: progress; }
.bio-ring {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-600), var(--water-deep));
    color: #fff;
    font-size: 1.6rem;
}
.bio-ring::before, .bio-ring::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--brand-400); border-radius: 50%; animation: cwPing 2.2s cubic-bezier(0, 0, 0.2, 1) infinite; }
.bio-ring::after { animation-delay: 1.1s; }
.bio-scan { position: absolute; top: 24%; left: 22%; right: 22%; height: 2px; border-radius: 2px; background: #d1faec; box-shadow: 0 0 8px 1px #6ee7c2; animation: cwScan 1.6s ease-in-out infinite alternate; }
.btn-bio:disabled .bio-scan { animation-duration: 0.6s; }
.bio-copy { flex: 1; min-width: 0; }
.bio-title { display: block; font-size: 0.9375rem; font-weight: 700; }
.bio-sub { display: block; margin-top: 0.125rem; color: var(--slate-500); font-size: 0.75rem; }

.btn-alt { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 0.5rem; padding: 0.375rem 0.5rem; border: 0; border-radius: 0.5rem; background: none; color: var(--slate-500); font-size: 0.8125rem; font-weight: 500; }
.btn-alt:hover, .btn-alt:focus-visible { background: var(--slate-100); color: var(--slate-800); outline: none; }

/* Password */
.password-wrapper { position: relative; }
.password-wrapper .pw-icon { position: absolute; top: 50%; left: 0.95rem; transform: translateY(-50%); color: var(--slate-400); pointer-events: none; transition: color 0.2s ease; }
.password-wrapper .form-control { min-height: 3.125rem; padding-left: 2.6rem; padding-right: 3rem; border-radius: 0.875rem; font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.password-wrapper .form-control:focus { border-color: var(--brand-400); box-shadow: 0 0 0 4px rgb(16 185 140 / 0.15); }
.password-wrapper:focus-within .pw-icon { color: var(--brand-600); }
.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.3rem;
    display: inline-grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    border-radius: 0.625rem;
    background: transparent;
    color: var(--slate-400);
    font-size: 1.05rem;
    transform: translateY(-50%);
}
.password-toggle:hover, .password-toggle:focus-visible { background: var(--slate-100); color: var(--slate-700); outline: none; }
.caps-hint { display: flex; align-items: center; gap: 0.375rem; margin-top: 0.5rem; color: var(--amber-700); font-size: 0.75rem; font-weight: 600; }
.caps-hint[hidden] { display: none; }

/* Primary sign-in button */
.btn-wash {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3.25rem;
    overflow: hidden;
    border: 0;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, var(--brand-700), var(--water-deep));
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: 0 12px 26px -14px rgb(4 119 94 / 0.9);
    transition: transform 0.15s var(--ease-out), box-shadow 0.2s ease, filter 0.2s ease;
}
.btn-wash::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.35) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 0.75s var(--ease-out);
}
.btn-wash:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 16px 30px -14px rgb(4 119 94 / 0.95); transform: translateY(-1px); }
.btn-wash:hover::after { transform: translateX(120%); }
.btn-wash:active:not(:disabled) { transform: translateY(0) scale(0.99); }
.btn-wash:focus-visible { outline: none; box-shadow: 0 0 0 4px rgb(16 185 140 / 0.3); }
.btn-wash .btn-label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 0.5rem; }
.btn-wash .bi-arrow-right { transition: transform 0.2s var(--ease-out); }
.btn-wash:hover .bi-arrow-right { transform: translateX(4px); }
.btn-wash.is-loading { cursor: progress; }
.btn-wash.is-loading::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(-45deg, rgb(255 255 255 / 0.12) 0 10px, transparent 10px 20px);
    background-size: 28px 28px;
    animation: cwFlow 0.8s linear infinite;
}

/* ---- Customer portal card (top of the panel) ---- */
.portal-card {
    position: relative;
    isolation: isolate;
    display: block;
    padding: 1.5px;
    overflow: hidden;
    border-radius: 1.25rem;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 18px 40px -22px rgb(76 29 149 / 0.75);
    transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
/* Spinning rainbow border: a big square conic gradient turning behind the card */
.portal-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: -1;
    width: 160%;
    aspect-ratio: 1;
    background: conic-gradient(from 0deg, #f59e0b, #ec4899, #8b5cf6, #38bdf8, #34d3a6, #f59e0b);
    transform: translate(-50%, -50%);
    animation: cwBorderSpin 6s linear infinite;
}
.portal-card:hover, .portal-card:focus-visible { color: #fff; box-shadow: 0 24px 46px -22px rgb(76 29 149 / 0.9); transform: translateY(-2px); outline: none; }
.portal-card:focus-visible { box-shadow: 0 0 0 4px rgb(139 92 246 / 0.35), 0 24px 46px -22px rgb(76 29 149 / 0.9); }
.portal-inner {
    position: relative;
    display: grid;
    gap: 0.875rem;
    padding: 1rem 1.125rem 1.05rem;
    overflow: hidden;
    border-radius: calc(1.25rem - 1.5px);
    background:
        radial-gradient(18rem 9rem at 100% 0%, rgb(56 189 248 / 0.35), transparent 60%),
        radial-gradient(14rem 8rem at 0% 100%, rgb(236 72 153 / 0.28), transparent 60%),
        linear-gradient(135deg, #2e1065 0%, #4c1d95 45%, #0c4a6e 100%);
}
.portal-inner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 35%, rgb(255 255 255 / 0.22) 50%, transparent 65%);
    transform: translateX(-120%);
    pointer-events: none;
    animation: cwPortalShine 5.5s ease-in-out 1.2s infinite;
}
.portal-head { display: flex; align-items: center; gap: 0.875rem; }
.portal-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, #fbbf24, #f472b6);
    color: #fff;
    font-size: 1.4rem;
    box-shadow: 0 10px 20px -10px rgb(244 114 182 / 0.9), inset 0 0 0 1px rgb(255 255 255 / 0.35);
    animation: cwFloatIcon 3.2s ease-in-out infinite;
}
.portal-copy { display: block; flex: 1; min-width: 0; }
.portal-eyebrow { display: inline-flex; align-items: center; gap: 0.3rem; color: #fde68a; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.portal-title { display: block; margin-top: 0.125rem; color: #fff; font-size: 1.125rem; font-weight: 800; letter-spacing: -0.02em; }
.portal-sub { display: block; color: rgb(224 231 255 / 0.82); font-size: 0.8125rem; }
.portal-go {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #fff;
    color: var(--violet-700);
    font-size: 1.05rem;
    box-shadow: 0 8px 18px -8px rgb(0 0 0 / 0.5);
    transition: transform 0.25s var(--ease-out);
}
.portal-card:hover .portal-go, .portal-card:focus-visible .portal-go { transform: translateX(3px); }
.portal-perks { display: flex; flex-wrap: wrap; gap: 0.375rem; }
.portal-perks span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid rgb(255 255 255 / 0.16);
    border-radius: 999px;
    background: rgb(255 255 255 / 0.1);
    color: #eef2ff;
    font-size: 0.75rem;
    font-weight: 600;
}
.portal-perks .bi { color: #fde68a; }
.portal-twinkle { position: absolute; z-index: 1; color: #fde68a; pointer-events: none; animation: cwTwinkle 2.6s ease-in-out infinite; }
.portal-twinkle.t1 { top: 0.5rem; right: 0.8rem; font-size: 0.7rem; }
.portal-twinkle.t2 { bottom: 0.6rem; right: 0.9rem; font-size: 0.55rem; animation-delay: 1.1s; }

/* ---- "Staff only" divider + staff panel ---- */
.panel-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0 1rem; }
.panel-divider::before, .panel-divider::after { content: ''; flex: 1; height: 1px; }
.panel-divider::before { background: linear-gradient(90deg, transparent, var(--slate-200)); }
.panel-divider::after { background: linear-gradient(90deg, var(--slate-200), transparent); }
.panel-divider span { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.25rem 0.7rem; border-radius: 999px; background: var(--slate-100); color: var(--slate-500); font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.signin-panel {
    position: relative;
    padding: 1.25rem;
    border: 1px solid var(--slate-200);
    border-radius: 1.25rem;
    background: #fff;
    box-shadow: 0 14px 34px -24px rgb(15 23 42 / 0.35);
}
.signin-panel::before { content: ''; position: absolute; top: 0; left: 1.25rem; right: 1.25rem; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--brand-500), var(--water)); }
.signin-panel .auth-title { display: flex; align-items: center; gap: 0.625rem; font-size: clamp(1.375rem, 2.6vw, 1.625rem); }
.title-badge { display: inline-grid; place-items: center; flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 0.75rem; background: var(--brand-50); color: var(--brand-700); font-size: 1.1rem; box-shadow: inset 0 0 0 1px var(--brand-200); }
.signin-panel .auth-form { margin-top: 1.25rem; }

.auth-quote { position: relative; margin: 1.25rem 0 0; padding: 0.9rem 1rem 0.9rem 2.75rem; border: 1px solid var(--slate-200); border-radius: 1rem; background: linear-gradient(135deg, var(--slate-50), #f0fdfa); }
.auth-quote > .bi-quote { position: absolute; top: 0.55rem; left: 0.75rem; color: var(--brand-300); font-size: 1.5rem; }
/* Fixed height (2 lines + author) so rotating quotes never shift the form; short ones sit centred */
.quote-body { display: flex; flex-direction: column; justify-content: center; min-height: 4.3rem; transition: opacity 0.4s ease, transform 0.4s var(--ease-out); }
.auth-quote.is-fading .quote-body { opacity: 0; transform: translateY(6px); }
.quote-text { margin: 0; color: var(--slate-600); font-size: 0.8125rem; font-style: italic; line-height: 1.6; }
.quote-author { margin-top: 0.375rem; color: var(--brand-700); font-size: 0.75rem; font-weight: 600; }

.auth-footer { margin-top: 1.75rem; color: var(--slate-400); font-size: 0.75rem; line-height: 1.6; text-align: center; }
.contact-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; margin-top: 0.625rem; }
.contact-btn { display: inline-grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 0.625rem; color: var(--slate-400); font-size: 0.9375rem; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease, transform 0.2s var(--ease-out); }
.contact-btn:hover { background: #fff; box-shadow: 0 0 0 1px var(--slate-200); transform: translateY(-2px); }
.contact-btn.whatsapp:hover { color: #25d366; }
.contact-btn.facebook:hover { color: #1877f2; }
.contact-btn.email:hover { color: #ea4335; }
.contact-btn.phone:hover { color: var(--brand-600); }
.contact-btn.website:hover { color: var(--violet-600); }

/* Entrance + step transitions */
/* fill-mode "backwards" (not "both") so hover transforms still work once the entrance ends */
.reveal { animation: cwFadeUp 0.6s var(--ease-out) backwards; animation-delay: calc(var(--d, 0) * 70ms + 120ms); }
.step-in { animation: cwFadeUp 0.4s var(--ease-out) backwards; }
.auth-card.has-error { animation: cwShake 0.45s ease-in-out 0.55s; }

/* ==================================================================
   Layout breakpoints
   ================================================================== */
@media (min-width: 992px) {
    .auth-shell { grid-template-columns: minmax(0, 1.15fr) minmax(27rem, 1fr); align-items: start; }
    .wash-hero {
        position: sticky;
        top: 0.75rem;
        height: calc(100vh - 1.5rem);
        height: calc(100dvh - 1.5rem);
        margin: 0.75rem 0 0.75rem 0.75rem;
        border-radius: 1.75rem;
    }
    .auth-panel { display: flex; align-items: center; min-height: 100vh; min-height: 100dvh; }
}

@media (min-width: 992px) and (max-height: 760px) {
    .hero-sub { display: none; }
    .hero-title { font-size: clamp(1.5rem, 2.6vw, 2.25rem); }
}

@media (max-width: 991.98px) {
    .wash-hero { padding-bottom: 1.5rem; }
    .bubbles { --rise: -60vh; }
    .hero-inner { padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem 1.25rem; }
    .hero-copy { max-width: none; }
    .hero-sub { display: none; }
    .scene { max-width: 460px; max-height: 190px; }
    .auth-panel { margin-top: -1.5rem; border-radius: 1.5rem 1.5rem 0 0; box-shadow: 0 -14px 30px -20px rgb(2 44 37 / 0.6); }
}

@media (max-width: 575.98px) {
    .hero-inner { gap: 0.875rem; }
    .hero-eyebrow, .wash-steps, .wash-progress { display: none; }
    .hero-title { margin-top: 0; font-size: 1.375rem; }
    .hero-brand img { width: 2.25rem; height: 2.25rem; }
    .hero-brand span { font-size: 1rem; }
    .scene { max-height: 140px; }
    .bay-tag { margin-top: -0.375rem; }
    .bay-label { display: none; }
    .auth-inner { padding-top: 1.5rem; }
    /* Phones: keep the portal card compact so staff accounts stay near the fold */
    .portal-inner { gap: 0.75rem; padding: 0.875rem 0.875rem 0.9rem; }
    .portal-head { gap: 0.75rem; }
    .portal-icon { width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; font-size: 1.2rem; }
    .portal-title { font-size: 1.0625rem; }
    .portal-sub { font-size: 0.75rem; }
    .portal-go { position: absolute; top: 0.75rem; right: 0.75rem; width: 2rem; height: 2rem; font-size: 0.9rem; }
    .portal-twinkle.t1 { display: none; }
    .portal-perks { flex-wrap: nowrap; gap: 0.3rem; }
    .portal-perks span { padding: 0.2rem 0.5rem; font-size: 0.6875rem; white-space: nowrap; }
    .panel-divider { margin: 0.875rem 0 0.75rem; }
    .signin-panel { padding: 1.125rem 1rem 1rem; }
}

/* ==================================================================
   Keyframes — the scene runs on one shared 12s timeline:
   0–18% drive in · 18–60% wash · 60–72% shine · 72–90% drive out
   ================================================================== */
@keyframes cwCar {
    0%   { transform: translate(-240px, 118px); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
    18%  { transform: translate(130px, 118px); }
    72%  { transform: translate(130px, 118px); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
    90%, 100% { transform: translate(520px, 118px); }
}
@keyframes cwWheel {
    0%   { transform: rotate(0deg); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
    18%  { transform: rotate(1440deg); }
    72%  { transform: rotate(1440deg); animation-timing-function: cubic-bezier(.6, 0, .8, .4); }
    90%, 100% { transform: rotate(2880deg); }
}
@keyframes cwBob {
    0%, 17.5% { transform: translateY(0); }
    19.5% { transform: translateY(1.6px); }
    21.5% { transform: translateY(-0.6px); }
    23%, 100% { transform: translateY(0); }
}
@keyframes cwMud { 0%, 28% { opacity: 1; } 52%, 100% { opacity: 0; } }
@keyframes cwFoam { 0%, 25% { opacity: 0; } 30%, 50% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes cwSpray { 0%, 19% { opacity: 0; } 22%, 55% { opacity: 1; } 58%, 100% { opacity: 0; } }
/* --roll / --fall are set per vehicle by the login script (taller vehicles = shorter drop) */
@keyframes cwRollerDrop { 0%, 19% { transform: translateY(0); } 24%, 54% { transform: translateY(var(--roll, 27px)); } 59%, 100% { transform: translateY(0); } }
@keyframes cwShineSweep { 0%, 60% { transform: translateX(0); } 70%, 100% { transform: translateX(300px); } }
@keyframes cwSpark {
    0%, 61% { transform: scale(0) rotate(0deg); opacity: 0; }
    65% { transform: scale(1.15) rotate(45deg); opacity: 1; }
    69% { transform: scale(0.45) rotate(90deg); opacity: 0.7; }
    72%, 100% { transform: scale(0) rotate(120deg); opacity: 0; }
}
@keyframes cwBeam { 0%, 15% { opacity: 0.9; } 20%, 70% { opacity: 0; } 74%, 100% { opacity: 0.9; } }
@keyframes cwLampStop { 0%, 18% { opacity: 0.25; } 20%, 58% { opacity: 1; } 60%, 100% { opacity: 0.25; } }
@keyframes cwLampGo { 0%, 18% { opacity: 1; } 20%, 58% { opacity: 0.25; } 60%, 100% { opacity: 1; } }
@keyframes cwPuddle { 0%, 20% { opacity: 0.35; } 40%, 75% { opacity: 1; } 100% { opacity: 0.35; } }
@keyframes cwDrop { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(var(--fall, 95px)); opacity: 0; } }
@keyframes cwBorderSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes cwPortalShine { 0% { transform: translateX(-120%); } 30%, 100% { transform: translateX(120%); } }
@keyframes cwFloatIcon { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-3px) rotate(-5deg); } }
@keyframes cwTwinkle { 0%, 100% { opacity: 0.15; transform: scale(0.7) rotate(0deg); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@keyframes cwPlateIn { from { opacity: 0; transform: translateY(8px) rotateX(70deg); } to { opacity: 1; transform: none; } }
@keyframes cwSpin { to { transform: rotate(360deg); } }
@keyframes cwStrips { to { transform: translateY(12px); } }
@keyframes cwPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes cwProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@keyframes cwStep1 {
    0%, 16%, 100% { background-color: rgb(52 211 166 / 0.16); border-color: rgb(110 231 194 / 0.5); color: #ecfdf7; }
    19%, 97% { background-color: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.08); color: rgb(203 213 225 / 0.6); }
}
@keyframes cwStep2 {
    0%, 16%, 61%, 100% { background-color: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.08); color: rgb(203 213 225 / 0.6); }
    19%, 58% { background-color: rgb(52 211 166 / 0.16); border-color: rgb(110 231 194 / 0.5); color: #ecfdf7; }
}
@keyframes cwStep3 {
    0%, 58%, 73%, 100% { background-color: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.08); color: rgb(203 213 225 / 0.6); }
    61%, 70% { background-color: rgb(52 211 166 / 0.16); border-color: rgb(110 231 194 / 0.5); color: #ecfdf7; }
}
@keyframes cwStep4 {
    0%, 70%, 100% { background-color: rgb(255 255 255 / 0.04); border-color: rgb(255 255 255 / 0.08); color: rgb(203 213 225 / 0.6); }
    73%, 97% { background-color: rgb(52 211 166 / 0.16); border-color: rgb(110 231 194 / 0.5); color: #ecfdf7; }
}

@keyframes cwRise {
    0% { transform: translate(0, 0) scale(0.7); opacity: 0; }
    10% { opacity: 0.9; }
    50% { transform: translate(var(--drift, 0px), calc(var(--rise) * 0.5)) scale(1); }
    92% { opacity: 0.7; transform: translate(0, calc(var(--rise) * 0.95)) scale(1.05); }
    100% { transform: translate(0, var(--rise)) scale(1.5); opacity: 0; }
}
@keyframes cwFloat { from { transform: translate(0, 0) scale(1); } to { transform: translate(3rem, 2rem) scale(1.15); } }
@keyframes cwTextShine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes cwDrip { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(2px); } }
@keyframes cwBob2 { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-2px) rotate(8deg); } }
@keyframes cwBlink { 50% { opacity: 0.25; } }
@keyframes cwFadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes cwShake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(2px); } }
@keyframes cwPing { 0% { transform: scale(1); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes cwScan { from { top: 24%; } to { top: 74%; } }
@keyframes cwFlow { from { background-position: 0 0; } to { background-position: 28px 0; } }

/* Reduced motion: a still frame of a clean, shining car in the bay */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .bubbles { display: none; }
    .scene .spark { transform: scale(1); }
    .wash-step.s3 { background-color: rgb(52 211 166 / 0.16); border-color: rgb(110 231 194 / 0.5); color: #ecfdf7; }
    .wash-progress span { transform: scaleX(0.66); }
}

/* ==========================================================================
   Customer portal tone (body.auth-tone-customer): same layout, violet accents
   that match the Customer portal card on the staff page.
   ========================================================================== */
.auth-tone-customer {
    --tone-50: #f5f3ff;
    --tone-200: #ddd6fe;
    --tone-300: #c4b5fd;
    --tone-400: #a78bfa;
    --tone-500: #8b5cf6;
    --tone-600: #7c3aed;
    --tone-700: #6d28d9;
}
.auth-tone-customer .hero-glow.g1 { background: #8b5cf6; opacity: 0.4; }
.auth-tone-customer .hero-eyebrow { color: var(--tone-200); }
.auth-tone-customer .hero-eyebrow .bi { color: #f9a8d4; }
.auth-tone-customer .auth-panel::before {
    background:
        radial-gradient(40rem 20rem at 100% 0%, rgb(139 92 246 / 0.08), transparent 60%),
        radial-gradient(30rem 18rem at 0% 100%, rgb(14 165 233 / 0.06), transparent 60%);
}
.auth-tone-customer .greet { color: var(--tone-700); }
.auth-tone-customer .signin-panel::before { background: linear-gradient(90deg, #8b5cf6, #ec4899, #38bdf8); }
.auth-tone-customer .title-badge { background: var(--tone-50); color: var(--tone-700); box-shadow: inset 0 0 0 1px var(--tone-200); }
.auth-tone-customer .btn-wash { background: linear-gradient(135deg, var(--tone-700), #0369a1); box-shadow: 0 12px 26px -14px rgb(109 40 217 / 0.85); }
.auth-tone-customer .btn-wash:hover:not(:disabled) { box-shadow: 0 16px 30px -14px rgb(109 40 217 / 0.9); }
.auth-tone-customer .btn-wash:focus-visible { box-shadow: 0 0 0 4px rgb(139 92 246 / 0.3); }
.auth-tone-customer .btn-bio { border-color: var(--tone-200); background: linear-gradient(135deg, var(--tone-50), var(--sky-50)); }
.auth-tone-customer .btn-bio:hover:not(:disabled) { border-color: var(--tone-400); box-shadow: 0 12px 26px -16px rgb(109 40 217 / 0.55); }
.auth-tone-customer .btn-bio:focus-visible { box-shadow: 0 0 0 4px rgb(139 92 246 / 0.2); }
.auth-tone-customer .bio-ring { background: linear-gradient(135deg, var(--tone-600), #0369a1); }
.auth-tone-customer .bio-ring::before,
.auth-tone-customer .bio-ring::after { border-color: var(--tone-400); }
.auth-tone-customer .bio-scan { background: #ede9fe; box-shadow: 0 0 8px 1px var(--tone-300); }
.auth-tone-customer .selected-user { border-color: var(--tone-200); background: linear-gradient(135deg, var(--tone-50), var(--sky-50)); }
.auth-tone-customer .selected-user .user-avatar::after { background: var(--tone-500); }
.auth-tone-customer .btn-change:hover,
.auth-tone-customer .btn-change:focus-visible { border-color: var(--tone-300); color: var(--tone-700); }
.auth-tone-customer .auth-quote { background: linear-gradient(135deg, var(--slate-50), var(--tone-50)); }
.auth-tone-customer .auth-quote > .bi-quote { color: var(--tone-300); }
.auth-tone-customer .quote-author { color: var(--tone-700); }
.auth-tone-customer .contact-btn.phone:hover { color: var(--tone-600); }

/* Phone-or-email field (customer sign-in) */
.field-wrapper { position: relative; }
.field-wrapper .field-icon { position: absolute; top: 50%; left: 0.95rem; color: var(--slate-400); transform: translateY(-50%); pointer-events: none; transition: color 0.2s ease; }
.field-wrapper .form-control { min-height: 3.25rem; padding-left: 2.7rem; border-radius: 0.875rem; font-size: 1rem; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.field-wrapper .form-control:focus { border-color: var(--tone-400, var(--brand-400)); box-shadow: 0 0 0 4px rgb(139 92 246 / 0.15); }
.field-wrapper:focus-within .field-icon { color: var(--tone-600, var(--brand-600)); }
.field-icon.swap { animation: cwIconSwap 0.35s var(--ease-out); }
.field-hint { display: flex; align-items: center; gap: 0.375rem; margin: 0.5rem 0 0; color: var(--slate-500); font-size: 0.75rem; }
.field-hint .bi { color: var(--tone-500, var(--brand-500)); }
.user-hello { display: block; color: var(--slate-500); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }

/* Customer footer: business contacts + a quiet way back to staff sign-in */
.contact-title { color: var(--slate-500); font-size: 0.75rem; font-weight: 600; }
.staff-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.75rem;
    padding: 0.375rem 0.8rem;
    border: 1px solid var(--slate-200);
    border-radius: 999px;
    background: #fff;
    color: var(--slate-600);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}
.staff-link:hover, .staff-link:focus-visible { border-color: var(--brand-300); color: var(--brand-700); transform: translateY(-1px); outline: none; }

@keyframes cwIconSwap { from { opacity: 0; transform: translateY(-50%) scale(0.4) rotate(-30deg); } to { opacity: 1; transform: translateY(-50%) scale(1); } }

/* ---- Staff sign-in: email / phone field in the teal tone, and the "or" before fingerprint ---- */
.auth-tone-staff .field-wrapper .form-control:focus { border-color: var(--brand-400); box-shadow: 0 0 0 4px rgb(16 185 140 / 0.15); }
.auth-tone-staff .field-wrapper:focus-within .field-icon { color: var(--brand-600); }
.or-divider { display: flex; align-items: center; gap: 0.75rem; margin: 0.25rem 0 0.75rem; color: var(--slate-400); font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--slate-200); }
#biometricStep[hidden] { display: none; }

/* ---- Customer sign-up (customer/auth/register.blade.php) ---- */
.signup-form { gap: 0.875rem; }
.auth-tone-customer .password-wrapper .form-control:focus { border-color: var(--tone-400); box-shadow: 0 0 0 4px rgb(139 92 246 / 0.15); }
.auth-tone-customer .password-wrapper:focus-within .pw-icon { color: var(--tone-600); }

/* Server-side errors: rose border + icon, message under the field (no Bootstrap icon inside the input) */
.field-wrapper .form-control.is-invalid { padding-right: 0.75rem; background-image: none; }
.password-wrapper .form-control.is-invalid { padding-right: 3rem; background-image: none; }
.field-wrapper .form-control.is-invalid,
.password-wrapper .form-control.is-invalid,
.field-wrapper .form-control.is-invalid:focus,
.password-wrapper .form-control.is-invalid:focus { border-color: #fb7185; }
.field-wrapper .form-control.is-invalid:focus,
.password-wrapper .form-control.is-invalid:focus { box-shadow: 0 0 0 4px rgb(225 29 72 / 0.12); }
.has-invalid .field-icon,
.has-invalid .pw-icon,
.has-invalid:focus-within .field-icon,
.has-invalid:focus-within .pw-icon { color: var(--rose-600); }
.field-error { display: flex; align-items: flex-start; gap: 0.375rem; margin: 0.45rem 0 0; color: var(--rose-700); font-size: 0.75rem; font-weight: 500; line-height: 1.45; }
.field-error .bi { margin-top: 0.1rem; }
.field-error a { margin-left: 0.25rem; color: var(--tone-700, var(--brand-700)); font-weight: 700; white-space: nowrap; }

.match-hint { display: flex; align-items: center; gap: 0.375rem; margin: 0.5rem 0 0; font-size: 0.75rem; font-weight: 600; }
.match-hint[hidden] { display: none; }
.match-hint.ok { color: var(--brand-700); }
.match-hint.no { color: var(--amber-700); }

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    margin: 0.125rem 0 0;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--slate-200);
    border-radius: 0.875rem;
    background: var(--slate-50);
    color: var(--slate-600);
    font-size: 0.8125rem;
    line-height: 1.5;
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.terms-check:hover { border-color: var(--tone-200, var(--brand-200)); }
.terms-check:has(.form-check-input:checked) { border-color: var(--tone-200, var(--brand-200)); background: var(--tone-50, var(--brand-50)); }
.terms-check .form-check-input { flex-shrink: 0; float: none; width: 1.125rem; height: 1.125rem; margin: 0.1rem 0 0; cursor: pointer; }
.auth-tone-customer .form-check-input:checked { background-color: var(--tone-600); border-color: var(--tone-600); }
.auth-tone-customer .form-check-input:focus { border-color: var(--tone-400); box-shadow: 0 0 0 3px rgb(139 92 246 / 0.25); }
