/**
 * استایل‌های افزونه Shahrokh Login
 * نسخه بهبود یافته با محافظت در برابر تداخل قالب‌ها
 */

/* کانتینر اصلی */
.shahrokh-login-wrapper {
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 20px !important;
    box-sizing: border-box !important;
}

.shahrokh-login-wrapper .shahrokh-login-container,
.shahrokh-login-wrapper .shahrokh-auth-container {
    max-width: 450px !important;
    margin: 0 auto !important;
    background: #ffffff !important;
    padding: 40px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    box-sizing: border-box !important;
}

/* تب‌ها */
.shahrokh-login-wrapper .shahrokh-tabs,
.shahrokh-auth-container .shahrokh-tabs {
    display: flex !important;
    justify-content: center !important;
    gap: 0 !important;
    margin-bottom: 30px !important;
    border-bottom: 2px solid #e0e0e0 !important;
}

.shahrokh-login-wrapper .shahrokh-tab-btn,
.shahrokh-auth-container .shahrokh-tab-btn,
.shahrokh-login-wrapper button.shahrokh-tab-btn,
.shahrokh-auth-container button.shahrokh-tab-btn {
    flex: 1 !important;
    padding: 15px 20px !important;
    background: transparent !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    color: #666 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    position: relative !important;
    bottom: -2px !important;
    outline: none !important;
    box-shadow: none !important;
}

.shahrokh-login-wrapper .shahrokh-tab-btn:hover,
.shahrokh-auth-container .shahrokh-tab-btn:hover,
.shahrokh-login-wrapper button.shahrokh-tab-btn:hover,
.shahrokh-auth-container button.shahrokh-tab-btn:hover {
    color: #0073aa !important;
    background: rgba(0, 115, 170, 0.05) !important;
}

.shahrokh-login-wrapper .shahrokh-tab-btn.active,
.shahrokh-auth-container .shahrokh-tab-btn.active,
.shahrokh-login-wrapper button.shahrokh-tab-btn.active,
.shahrokh-auth-container button.shahrokh-tab-btn.active {
    color: #0073aa !important;
    border-bottom-color: #0073aa !important;
    font-weight: 600 !important;
}

/* محتوای تب‌ها */
.shahrokh-login-wrapper .shahrokh-tab-content,
.shahrokh-auth-container .shahrokh-tab-content {
    display: none !important;
    animation: fadeIn 0.3s ease-in !important;
}

.shahrokh-login-wrapper .shahrokh-tab-content.active,
.shahrokh-auth-container .shahrokh-tab-content.active {
    display: block !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* عنوان فرم */
.shahrokh-login-wrapper .shahrokh-form-title,
.shahrokh-auth-container .shahrokh-form-title,
.shahrokh-login-wrapper h2.shahrokh-form-title,
.shahrokh-auth-container h2.shahrokh-form-title {
    text-align: center !important;
    margin-bottom: 30px !important;
    font-size: 24px !important;
    color: #333 !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
}

/* گروه‌های فرم */
.shahrokh-login-wrapper .shahrokh-form-group,
.shahrokh-auth-container .shahrokh-form-group {
    margin-bottom: 20px !important;
}

.shahrokh-login-wrapper .shahrokh-form-group label,
.shahrokh-auth-container .shahrokh-form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 500 !important;
    color: #555 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
}

.shahrokh-login-wrapper .shahrokh-form-input,
.shahrokh-auth-container .shahrokh-form-input,
.shahrokh-login-wrapper input.shahrokh-form-input,
.shahrokh-auth-container input.shahrokh-form-input,
.shahrokh-login-wrapper textarea.shahrokh-form-input,
.shahrokh-auth-container textarea.shahrokh-form-input,
.shahrokh-login-wrapper select.shahrokh-form-input,
.shahrokh-auth-container select.shahrokh-form-input {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
    font-size: 15px !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #333 !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    outline: none !important;
    box-shadow: none !important;
}

