/* ==================== صفحه ورود ==================== */
.login-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.login-card {
    background: var(--white-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    width: 100%;
    max-width: 450px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.login-header p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* ==================== مراحل ورود ==================== */
.login-step {
    display: none;
}

.login-step.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

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

/* ==================== دکمه بازگشت ==================== */
.btn-back {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s;
}

.btn-back:hover {
    color: var(--primary-dark);
}

/* ==================== ورودی‌های OTP ==================== */
.otp-info {
    text-align: center;
    margin-bottom: 25px;
}

.otp-info p {
    margin: 5px 0;
    font-size: 14px;
    color: var(--text-secondary);
}

.otp-info strong {
    color: var(--text-primary);
    direction: ltr;
    display: inline-block;
}

.timer {
    color: var(--danger-color);
    font-weight: 500;
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    direction: ltr; /* کد OTP از چپ به راست پر می‌شود (کادر اول = چپ‌ترین) */
}

.otp-input {
    width: 50px;
    height: 55px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(91, 125, 255, 0.1);
}

.otp-input.filled {
    border-color: var(--success-color);
    background-color: rgba(16, 185, 129, 0.05);
}

/* ==================== دکمه ارسال مجدد ==================== */
.btn-resend {
    width: 100%;
    text-align: center;
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

.btn-resend:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-resend:not(:disabled) {
    color: var(--primary-color);
    cursor: pointer;
}

.btn-resend:not(:disabled):hover {
    text-decoration: underline;
}

/* ==================== فرم ثبت‌نام ==================== */
.register-info {
    text-align: center;
    margin-bottom: 30px;
}

.register-info h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.register-info p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

/* ==================== فوتر ورود ==================== */
.login-footer {
    text-align: center;
    margin-top: 25px;
}

.login-footer p {
    font-size: 13px;
    color: var(--text-secondary);
}

.login-footer a {
    color: var(--primary-color);
    font-weight: 500;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* ==================== Responsive ==================== */
@media (max-width: 576px) {
    .login-card {
        padding: 30px 20px;
    }

    .login-header h2 {
        font-size: 20px;
    }

    .otp-input {
        width: 42px;
        height: 48px;
        font-size: 20px;
    }

    .otp-inputs {
        gap: 6px;
    }
}

/* یادداشت دمو (پروتوتایپ) */
.login-demo {
    margin-top: 12px;
    padding: 8px 12px;
    background: var(--gray-50);
    border: 1px dashed var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.9;
}
.login-demo b { color: var(--primary-color); font-weight: 700; }
