/* ==========================================================================
   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: var(--e-global-color-primary);
}

.sms-auth-login-link .switch-to-register-view {
    color: var(--e-global-color-4a31a20) !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: var(--e-global-color-6911b0e);
    border-radius: 8px;
    box-shadow: none;
    direction: rtl;
    text-align: right;
    font-family: inherit;
}

.sms-auth-form h3 {
    margin-top: 0;
    margin-bottom: 30px;
    text-align: right;
    color: var(--e-global-color-primary);
    font-size: 24px;
    font-family: inherit;
    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: var(--e-global-color-primary);
    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: var(--e-global-color-primary);
}

/* استایل یکپارچه برای تمام اینپوت‌ها */
.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 var(--e-global-color-a59e4a8);
    border-radius: 12px;
    height: 48px;
    font-size: 14px;
    font-weight: 400;
    box-sizing: border-box;
    transition: border-color 0.3s;
    color: var(--e-global-color-secondary);
    font-family: inherit;
    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: var(--e-global-color-4a31a20);
}

/* استایل دکمه‌های اصلی */
.sms-auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--e-global-color-primary) !important;
    color: var(--e-global-color-6911b0e);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s;
    height: 48px;
    font-family: inherit;
}
.sms-auth-submit-btn:hover { background: var(--e-global-color-primary); color: var(--e-global-color-6911b0e);}
.sms-auth-submit-btn:disabled { background: #ccc; cursor: not-allowed; }

/* تب‌ها */
.sms-auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--e-global-color-6911b0e);
    margin-bottom: 25px;
    gap: 5px;
}

.sms-auth-tab-btn {
    flex: 1;
    padding: 12px 10px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--e-global-color-accent);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: -2px;
    font-family: inherit;
}

.sms-auth-tab-btn.active {
    color: var(--e-global-color-4a31a20);
    border-bottom-color: var(--e-global-color-4a31a20);
    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; }