/* ==========================================================================
   SMS Auth Plugin - Full Stylesheet (Site Colors)
   رنگ‌ها: #252525, #D85A3A, #EED6CC, #EFE3DC, #F1ECE6
   ========================================================================== */

.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: #252525 !important;
    padding-top: 16px;
    border-top: 1px dashed #EED6CC;
}

.sms-auth-login-link .switch-to-register-view,
.sms-auth-login-link .switch-to-login-view {
    color: #D85A3A !important;
    text-decoration: none;
    font-weight: 700;
    margin-right: 5px;
    transition: color 0.3s ease;
}

.sms-auth-login-link .switch-to-register-view:hover,
.sms-auth-login-link .switch-to-login-view:hover {
    color: #252525 !important;
    text-decoration: underline;
}

.sms-auth-field-row {
    display: flex;
    gap: 12px;
}

.sms-auth-field-half {
    flex: 1;
    min-width: 0;
}

.sms-auth-form {
    max-width: 500px;
    margin: 30px auto;
    padding: 32px 28px;
    background: #fff;
    border: 1px solid #EED6CC;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(216, 90, 58, 0.08);
    direction: rtl;
    text-align: right;
    font-family: 'IRANYekanX', sans-serif;
}

.sms-auth-form h3 {
    margin-top: 0;
    margin-bottom: 8px;
    text-align: right;
    color: #252525;
    font-size: 22px;
    font-weight: 700;
    font-family: 'IRANYekanX', 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: 16px;
    text-align: right;
    color: #888;
    font-size: 14px;
    font-weight: 400;
    border-bottom: 1px dashed #EED6CC;
	display:none;
}

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

.sms-auth-field {
    margin-bottom: 18px;
    width: 100% !important;
}

.sms-auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #252525;
    font-family: 'IRANYekanX', sans-serif;
}

.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: 12px 14px;
    border: 1px solid #EED6CC;
    border-radius: 10px;
    height: 48px;
    font-size: 14px;
    font-weight: 500;
    box-sizing: border-box;
    transition: all 0.3s ease;
    color: #252525;
    font-family: 'IRANYekanX', sans-serif;
    direction: rtl;
    background: #F1ECE6;
}

.sms-auth-field input[type="text"]:focus,
.sms-auth-field input[type="tel"]:focus,
.sms-auth-field input[type="email"]:focus,
.sms-auth-field input[type="password"]:focus {
    outline: none;
    border-color: #D85A3A;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(216, 90, 58, 0.1);
}

#email-login, #email-password,
input[type="email"], input[type="password"] {
    width: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
}

.sms-auth-submit-btn {
    width: 100%;
    padding: 14px;
    background: #3A6B34 !important;
    color: #fff !important;
    border: none!important;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 38px;
    font-family: 'IRANYekanX', sans-serif;
    letter-spacing: 0.3px;
}

.sms-auth-submit-btn:hover {
    background: #D85A3A !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(216, 90, 58, 0.3);
}

.sms-auth-submit-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.sms-auth-tabs {
    display: none;
    border-bottom: 2px solid #EED6CC;
    margin-bottom: 22px;
    gap: 6px;
}

.sms-auth-tab-btn {
    flex: 1;
    padding: 12px 10px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: #888;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: -2px;
    font-family: 'IRANYekanX', sans-serif;
    border-radius: 8px 8px 0 0;
}

.sms-auth-tab-btn:hover {
    color: #252525;
    background: #EFE3DC;
}

.sms-auth-tab-btn.active {
    color: #D85A3A;
    border-bottom-color: #D85A3A;
    font-weight: 700;
    background: rgba(216, 90, 58, 0.05);
}

.sms-auth-message {
    margin-top: 15px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-family: 'IRANYekanX', sans-serif;
    font-weight: 500;
}

.sms-auth-message.error {
    background: #ffeaea;
    color: #8b1a1a;
    border: 1px solid #f5c6cb;
    border-right: 3px solid #d63638;
}

.sms-auth-message.success {
    background: #EFE3DC;
    color: #252525;
    border: 1px solid #EED6CC;
    border-right: 3px solid #D85A3A;
}

.sms-auth-confirmation-message {
    background: #EFE3DC;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    border-right: 3px solid #D85A3A;
}

.sms-auth-confirmation-message p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #252525;
    font-weight: 500;
}

.sms-auth-edit-mobile {
    color: #D85A3A !important;
    font-size: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.sms-auth-edit-mobile:hover {
    color: #252525 !important;
    text-decoration: underline;
}

.sms-auth-resend-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    padding: 10px;
    background: #F1ECE6;
    border-radius: 8px;
    font-size: 12px;
    color: #888;
    font-family: 'IRANYekanX', sans-serif;
}

.sms-auth-resend-container svg {
    color: #D85A3A;
}

.sms-auth-timer-text {
    font-weight: 600;
    color: #252525;
}

.sms-auth-resend-link {
    background: none;
    border: none;
    color: #D85A3A !important;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-family: 'IRANYekanX', sans-serif;
    transition: color 0.3s ease;
}

.sms-auth-resend-link:hover {
    color: #252525 !important;
    text-decoration: underline;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .sms-auth-form {
        margin: 16px 10px;
        padding: 24px 18px;
    }
    .sms-auth-form h3 {
        font-size: 20px;
    }
    .sms-auth-field-row {
        flex-direction: column;
        gap: 18px;
    }
}