/* ==========================================================================
   authSplit.css — 50/50 split shell for Store/Staff/Delivery/Marketer login
   and Store register. Left/right on desktop, stacked (hero on top, as a
   compact banner) on mobile — the form stays immediately reachable without
   scrolling past a full-height illustration first.
   ========================================================================== */

.auth-split-body {
    min-height: 100vh;
    padding: 0;
    display: block;
    background: var(--pood-bg);
}

.auth-split {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ---- Hero / slider half ------------------------------------------------ */

.auth-split__hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pood-primary) 0%, var(--pood-primary-light) 55%, #ff9a76 100%);
    padding: 28px 24px 26px;
    display: flex;
    flex-direction: column;
    min-height: 220px;
    order: 0;
}

.auth-split__blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    pointer-events: none;
    animation: poodFloat 9s ease-in-out infinite;
}
.auth-split__blob--1 { width: 180px; height: 180px; top: -60px; right: -50px; animation-delay: 0s; }
.auth-split__blob--2 { width: 120px; height: 120px; bottom: -40px; left: -30px; background: rgba(255,255,255,0.10); animation-delay: 1.4s; }
.auth-split__blob--3 { width: 70px; height: 70px; top: 40%; right: 12%; background: rgba(255,255,255,0.16); animation-delay: 2.8s; display: none; }

@keyframes poodFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.05); }
}

.pood-logo--onhero {
    font-size: 22px; font-weight: 800; font-family: var(--font-display);
    color: #fff; position: relative; z-index: 2; margin-bottom: 18px;
}
.pood-logo--onhero span { color: rgba(28,20,36,0.85); }

.hero-slider {
    position: relative;
    z-index: 2;
    flex: 1;
    min-height: 150px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}
.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}

.hero-slide__art {
    width: 56px; height: 56px; border-radius: 16px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; color: #fff;
    margin-bottom: 14px;
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 20px rgba(28,20,36,0.12);
}

.hero-slide__title {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.3;
}

.hero-slide__desc {
    color: rgba(255,255,255,0.92);
    font-size: 13.5px;
    line-height: 1.55;
    max-width: 420px;
}

.hero-dots {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 7px;
    margin-top: 14px;
}
.hero-dot {
    width: 8px; height: 8px; border-radius: 999px;
    border: none; padding: 0; cursor: pointer;
    background: rgba(255,255,255,0.4);
    transition: all .25s ease;
}
.hero-dot.is-active { width: 22px; background: #fff; }

/* ---- Form half ----------------------------------------------------------- */

.auth-split__form {
    order: 1;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 18px 44px;
    background: var(--pood-bg);
}

.auth-split__form-inner {
    width: 100%;
    max-width: 420px;
    animation: poodFormRise .5s ease both;
}

@keyframes poodFormRise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}

/* auth-shell/auth-card come from auth.css; drop the extra vertical
   centering/gap it applies on its own (the split layout already centers) */
.auth-split__form-inner .auth-shell { gap: 18px; max-width: none; }
.auth-split__form-inner .auth-card {
    box-shadow: var(--pood-shadow-md);
    border: 1px solid rgba(255,255,255,0.6);
}

/* Glassmorphism touch when a card sits directly on the gradient (not used
   currently since the card lives on the form half, but kept for any page
   that nests a card inside the hero half in future). */
.auth-split__hero .card {
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.auth-split .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(251,72,92,0.28); }
.auth-split .btn { transition: transform .18s ease, box-shadow .18s ease; }

/* ---- Desktop: true 50/50, form left, hero+slider right ------------------- */

@media (min-width: 901px) {
    .auth-split { flex-direction: row; }
    .auth-split__hero {
        order: 2;
        flex: 0 0 46%;
        max-width: 640px;
        min-height: 100vh;
        padding: 56px 56px 48px;
    }
    .auth-split__form { order: 1; flex: 1; padding: 48px 40px; }
    .pood-logo--onhero { font-size: 26px; margin-bottom: 46px; }
    .hero-slide__title { font-size: 26px; }
    .hero-slide__desc { font-size: 15px; }
    .hero-slide__art { width: 68px; height: 68px; font-size: 28px; border-radius: 18px; }
    .auth-split__blob--3 { display: block; }
}

/* ---- Mobile: compact banner, form stays reachable without scrolling ----- */

@media (max-width: 900px) {
    .auth-split__hero { min-height: 190px; padding: 22px 20px 20px; }
    .hero-slide { align-items: flex-start; }
    .hero-slide__desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

@media (max-width: 480px) {
    .auth-split__hero { min-height: 172px; padding: 18px 16px; }
    .hero-slide__art { width: 44px; height: 44px; font-size: 19px; border-radius: 13px; margin-bottom: 10px; }
    .hero-slide__title { font-size: 16.5px; }
    .hero-slide__desc { font-size: 12.5px; }
    .auth-split__form { padding: 28px 16px 36px; }
}
