/* Страница аутентификации */
.auth-section {
    padding: 60px 0;
    background-color: var(--bg);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.auth-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Вкладки */
.auth-tabs {
    display: flex;
    border-bottom: 2px solid var(--border);
    margin-bottom: 30px;
    gap: 5px;
}

.auth-tab {
    flex: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    text-align: center;
    border-radius: var(--radius) var(--radius) 0 0;
}

.auth-tab:hover {
    color: var(--text);
    background-color: var(--hover);
}

.auth-tab.active {
    color: var(--primary);
}

.auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary);
}

/* Формы */
.auth-form {
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-form .form-grid {
    margin-bottom: 20px;
}

/* Кнопка во всю ширину */
.btn-block {
    width: 100%;
    justify-content: center;
}

.btn .btn-text {
    margin-right: 8px;
}

.btn .btn-loader {
    margin-left: 8px;
}

/* Разделитель */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.auth-divider span {
    padding: 0 15px;
    font-size: 0.9rem;
}

/* Ссылка переключения */
.auth-switch {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 20px;
}

.auth-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.auth-link:hover {
    text-decoration: underline;
    color: var(--primary-hover);
}

/* Сообщения об ошибках */
.form-error {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 5px;
    min-height: 20px;
}

/* Общее сообщение */
.auth-message {
    padding: 15px;
    border-radius: var(--radius);
    margin-top: 20px;
    display: none;
    animation: fadeIn 0.3s ease;
}

.auth-message.success {
    display: block;
    background-color: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #16a34a;
}

.auth-message.error {
    display: block;
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.auth-message.info {
    display: block;
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #2563eb;
}

/* Адаптивность */
@media (max-width: 768px) {
    .auth-section {
        padding: 30px 0;
    }
    
    .auth-wrapper {
        padding: 25px;
    }
    
    .auth-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .auth-tab {
        border-radius: var(--radius);
        margin-bottom: 5px;
        border: 1px solid var(--border);
    }
    
    .auth-tab.active {
        background-color: var(--primary);
        color: white;
        border-color: var(--primary);
    }
    
    .auth-tab.active::after {
        display: none;
    }
    
    .form-wrapper.auth-wrapper {
        padding: 25px;
    }
}