.shahrokh-login-wrapper .shahrokh-form-input:focus,
.shahrokh-auth-container .shahrokh-form-input:focus,
.shahrokh-login-wrapper input.shahrokh-form-input:focus,
.shahrokh-auth-container input.shahrokh-form-input:focus,
.shahrokh-login-wrapper textarea.shahrokh-form-input:focus,
.shahrokh-auth-container textarea.shahrokh-form-input:focus,
.shahrokh-login-wrapper select.shahrokh-form-input:focus,
.shahrokh-auth-container select.shahrokh-form-input:focus {
    outline: none !important;
    border-color: #0073aa !important;
    box-shadow: 0 0 0 1px #0073aa !important;
}

/* دکمه‌ها */
.shahrokh-login-wrapper .shahrokh-btn,
.shahrokh-auth-container .shahrokh-btn,
.shahrokh-login-wrapper button.shahrokh-btn,
.shahrokh-auth-container button.shahrokh-btn,
.shahrokh-login-wrapper a.shahrokh-btn,
.shahrokh-auth-container a.shahrokh-btn {
    display: inline-block !important;
    padding: 12px 30px !important;
    background: #0073aa !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    text-align: center !important;
    transition: background-color 0.3s ease !important;
    width: 100% !important;
    box-sizing: border-box !important;
    outline: none !important;
    box-shadow: none !important;
    line-height: 1.5 !important;
}

.shahrokh-login-wrapper .shahrokh-btn:hover,
.shahrokh-auth-container .shahrokh-btn:hover,
.shahrokh-login-wrapper button.shahrokh-btn:hover,
.shahrokh-auth-container button.shahrokh-btn:hover,
.shahrokh-login-wrapper a.shahrokh-btn:hover,
.shahrokh-auth-container a.shahrokh-btn:hover {
    background: #005a87 !important;
    color: #ffffff !important;
}

.shahrokh-login-wrapper .shahrokh-btn-primary,
.shahrokh-auth-container .shahrokh-btn-primary,
.shahrokh-login-wrapper button.shahrokh-btn-primary,
.shahrokh-auth-container button.shahrokh-btn-primary {
    background: #0073aa !important;
}

.shahrokh-login-wrapper .shahrokh-btn-primary:hover,
.shahrokh-auth-container .shahrokh-btn-primary:hover,
.shahrokh-login-wrapper button.shahrokh-btn-primary:hover,
.shahrokh-auth-container button.shahrokh-btn-primary:hover {
    background: #005a87 !important;
}

.shahrokh-login-wrapper .shahrokh-btn-secondary,
.shahrokh-auth-container .shahrokh-btn-secondary,
.shahrokh-login-wrapper button.shahrokh-btn-secondary,
.shahrokh-auth-container button.shahrokh-btn-secondary {
    background: #666 !important;
    margin-right: 10px !important;
}

.shahrokh-login-wrapper .shahrokh-btn-secondary:hover,
.shahrokh-auth-container .shahrokh-btn-secondary:hover,
.shahrokh-login-wrapper button.shahrokh-btn-secondary:hover,
.shahrokh-auth-container button.shahrokh-btn-secondary:hover {
    background: #444 !important;
}

/* فوتر فرم */
.shahrokh-login-wrapper .shahrokh-form-footer,
.shahrokh-auth-container .shahrokh-form-footer {
    margin-top: 25px !important;
    text-align: center !important;
}

.shahrokh-login-wrapper .shahrokh-form-footer p,
.shahrokh-auth-container .shahrokh-form-footer p {
    margin: 10px 0 !important;
    font-size: 14px !important;
    color: #666 !important;
    line-height: 1.6 !important;
}

.shahrokh-login-wrapper .shahrokh-form-footer a,
.shahrokh-auth-container .shahrokh-form-footer a {
    color: #0073aa !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    background: transparent !important;
    outline: none !important;
    transition: color 0.3s ease !important;
}

