/* ==============================================
   Modern Login Popup - Default Demo Only
   MarketMLM Theme
   ============================================== */

/* ===== پاپ‌آپ مدرن ===== */
.mlm-modern-popup .modal-content {
    border: none;
    border-radius: 20px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.mlm-modern-popup .modal-dialog {
    max-width: 900px;
}

/* دکمه بستن مدرن */
.mlm-modern-close {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    border-radius: 50%;
    color: #1f2937;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mlm-modern-close:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

.mlm-modern-close svg {
    stroke: currentColor;
}

/* سمت فرم */
.mlm-modern-forms-side {
    background: #ffffff;
    position: relative;
}

.mlm-modern-form {
    display: none;
}

.mlm-modern-form.acik {
    display: block;
    animation: fadeInForm 0.3s ease;
}

@keyframes fadeInForm {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* استایل فرم های داخل پاپ‌آپ */
.mlm-modern-popup .mlm-form-wrapper {
    margin: 0;
}

.mlm-modern-popup .modern-form-header {
    text-align: right;
    margin-bottom: 30px;
}

.mlm-modern-popup .modern-form-title {
    font-size: 28px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.mlm-modern-popup .modern-form-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.mlm-modern-popup .form-group {
    margin-bottom: 20px;
}

.mlm-modern-popup label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.mlm-modern-popup input[type="text"],
.mlm-modern-popup input[type="password"],
.mlm-modern-popup input[type="email"],
.mlm-modern-popup .form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    color: #1f2937;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
}

.mlm-modern-popup input:focus {
    background: #ffffff;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.mlm-modern-popup button[type="submit"],
.mlm-modern-popup .btn-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.mlm-modern-popup button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.mlm-modern-popup .form-check {
    margin-bottom: 20px;
}

.mlm-modern-popup .form-check-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 400;
}

.mlm-modern-popup .alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
}

.mlm-modern-popup .alert-danger {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* لینک های تغییر فرم */
.mlm-modern-toggle-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.mlm-modern-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.mlm-modern-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

.mlm-modern-separator {
    color: #d1d5db;
    margin: 0 8px;
    font-size: 14px;
}

/* سمت visual */
.mlm-modern-visual {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mlm-modern-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.mlm-modern-visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 30px;
    color: #ffffff;
}

.mlm-modern-visual-icon {
    margin-bottom: 30px;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.mlm-modern-visual-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
    color: #ffffff;
}

.mlm-modern-visual-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* عکس background (اختیاری - اگر از تنظیمات قالب استفاده شده باشد) */
.mlm-modern-visual.mlm-popup-login-cover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

/* Footer فرم در پاپ‌آپ */
.mlm-modern-popup .modern-form-footer {
    text-align: center;
    margin-top: 20px;
}

.mlm-modern-popup .modern-form-note {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.mlm-modern-popup .modern-form-note a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.mlm-modern-popup .modern-form-note a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .mlm-modern-popup .modal-dialog {
        max-width: 95%;
        margin: 10px auto;
    }
    
    .mlm-modern-close {
        top: 15px;
        left: 15px;
        width: 36px;
        height: 36px;
    }
    
    .mlm-modern-form {
        padding: 30px 20px !important;
    }
    
    .mlm-modern-popup .modern-form-title {
        font-size: 24px;
    }
    
    .mlm-modern-popup .modern-form-subtitle {
        font-size: 13px;
    }
}

/* RTL Support */
[dir="rtl"] .mlm-modern-close {
    left: auto;
    right: 20px;
}

[dir="rtl"] .mlm-modern-popup .modern-form-header {
    text-align: right;
}

@media (max-width: 768px) {
    [dir="rtl"] .mlm-modern-close {
        right: 15px;
    }
}
