* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, .left-panel-login, .right-panel-login, button, input, a, div, span, p, h1, h2, h3, h4, h5, h6, label, li, ul {
    font-family: 'Vazirmatn', 'Segoe UI', Tahoma, sans-serif !important;
}

/* ===== LEFT PANEL ===== */
.left-panel-login {
    background: linear-gradient(160deg, #7c3aed 0%, #6d28d9 40%, #4c1d95 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1.5rem;
    position: relative;
    overflow-y: auto;
    height: 100%;
    width: 40%;
    float: right;
}

.logo-box-login {
    background: #fff;
    border-radius: 0 0 18px 18px;
    padding: 12px 32px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 18px rgba(0,0,0,0.13);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-box-login .logo-text-login {
    font-size: 1.8rem;
    font-weight: 800;
    color: #7c3aed;
    direction: rtl;
}
.register-logo-box {
    background: rgba(255,255,255,0.98);
    border-radius: 0 0 18px 18px;
    padding: 12px 32px;
    display: inline-flex;
    margin: 0 auto 1.5rem auto;
    position: relative;
    z-index: 2;
}
.register-logo-sale {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.register-logo-sync {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.illustration-wrap-login {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 1rem;
    gap: 1.5rem;
}

.illustration-login {
    position: relative;
    width: 260px;
    height: 200px;
    margin-bottom: 0.5rem;
}

.illus-card-main-login {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 170px;
    height: 130px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
}

.illus-avatar-login {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ede9fe;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7c3aed;
    font-size: 1.5rem;
}

.illus-line-login {
    height: 7px;
    border-radius: 4px;
    background: #8b5cf6;
}

.illus-line-short-login { width: 80px; }
.illus-line-long-login { width: 110px; background: #ede9fe; }

.illus-card-back-login {
    position: absolute;
    top: 50px;
    left: 10px;
    width: 130px;
    height: 100px;
    background: rgba(255,255,255,0.55);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}

.float-icon-login {
    position: absolute;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 12px rgba(0,0,0,0.15);
}

.float-icon-login.camera-login {
    width: 44px; height: 44px;
    top: 10px; left: 60px;
    color: #7c3aed; font-size: 1.2rem;
}

.float-icon-login.shield-login {
    width: 38px; height: 38px;
    bottom: 30px; left: 20px;
    color: #7c3aed; font-size: 1rem;
}

.cursor-icon-login {
    position: absolute;
    bottom: 20px;
    right: 60px;
    color: #f59e0b;
    font-size: 1.8rem;
    transform: rotate(-10deg);
}

.slider-content-wrapper {
    text-align: center;
    width: 100%;
}

.slide-title-login {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.8rem;
}

.feature-list-login {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.feature-list-login li {
    color: #fff;
    font-size: 0.75rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.8;
}

.carousel-controls-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.3rem 0;
}

.carousel-arrows-login {
    display: flex;
    gap: 8px;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}

.carousel-dots-login {
    display: flex;
    gap: 8px;
}

.dot-login {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.2s;
}

.dot-login.active {
    background: #fff;
    transform: scale(1.2);
}

.footer-text-login {
    color: rgba(255,255,255,0.35);
    font-size: 0.7rem;
    text-align: center;
    padding-top: 1rem;
}

/* ===== RIGHT PANEL ===== */
.right-panel-login {
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
    height: 100%;
    width: 60%;
    float: right;
}

.login-box-login {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-title-login {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1a1a2e;
    text-align: right;
    margin-bottom: 1.8rem;
}

.form-label-custom-login {
    font-size: 0.85rem;
    color: #555;
    font-weight: 500;
    display: block;
    text-align: right;
    margin-bottom: 6px;
}

.form-control-custom-login {
    width: 100%;
    border: 1.5px solid #d8dde6;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    outline: none;
    transition: all 0.2s;
    direction: ltr;
    text-align: left;
}

.form-control-custom-login:focus {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.form-control-custom-login::placeholder {
    color: #aaa;
}

.password-wrap-login {
    position: relative;
}

.password-wrap-login .form-control-custom-login {
    padding-left: 45px;
}

.toggle-pass-login {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-pass-login:hover {
    color: #555;
}

.form-options-login {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.75rem 0 1.5rem;
    flex-wrap: wrap;
    gap: 10px;
}

.remember-me-login {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #555;
    cursor: pointer;
}

.remember-me-login input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #8b5cf6;
    margin: 0;
}

.forgot-link-login {
    font-size: 0.8rem;
    color: #8b5cf6;
    text-decoration: none;
}

.forgot-link-login:hover {
    text-decoration: underline;
}

.btn-login-custom {
    width: 100%;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-login-custom:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.register-row-login {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e5e7eb;
    font-size: 0.85rem;
    color: #666;
}

.register-row-login a {
    color: #8b5cf6;
    font-weight: 600;
    text-decoration: none;
    margin-right: 4px;
}

.mb-form-login {
    margin-bottom: 1.2rem;
}

.error-message-login {
    color: #dc2626;
    font-size: 0.7rem;
    margin-top: 4px;
    text-align: right;
}

.alert-danger-login {
    background-color: #fef2f2;
    border-right: 4px solid #dc2626;
    color: #991b1b;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clearfix-login::after {
    content: "";
    clear: both;
    display: table;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .left-panel-login {
        width: 100%;
        float: none;
        height: auto;
        min-height: 45%;
        padding: 1.2rem;
    }

    .right-panel-login {
        width: 100%;
        float: none;
        height: auto;
        min-height: 55%;
        padding: 1.5rem;
    }

    .login-box-login {
        max-width: 100%;
    }

    .login-title-login {
        font-size: 1.4rem;
        margin-bottom: 1.2rem;
    }

    .illustration-login {
        width: 220px;
        height: 170px;
    }

    .illus-card-main-login {
        width: 150px;
        height: 110px;
    }

    .slide-title-login {
        font-size: 0.9rem;
    }

    .feature-list-login li {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .right-panel-login {
        padding: 1rem;
    }

    .login-title-login {
        font-size: 1.2rem;
    }

    .form-control-custom-login {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .password-wrap-login .form-control-custom-login {
        padding-left: 40px;
    }

    .btn-login-custom {
        padding: 10px;
        font-size: 0.9rem;
    }
}
.register-logo-sale {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.register-logo-sync {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #a78bfa, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* مخفی کردن لوگوی موبایل در حالت دسکتاپ */
.mobile-logo-login {
    display: none;
}

@media only screen and (max-width: 768px) {
    body {
        display: block !important;
        padding: 0 !important;
    }

    #login-main-wrapper {
        position: relative !important;
        height: auto !important;
        min-height: 100vh !important;
    }

    /* مخفی کردن پنل سمت چپ (عکس/لوگو) */
    .left-panel-login {
        display: none !important;
    }

    /* تمام‌صفحه کردن پنل سمت راست (فرم ورود) */
    .right-panel-login {
        width: 100% !important;
        min-height: 100vh !important;
        height: auto !important;
        float: none !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    /* تنظیمات باکس لوگو در موبایل */
    .mobile-logo-login {
        display: block !important;
        text-align: center !important;
        margin-bottom: 30px !important;
    }

    /* استایل خود کلمه SaleSync در موبایل */
    .mobile-logo-text {
        font-size: 2.5rem !important; /* فونت درشت */
        font-weight: 900 !important; /* فونت کاملا کلفت */
        color: #7c3aed !important; /* بنفش پررنگ برای کلمه Sale */
        letter-spacing: 1px !important;
    }

    /* استایل قسمت Sync */
    .mobile-logo-text span {
        color: #a78bfa !important; /* بنفش کمرنگ برای کلمه Sync */
    }
}
/* ===== نقطه‌های سفید متحرک در پس‌زمینه لاگین (مثل صفحه ثبت‌نام) ===== */
.left-panel-login {
    position: relative;
    overflow: hidden;
}

.left-panel-login::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.15) 2px, transparent 2px);
    background-size: 40px 40px;
    animation: slowMove 40s linear infinite;
    pointer-events: none;
}

@keyframes slowMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(80px, 80px);
    }
}