/* ===== استایل فرم احراز هویت (Login/Register) ===== */

/* Countdown Timer Styles */
.ma_countdown_container {
    margin-top: 20px !important;
    text-align: center !important;
}

.ma_countdown_text {
    color: #6b7280 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 14px !important;
    margin: 0 !important;
}

.ma_countdown_timer {
    color: #09375b !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    direction: ltr !important;
    display: inline-block !important;
}

.ma_resend_container {
    margin-top: 20px !important;
    text-align: center !important;
}

.ma_resend_link {
    color: #09375b !important;
    text-decoration: none !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
    display: inline-block !important;
    padding: 10px 20px !important;
    border: 2px solid #09375b !important;
    border-radius: 50px !important;
    background-color: transparent !important;
}

.ma_resend_link:hover {
    color: #ffffff !important;
    background-color: #09375b !important;
}

.ma_resend_button {
    color: #09375b !important;
    background-color: transparent !important;
    border: 2px solid #09375b !important;
    border-radius: 50px !important;
    padding: 10px 20px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.ma_resend_button:hover {
    color: #ffffff !important;
    background-color: #09375b !important;
}

.ma_container {
    max-width: 450px;
    margin: 60px auto;
    padding: 40px;
    text-align: center;
    
    /* پس‌زمینه سفید با گوشه‌های گرد */
    background-color: #ffffff !important;
    border-radius: 25px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08) !important;
    
    /* کادر خارجی طوسی (مثل سایر صفحات) */
    border: 1px solid #e5e7eb !important;
}

/* عنوان فرم */
.ma_title {
    font-size: 28px !important;
    font-weight: 900 !important;
    color: #09375b !important;
    margin-bottom: 30px !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

/* پیام خطا */
.ma_error {
    color: #dc2626 !important;
    background-color: #fee2e2 !important;
    border: 1px solid #fecaca !important;
    border-radius: 15px !important;
    padding: 12px 20px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 600 !important;
}

/* فرم */
.ma_form {
    width: 100% !important;
}

/* فیلدهای ورودی */
.ma_input {
    width: 100% !important;
    padding: 15px 20px !important;
    margin: 12px 0 !important;
    font-size: 15px !important;
    
    /* استایل مشابه فرم تماس */
    background-color: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 15px !important;
    color: #09375b !important;
    font-family: 'Vazirmatn', sans-serif !important;
    
    /* انیمیشن */
    transition: all 0.3s ease !important;
    
    /* حذف outline پیش‌فرض */
    outline: none !important;
}

/* حالت فوکوس فیلدها */
.ma_input:focus {
    background-color: #ffffff !important;
    border-color: #09375b !important;
    box-shadow: 0 0 0 3px rgba(9, 55, 91, 0.1) !important;
}

/* Placeholder */
.ma_input::placeholder {
    color: #9ca3af !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

/* دکمه ارسال */
.ma_button {
    width: 100% !important;
    padding: 15px 30px !important;
    margin-top: 20px !important;
    cursor: pointer !important;
    
    /* رنگ‌های اصلی سایت */
    background-color: #09375b !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 50px !important; /* کپسولی مثل دکمه‌های دیگر */
    
    /* تایپوگرافی */
    font-size: 16px !important;
    font-weight: 700 !important;
    font-family: 'Vazirmatn', sans-serif !important;
    
    /* انیمیشن */
    transition: all 0.3s ease !important;
    
    /* حذف outline */
    outline: none !important;
}

/* حالت هاور دکمه */
.ma_button:hover {
    background-color: #062a45 !important; /* تیره‌تر */
    transform: translateY(-2px) !important; /* بالا رفتن کمی */
    box-shadow: 0 8px 20px rgba(9, 55, 91, 0.25) !important;
}

/* حالت فشردن دکمه */
.ma_button:active {
    transform: translateY(0) !important;
    box-shadow: 0 4px 10px rgba(9, 55, 91, 0.2) !important;
}

/* حالت غیرفعال دکمه */
.ma_button:disabled {
    background-color: #d1d5db !important;
    color: #9ca3af !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* کارت‌های انتخاب روش ورود */
.ma_method_cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 10px !important;
}

.ma_method_card {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 18px 20px !important;
    background-color: #f9fafb !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
}

.ma_method_card:hover {
    background-color: #ffffff !important;
    border-color: #09375b !important;
    box-shadow: 0 8px 20px rgba(9, 55, 91, 0.15) !important;
    transform: translateY(-2px) !important;
}

.ma_method_content {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.ma_method_text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: right !important;
}

.ma_method_icon_compact {
    width: 48px !important;
    height: 48px !important;
    background-color: #09375b !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    transition: transform 0.3s ease !important;
}

.ma_method_card:hover .ma_method_icon_compact {
    transform: scale(1.05) !important;
}

.ma_method_icon_compact svg {
    width: 28px !important;
    height: 28px !important;
    fill: #ffcf00 !important;
}

.ma_method_title {
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #09375b !important;
    margin-bottom: 4px !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

.ma_method_desc {
    font-size: 12px !important;
    color: #6b7280 !important;
    text-align: right !important;
    font-family: 'Vazirmatn', sans-serif !important;
}

/* لینک‌های اضافی (مثل "فراموشی رمز عبور") */
/*.ma_container a {*/
/*    color: #09375b !important;*/
/*    text-decoration: none !important;*/
/*    font-weight: 600 !important;*/
/*    font-family: 'Vazirmatn', sans-serif !important;*/
/*    transition: color 0.3s ease !important;*/
/*}*/

.ma_container a:hover {
    color: #ffcf00 !important;
}

/* پیام موفقیت (در صورت وجود) */
.ma_success {
    color: #065f46 !important;
    background-color: #d1fae5 !important;
    border: 1px solid #a7f3d0 !important;
    border-radius: 15px !important;
    padding: 12px 20px !important;
    margin-bottom: 20px !important;
    font-size: 14px !important;
    font-family: 'Vazirmatn', sans-serif !important;
    font-weight: 600 !important;
}

/* ریسپانسیو - موبایل */
@media (max-width: 768px) {
    .ma_container {
        max-width: 90% !important;
        margin: 30px auto !important;
        padding: 30px 20px !important;
    }
    
    .ma_title {
        font-size: 24px !important;
        margin-bottom: 25px !important;
    }
    
    .ma_input {
        padding: 12px 15px !important;
        font-size: 14px !important;
    }
    
    .ma_button {
        padding: 13px 25px !important;
        font-size: 15px !important;
    }
    
    .ma_method_icon_compact {
        width: 44px !important;
        height: 44px !important;
    }
    
    .ma_method_icon_compact svg {
        width: 24px !important;
        height: 24px !important;
    }
    
    .ma_method_title {
        font-size: 15px !important;
    }
    
    .ma_method_desc {
        font-size: 11px !important;
    }
}

@media (max-width: 480px) {
    .ma_container {
        padding: 25px 15px !important;
    }
    
    .ma_title {
        font-size: 20px !important;
    }
}