/* استایل پاپ‌آپ لاگین اختصاصی تک‌تبی */
.theme-auth-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: none;
    align-items: center; justify-content: center;
    direction: rtl;
    padding: 15px;
    box-sizing: border-box;
}

.theme-auth-modal-overlay.active { display: flex; }

.theme-auth-modal-box {
    background: #ffffff;
    width: 100%; max-width: 400px;
    border-radius: 10px;
    padding: 25px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    animation: authPop 0.3s ease;
}

@keyframes authPop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.theme-auth-close {
    position: absolute; top: 12px; left: 15px;
    background: none; border: none; font-size: 24px;
    color: #64748b; cursor: pointer;
}

/* عنوان تک‌تبی بالای مدال */
.auth-single-title-box {
    text-align: center;
    border-bottom: 2px solid #000ec2;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.auth-modal-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #000ec2;
    margin: 0;
}

.auth-field-group { margin-bottom: 16px; text-align: right; }
.auth-field-group label { display: block; font-size: 0.82rem; font-weight: 700; color: #334155; margin-bottom: 6px; }

.auth-input {
    width: 100%; padding: 11px 14px; border: 1px solid #cbd5e1;
    border-radius: 6px; font-size: 0.9rem; outline: none; box-sizing: border-box;
    transition: border-color 0.2s;
}
.auth-input:focus { border-color: #000ec2; }

.auth-input.text-center { text-align: center; direction: ltr; font-weight: bold; letter-spacing: 1px; }

/* ورودی ۵ رقمی کد OTP */
.auth-input.otp-code-input {
    font-size: 1.5rem;
    text-align: center;
    direction: ltr;
    letter-spacing: 10px;
    font-weight: 800;
    color: #000ec2;
}

.sms-sent-info {
    background: #f1f5f9;
    padding: 10px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    color: #334155;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-mobile-btn {
    background: none;
    border: none;
    color: #e52129;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
}

.sms-timer-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #64748b;
}

#smsTimerBox {
    background: #fee2e2;
    color: #dc2626;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: bold;
}

.resend-otp-btn {
    background: none;
    border: 1px solid #000ec2;
    color: #000ec2;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.resend-otp-btn:hover {
    background: #000ec2;
    color: #ffffff;
}

.auth-submit-btn {
    width: 100%; padding: 12px; background: #000ec2; color: #fff;
    border: none; border-radius: 6px; font-weight: 700; font-size: 0.95rem;
    cursor: pointer; margin-top: 5px; transition: background 0.2s;
}
.auth-submit-btn:hover { background: #0b51b3; }
.auth-submit-btn.register-bg { background: #10b981; }
.auth-submit-btn.register-bg:hover { background: #059669; }

.auth-form-content { display: none; }
.auth-form-content.active { display: block; }

.auth-alert-message {
    padding: 10px 12px; border-radius: 6px; font-size: 0.8rem;
    font-weight: 700; margin-bottom: 15px; display: none;
}
.auth-alert-message.error { background: #fee2e2; color: #dc2626; }
.auth-alert-message.success { background: #d1fae5; color: #059669; }