/* ===================== */
/* Auth Section */
/* ===================== */
.auth-section {
    min-height: 100vh;
    padding: 120px 0 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #1f1f1f 100%);
    position: relative;
    display: flex;
    align-items: center;
    z-index: 2;
}

.auth-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 80%, rgba(255, 107, 53, 0.1) 0%, transparent 40%);
    z-index: 1;
}

.auth-container {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
}

/* Auth Card */
.auth-card {
    background: linear-gradient(145deg, var(--secondary-color), #151515);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 25px;
    padding: 45px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
    transform: rotate(-5deg);
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-header p span {
    color: var(--accent-color);
    font-weight: 600;
}

/* Error Message */
.error-message {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: shake 0.5s ease-in-out;
}

.error-message i {
    color: #f44336;
    font-size: 1.2rem;
}

.error-message span {
    color: #f44336;
    font-size: 0.9rem;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20%,
    60% {
        transform: translateX(-5px);
    }

    40%,
    80% {
        transform: translateX(5px);
    }
}

/* Success Message */
.success-message {
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 12px;
    padding: 15px 18px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.success-message i {
    color: #4caf50;
    font-size: 1.2rem;
}

.success-message span {
    color: #4caf50;
    font-size: 0.9rem;
}

/* Form Styles */
.auth-form {
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.mobile-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.country-code {
    background: var(--primary-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: none;
    border-radius: 0 12px 12px 0;
    padding: 16px 15px;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 600;
}

.mobile-input {
    border-radius: 12px 12px 12px 12px;
    padding: 16px 20px 16px 60px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.mobile-input:focus {
    border-color: var(--accent-color);
}

.input-hint {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Button Styles */
.btn-block {
    width: 100%;
    padding: 18px;
    font-size: 1.1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-loader {
    font-size: 1.2rem;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

.auth-footer a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===================== */
/* OTP Input Styles */
/* ===================== */
.otp-container {
    margin-bottom: 30px;
    direction: ltr;
    /* ← اضافه کنید - مهم */
}

.otp-inputs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 15px;
    direction: ltr;
    /* ← اضافه کنید */
}

.otp-input {
    width: 60px;
    height: 70px;
    background: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-light);
    transition: all 0.3s;
    font-family: 'Dana', sans-serif;
    direction: ltr;
    /* ← اضافه کنید */
    text-align: center;
}

.otp-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    transform: scale(1.05);
}

.otp-input.filled {
    border-color: var(--accent-color);
    background: rgba(255, 107, 53, 0.1);
}

.otp-hint {
    display: block;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    direction: rtl;
    /* ← اضافه کنید */
}

/* Resend Section */
.resend-section {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.resend-section p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    padding: 8px 15px;
    border-radius: 8px;
}

.resend-btn:hover {
    background: rgba(255, 107, 53, 0.1);
}

.resend-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}

.resend-btn:disabled:hover {
    background: none;
}

.countdown {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: none;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.countdown span:nth-child(2) {
    color: var(--accent-color);
    font-weight: 700;
    font-size: 1.1rem;
    min-width: 35px;
    text-align: center;
}

.countdown.active {
    display: flex;
}

/* Back Section */
.back-section {
    text-align: center;
    padding-top: 20px;
}

.back-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.back-link:hover {
    color: var(--accent-color);
}

.back-link i {
    font-size: 0.8rem;
}

/* ===================== */
/* Auth Features Sidebar */
/* ===================== */
.auth-features {
    background: linear-gradient(145deg, var(--secondary-color), #151515);
    border: 1px solid rgba(255, 107, 53, 0.15);
    border-radius: 25px;
    padding: 40px 35px;
    width: 100%;
    max-width: 320px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.auth-features h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
}

.auth-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.auth-features li {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.auth-features li:last-child {
    border-bottom: none;
}

.auth-features li i {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent-color), #e55a2b);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.auth-features li div {
    display: flex;
    flex-direction: column;
}

.auth-features li strong {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.auth-features li span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 991px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-features {
        max-width: 450px;
        order: -1;
    }
}

@media (max-width: 576px) {
    .auth-section {
        padding: 100px 0 40px;
    }

    .auth-card {
        padding: 30px 25px;
    }

    .auth-logo {
        width: 70px;
        height: 70px;
        font-size: 1.7rem;
    }

    .auth-header h1 {
        font-size: 1.5rem;
    }

    .otp-input {
        width: 50px;
        height: 60px;
        font-size: 1.5rem;
    }

    .otp-inputs {
        gap: 8px;
    }

    .auth-features {
        padding: 30px 25px;
    }

    .auth-features li {
        gap: 15px;
    }

    .auth-features li i {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}