/* ==========================================================================
   login.css - Dedicated Desktop & Mobile Login Page Styles for Naseer Foods
   ========================================================================== */

/* 1. Global Viewport & Background */
body:has(.mobile-login-screen-wrapper) .announcement-bar,
body:has(.mobile-login-screen-wrapper) .main-footer,
body:has(.mobile-login-screen-wrapper) #singleProductModal,
body:has(.mobile-login-screen-wrapper) #cartDrawer,
body:has(.mobile-login-screen-wrapper) #cartDrawerOverlay,
body:has(.mobile-login-screen-wrapper) .mobile-bottom-nav {
    display: none !important;
}

.mobile-login-screen-wrapper {
    min-height: 100vh;
    width: 100%;
    margin: 0;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.28) 0%, rgba(2, 6, 23, 0.38) 100%),
                url('../images/login-bg.png') no-repeat center center fixed;
    background-size: cover;
}

/* Discreet floating Quick Role Helper Bar */
.quick-role-helper-bar {
    max-width: 880px;
    width: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 99px;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    overflow-x: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 20;
}

.helper-lbl {
    font-size: 0.75rem;
    font-weight: 800;
    color: #CBD5E1;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.text-gold {
    color: #F59E0B;
}

.q-role-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
    color: #E2E8F0;
    padding: 4px 12px;
    border-radius: 99px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.q-role-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.q-role-btn.active {
    background: #E50914;
    border-color: #E50914;
    color: #FFFFFF;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

/* ==========================================================================
   2. Main Center Login Box Card (700px - 900px Width, 550px - 650px Height)
   ========================================================================== */
.mobile-login-card-container {
    width: 100%;
    max-width: 880px;
    height: 600px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.15);
    display: flex;
    position: relative;
    overflow: hidden;
    z-index: 10;
}

/* ==========================================================================
   Smooth Sliding Animation (Login Left/Right & Sign Up Right/Left)
   ========================================================================== */
@media (min-width: 992px) {
    .login-left-slider {
        transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1);
        will-change: transform;
        z-index: 5;
    }

    .login-right-panel {
        transition: transform 0.65s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.25s ease;
        will-change: transform, opacity;
        z-index: 4;
    }

    /* In Sign Up mode:
       Image slider moves to the RIGHT (127.27%) and Form panel moves to the LEFT (-78.57%) */
    .mobile-login-card-container.signup-active .login-left-slider {
        transform: translateX(127.2727%);
        box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
    }

    .mobile-login-card-container.signup-active .login-right-panel {
        transform: translateX(-78.5714%);
    }

    .login-right-panel.fade-swap {
        opacity: 0.35;
    }
}

/* ==========================================================================
   3. LEFT COLUMN: IMAGE SLIDE WITH OFFERS & PROMOS
   ========================================================================== */
.login-left-slider {
    width: 44%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: #0F172A;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Individual Slide Items */
.login-slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s ease;
    transform: scale(1.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 24px;
}

.login-slide-item.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.login-slide-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Dark Film Gradient Overlay */
.login-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.96) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(15, 23, 42, 0.2) 100%);
    z-index: 2;
}

/* Top Branding Pill inside Slide */
.login-slide-topbar {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.login-brand-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 14px;
    border-radius: 99px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.login-brand-pill img {
    height: 22px;
    object-fit: contain;
}

.login-brand-pill span {
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.login-back-btn-pill {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s;
}

.login-back-btn-pill:hover {
    background: #E50914;
    border-color: #E50914;
    transform: scale(1.08);
}

/* Slide Content Card Box */
.login-slide-content {
    position: relative;
    z-index: 5;
    color: #FFFFFF;
}

.offer-tag-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FF1E38 0%, #E50914 100%);
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 12px;
    border-radius: 99px;
    margin-bottom: 10px;
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.4);
}

.login-slide-content h3 {
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1.25;
    margin: 0 0 6px 0;
    color: #FFFFFF;
}

.login-slide-content p {
    font-size: 0.84rem;
    color: #E2E8F0;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.coupon-code-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    border: 1px dashed rgba(255, 255, 255, 0.45);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #FBBF24;
}

/* Slider Bottom Pagination Dots */
.login-slider-dots {
    position: absolute;
    bottom: 14px;
    left: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 6;
}

.login-dot {
    width: 8px;
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-dot.active {
    width: 24px;
    background: #E50914;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.6);
}

/* ==========================================================================
   4. RIGHT COLUMN: LIQUID GLASS LOGIN UI DESIGN & HOVER EFFECTS
   ========================================================================== */
.login-right-panel {
    width: 56%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 28px 34px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #CBD5E1 transparent;
}

.login-right-panel::-webkit-scrollbar {
    width: 5px;
}

.login-right-panel::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 99px;
}

.login-right-panel::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Top Segmented Tab Switcher */
.ml-tab-track {
    display: flex;
    background: #F1F5F9;
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 16px;
    position: relative;
    border: 1px solid #E2E8F0;
}

.ml-tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 8px 14px;
    border-radius: 11px;
    font-weight: 800;
    font-size: 0.86rem;
    color: #64748B;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ml-tab-btn.active {
    background: #FFFFFF;
    color: #0F172A;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Welcome Box */
.ml-welcome-box {
    margin-bottom: 14px;
}

.ml-welcome-box h2 {
    font-size: 1.45rem;
    font-weight: 900;
    color: #0F172A;
    margin: 0 0 3px 0;
}

.ml-welcome-box p {
    font-size: 0.82rem;
    color: #64748B;
    margin: 0;
}

