/* Styles for authentication pages (login, register) */
.auth-section {
    padding: 120px 0 60px;
    background-color: var(--gray-light);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.auth-container {
    display: flex;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

.auth-form-container {
    flex: 1;
    padding: 40px;
}

.auth-image {
    display: none;
    flex: 1;
    position: relative;
}

.auth-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(26, 115, 232, 0.8), rgba(13, 71, 161, 0.9));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
}

.auth-image-overlay h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.auth-image-overlay p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.form-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-dark);
    text-align: center;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 30px;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--text-color);
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"],
.auth-form select,
.auth-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-medium);
    border-radius: var(--border-radius);
    font-family: 'IRANSans', sans-serif;
    font-size: 14px;
    transition: var(--transition);
}

.auth-form input:focus,
.auth-form select:focus,
.auth-form textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.auth-form textarea {
    resize: vertical;
}

.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input[type="checkbox"] {
    margin-left: 10px;
}

.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-dark);
    cursor: pointer;
}

.error-message {
    color: var(--warning-color);
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.error input,
.form-group.error select {
    border-color: var(--warning-color);
}

.form-group.error .error-message {
    display: block;
}

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.auth-divider:before,
.auth-divider:after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: var(--gray-medium);
}

.auth-divider span {
    padding: 0 10px;
    color: var(--text-light);
    font-size: 14px;
}

.social-login {
    margin-bottom: 20px;
}

.btn-social {
    width: 100%;
    padding: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--white);
    border: 1px solid var(--gray-medium);
    color: var(--text-color);
}

.btn-google:hover {
    background-color: #f8f8f8;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-light);
}

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

/* Animation */
.auth-form-container {
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive styles */
@media (min-width: 768px) {
    .auth-image {
        display: block;
    }
    
    .auth-form-container {
        padding: 50px;
    }
}

@media (max-width: 767px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-form-container {
        order: 2;
    }
    
    .auth-image {
        display: block;
        order: 1;
        height: 200px;
    }
}