/* ========== استایل فرم ورود و ثبت‌نام ========== */
.smslogin-container {
    max-width: 400px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.smslogin-form-wrapper {
    position: relative;
    min-height: 400px;
}
.smslogin-step {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}
.smslogin-step.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.smslogin-step h2 {
    color: #0b2557; /* سورمئی */
    text-align: center;
    margin-bottom: 10px;
    font-size: 24px;
}
.smslogin-step p {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    cursor: pointer;
    font-size: 14px;
}
.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Vazir', sans-serif;
}
.form-group input:focus {
    outline: none;
    border-color: #FF8323; /* نارنجی */
    box-shadow: 0 0 0 3px rgba(255,131,35,0.1);
}
.otp-container {
    margin: 30px 0;
}
.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    direction: ltr;
    text-align: left;
}
.otp-digit {
    width: 50px !important;
    height: 60px;
    text-align: center;
    font-size: 24px !important;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    padding: 0 !important;
    direction: ltr;
    unicode-bidi: embed;
}
.otp-digit:focus {
    border-color: #FF8323; /* نارنجی */
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,131,35,0.2);
    transform: translateY(-2px);
}

/* دکمه‌ها */
.smslogin-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FF8323, #e6731f); /* نارنجی */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazir', sans-serif;
}
.smslogin-btn:hover {
    background: linear-gradient(135deg, #e6731f, #cc631a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,131,35,0.4);
}
.smslogin-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* لینک‌ها */
.smslogin-btn-link {
    background: none;
    border: none;
    color: #0b2557; /* سورمئی */
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    padding: 0;
    font-family: 'Vazir', sans-serif;
}
.smslogin-btn-link:hover {
    color: #FF8323; /* نارنجی */
}
.smslogin-btn-link:disabled {
    color: #999;
    cursor: not-allowed;
    text-decoration: none;
}

/* تایمر */
.timer {
    color: #ff6b6b;
    font-size: 14px;
    margin-right: 10px;
    font-weight: bold;
}

/* پیام‌ها */
.smslogin-message {
    margin-top: 20px;
    padding: 12px 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    display: none;
    animation: slideIn 0.3s ease;
}
.smslogin-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.smslogin-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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

/* ریسپانسیو */
@media (max-width: 480px) {
    .smslogin-container { margin: 20px; padding: 15px; }
    .otp-digit { width: 45px !important; height: 55px; font-size: 20px !important; }
    .smslogin-step h2 { font-size: 20px; }
}

/* شماره موبایل نمایشی */
#smslogin-phone-display {
    font-weight: bold;
    color: #0b2557; /* سورمئی */
    direction: ltr;
    display: inline-block;
    background: #f0f0ff;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #c8c8e6;
}