/* Method Selector Tabs (Phone / Email) */
.ml-method-selector {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.ml-method-tab {
    flex: 1;
    background: #F8FAFC;
    border: 1.5px solid #E2E8F0;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.ml-method-tab:hover {
    background: #F1F5F9;
    color: #0F172A;
    border-color: #CBD5E1;
}

.ml-method-tab.active {
    background: #FEF2F2;
    border-color: #FCA5A5;
    color: #E50914;
    font-weight: 800;
}

/* Input Rows & Liquid Glass Hover Effects */
.ml-input-row {
    margin-bottom: 12px;
}

.ml-input-box {
    background: rgba(248, 250, 252, 0.95);
    border: 1.5px solid #E2E8F0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    padding: 2px 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

/* Floating Icon Box with Hover Shadow */
.ml-input-prefix {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #F1F5F9;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.ml-input-prefix i {
    font-size: 0.88rem;
    color: #64748B;
    transition: all 0.2s ease;
}

/* Country Prefix Pill */
.ml-country-prefix {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    background: #FFFFFF;
    border-radius: 10px;
    border: 1px solid #F1F5F9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 800;
    color: #0F172A;
    margin-right: 10px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.ml-chevron {
    font-size: 0.65rem;
    color: #94A3B8;
}

.ml-input-divider {
    width: 1px;
    height: 20px;
    background: #E2E8F0;
    margin-right: 10px;
}

.ml-text-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #0F172A;
    outline: none;
}

.ml-text-input::placeholder {
    color: #94A3B8;
    font-weight: 500;
}

.ml-btn-eye {
    border: none;
    background: transparent;
    cursor: pointer;
    color: #94A3B8;
    padding: 8px;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.ml-btn-eye:hover {
    color: #0F172A;
}

/* Hover & Focus Glow Effect on Inputs */
.ml-input-box:hover {
    border-color: #CBD5E1;
    background: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.ml-input-box:hover .ml-input-prefix,
.ml-input-box:hover .ml-country-prefix {
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.15);
    border-color: #FEE2E2;
}

.ml-input-box:hover .ml-input-prefix i {
    color: #E50914;
    transform: scale(1.1);
}

.ml-input-box:focus-within {
    border-color: #E50914;
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.12), 0 6px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.ml-input-box:focus-within .ml-input-prefix,
.ml-input-box:focus-within .ml-country-prefix {
    box-shadow: 0 4px 14px rgba(229, 9, 20, 0.2);
    border-color: #FCA5A5;
}

.ml-input-box:focus-within .ml-input-prefix i {
    color: #E50914;
    transform: scale(1.15);
}

/* Forgot Password Row */
.ml-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.ml-forgot-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s;
}

.ml-forgot-link:hover {
    color: #E50914;
    text-decoration: underline;
}

/* Big Red Submit Button with Liquid Hover Glow */
.ml-btn-submit {
    width: 100%;
    padding: 13px 20px;
    border-radius: 14px;
    border: none;
    background: linear-gradient(135deg, #FF1E38 0%, #E50914 100%);
    color: #FFFFFF;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.35);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.ml-btn-submit::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.ml-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(229, 9, 20, 0.45);
}

.ml-btn-submit:hover::after {
    left: 100%;
}

.ml-btn-submit:active {
    transform: scale(0.98);
}

/* OR Divider */
.ml-or-divider {
    display: flex;
    align-items: center;
    margin: 14px 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: #E2E8F0;
}

.divider-text {
    padding: 0 12px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #94A3B8;
    text-transform: uppercase;
}

/* Social Login Grid with Icon Hover Shadows */
.ml-social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.ml-social-card {
    background: #FFFFFF;
    border: 1.5px solid #E2E8F0;
    border-radius: 12px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.social-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.social-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
}

.ml-social-card:hover {
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

.ml-social-card:hover .social-icon-box {
    transform: scale(1.15);
}

/* Footer Prompt */
.ml-footer-prompt {
    text-align: center;
    font-size: 0.82rem;
    color: #64748B;
    margin-top: 4px;
}

.ml-footer-prompt a {
    color: #E50914;
    font-weight: 800;
    text-decoration: none;
    margin-left: 4px;
    transition: text-decoration 0.2s;
}

.ml-footer-prompt a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   5. RESPONSIVE DESIGN FOR TABLETS & MOBILES (< 992px)
   ========================================================================== */
@media (max-width: 991px) {
    .mobile-login-screen-wrapper {
        padding: 16px 12px;
        background: radial-gradient(circle at 50% 10%, #FFFFFF 0%, #FFF5F5 45%, #F8FAFC 100%);
    }

    .quick-role-helper-bar {
        max-width: 440px;
        background: rgba(255, 255, 255, 0.9);
        border-color: #E2E8F0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }

    .helper-lbl {
        color: #475569;
    }

    .q-role-btn {
        background: #F1F5F9;
        color: #334155;
        border: none;
    }

    .mobile-login-card-container {
        max-width: 440px;
        height: auto;
        min-height: auto;
        flex-direction: column;
        border-radius: 36px;
        box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
    }

    .login-left-slider {
        display: none; /* Collapses on mobile to present streamlined app login */
    }

    .login-right-panel {
        width: 100%;
        height: auto;
        padding: 24px 20px 28px 20px;
        overflow: visible;
    }

    /* Mobile Brand Header Bar (Only on mobile) */
    .mobile-top-brand-bar {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 18px;
    }

    .mobile-back-btn {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: #F8FAFC;
        border: 1px solid #E2E8F0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #0F172A;
        text-decoration: none;
        font-size: 0.88rem;
    }

    .mobile-brand-logo {
        height: 32px;
        object-fit: contain;
    }
}

@media (min-width: 992px) {
    .mobile-top-brand-bar {
        display: none !important;
    }
}
