/* ==========================================================================
   SMS Auth Plugin - Full Stylesheet
   ========================================================================== */
.full-width-input {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
.sms-auth-login-link {
    text-align: center; /* وسط‌چین کردن کل کانتینر */
    margin-top: 20px;   /* فاصله از بالا */
    font-size: 14px;
    color: #443355;     /* رنگ متن "حساب کاربری ندارید؟" */
}

.sms-auth-login-link .switch-to-register-view {
    color: #9B55C6 !important; /* رنگ بنفش برای لینک ثبت‌نام */
    text-decoration: none;     /* حذف خط زیر لینک */
    font-weight: bold;         /* کمی ضخیم‌تر برای خوانایی بهتر */
    margin-right: 5px;         /* فاصله کمی از متن قبلی */
}

.sms-auth-login-link .switch-to-register-view:hover {
    text-decoration: underline; /* ظاهر شدن خط زیر لینک هنگام بردن موس روی آن */
}
.sms-auth-field-row {
    display: flex;
    gap: 15px; /* فاصله بین دو فیلد */
}

.sms-auth-field-half {
    flex: 1; /* هر کدام نصف فضای ردیف را می‌گیرند */
}

/* استایل عمومی اینپوت‌ها */
.sms-auth-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
}
.sms-auth-form {
    max-width: 500px;
    margin: 30px 0px;
    padding: 0px;
    background: #fff;
    border-radius: 8px;
    box-shadow: none;
    direction: rtl;
    text-align: right;
    font-family: 'Bonyade Koodak FaNum', Tahoma, Arial, sans-serif;
}

.sms-auth-form h3 {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: right;
    color: #443355;
    font-size: 24px;
    font-family: 'Bonyade Koodak FaNum', Tahoma, Arial, sans-serif;
    background-image: var(--sms-auth-header-bg, none);
    background-repeat: no-repeat;
    background-position: right top;
    background-size: 28px 28px;
    padding-right: 0;
}

#login-subtitle {
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 20px;
    text-align: right;
    color: #443355;
    font-size: 16px;
    font-weight: 400;
}

.sms-auth-container { width: 100%; }

/* فیلدها */
.sms-auth-field { margin-bottom: 20px; }

.sms-auth-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #443355;
}

/* استایل یکپارچه برای تمام اینپوت‌ها (موبایل، ایمیل، رمز عبور) */
.sms-auth-field input[type="text"],
.sms-auth-field input[type="tel"],
.sms-auth-field input[type="email"],
.sms-auth-field input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 1px solid #E6E6E6;
    border-radius: 12px;
    height: 48px;
    font-size: 14px;
    font-weight: 400;
    box-sizing: border-box;
    transition: border-color 0.3s;
    color: #333;
    font-family: 'Bonyade Koodak FaNum', Tahoma, Arial, sans-serif;
    direction:rtl;
}
/* اصلاح عرض اینپوت‌های خاص در فرم ایمیل */
#email-login, #email-password, input[type="email"], input[type="password"] {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

/* اطمینان از اینکه کانتینر والد هم عرض کامل دارد */
.sms-auth-field {
    width: 100% !important;
    margin-bottom: 20px !important;
}

.sms-auth-field input:focus {
    outline: none;
    border-color: #9B55C6;
}

/* استایل دکمه‌های اصلی */
.sms-auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: #443355 !important;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    height: 48px;
    font-family: 'Bonyade Koodak FaNum', Tahoma, Arial, sans-serif;
}
.sms-auth-submit-btn:hover { background: #352845;  color:white;}
.sms-auth-submit-btn:disabled { background: #ccc; cursor: not-allowed; }

/* تب‌ها */
.sms-auth-tabs {
    display: flex;
    border-bottom: 2px solid #F0EDF5;
    margin-bottom: 25px;
    gap: 5px;
}

.sms-auth-tab-btn {
    flex: 1;
    padding: 12px 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: #A199AA;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: -2px;
    font-family: 'Bonyade Koodak FaNum', Tahoma, Arial, sans-serif;
}

.sms-auth-tab-btn.active {
    color: #9B55C6;
    border-bottom-color: #9B55C6;
    font-weight: 500;
   
}

.sms-auth-method-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

/* پیام‌ها و سایر المان‌ها */
.sms-auth-message { margin-top: 15px; padding: 10px; border-radius: 5px; font-size: 14px; }
.sms-auth-message.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* Responsive */
@media (max-width: 480px) {
    .sms-auth-form { margin: 10px; padding: 15px; }
}



/* استایل ادمین */
.toplevel_page_sms-auth-settings .wrap { background: #fdfbff; padding: 30px; border-radius: 15px; border: 1px solid #e0d9eb; }
.toplevel_page_sms-auth-settings .form-table tr th { background: #f8f6fb; padding: 25px 20px; }