.shahrokh-login-wrapper .shahrokh-form-footer a:hover,
.shahrokh-auth-container .shahrokh-form-footer a:hover {
    text-decoration: underline !important;
    color: #005a87 !important;
}

/* پیام‌ها */
.shahrokh-login-wrapper .shahrokh-message,
.shahrokh-auth-container .shahrokh-message {
    padding: 12px 15px !important;
    margin-bottom: 20px !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

.shahrokh-login-wrapper .shahrokh-success,
.shahrokh-auth-container .shahrokh-success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.shahrokh-login-wrapper .shahrokh-error,
.shahrokh-auth-container .shahrokh-error {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

/* پیام کاربر لاگین شده */
.shahrokh-login-wrapper .shahrokh-logged-in-message,
.shahrokh-auth-container .shahrokh-logged-in-message {
    text-align: center !important;
    padding: 30px !important;
    background: #f9f9f9 !important;
    border-radius: 8px !important;
}

.shahrokh-login-wrapper .shahrokh-logged-in-message p,
.shahrokh-auth-container .shahrokh-logged-in-message p {
    margin: 15px 0 !important;
    font-size: 16px !important;
    color: #666 !important;
}

.shahrokh-login-wrapper .shahrokh-logged-in-message .shahrokh-btn,
.shahrokh-auth-container .shahrokh-logged-in-message .shahrokh-btn {
    width: auto !important;
    display: inline-block !important;
    margin: 5px !important;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .shahrokh-login-wrapper .shahrokh-login-container,
    .shahrokh-login-wrapper .shahrokh-auth-container {
        padding: 30px 20px !important;
    }

    .shahrokh-login-wrapper .shahrokh-form-title,
    .shahrokh-auth-container .shahrokh-form-title {
        font-size: 20px !important;
    }

    .shahrokh-login-wrapper .shahrokh-btn,
    .shahrokh-auth-container .shahrokh-btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
}

/* پشتیبانی از RTL */
body.rtl .shahrokh-login-wrapper .shahrokh-btn-secondary,
body.rtl .shahrokh-auth-container .shahrokh-btn-secondary {
    margin-right: 0 !important;
    margin-left: 10px !important;
}

/* استایل فیلدهای Radio و Checkbox */
.shahrokh-login-wrapper .shahrokh-radio-label,
.shahrokh-login-wrapper .shahrokh-checkbox-label,
.shahrokh-auth-container .shahrokh-radio-label,
.shahrokh-auth-container .shahrokh-checkbox-label {
    display: block !important;
    margin: 8px 0 !important;
    padding: 8px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.shahrokh-login-wrapper .shahrokh-radio-label:hover,
.shahrokh-login-wrapper .shahrokh-checkbox-label:hover,
.shahrokh-auth-container .shahrokh-radio-label:hover,
.shahrokh-auth-container .shahrokh-checkbox-label:hover {
    background: #f5f5f5 !important;
    border-radius: 4px !important;
}

.shahrokh-login-wrapper .shahrokh-radio-label input[type="radio"],
.shahrokh-login-wrapper .shahrokh-checkbox-label input[type="checkbox"],
.shahrokh-auth-container .shahrokh-radio-label input[type="radio"],
.shahrokh-auth-container .shahrokh-checkbox-label input[type="checkbox"] {
    margin-left: 8px !important;
    cursor: pointer !important;
    width: auto !important;
    padding: 0 !important;
}

/* استایل Select */
.shahrokh-login-wrapper .shahrokh-form-input[type="select"],
.shahrokh-login-wrapper select.shahrokh-form-input,
.shahrokh-auth-container .shahrokh-form-input[type="select"],
.shahrokh-auth-container select.shahrokh-form-input {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    background-color: #fff !important;
    cursor: pointer !important;
}

/* استایل Textarea */
.shahrokh-login-wrapper textarea.shahrokh-form-input,
.shahrokh-auth-container textarea.shahrokh-form-input {
    min-height: 100px !important;
    resize: vertical !important;
    line-height: 1.5 !important;
}
