/* auth-styles.css - Дополнительные стили для авторизации */

/* Header стили */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(165, 180, 252, 0.2);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-image {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #a5b4fc;
    line-height: 1.1;
}

/* Блок с кнопками авторизации */
#authButtons {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* Блок залогиненного пользователя */
#userBlock {
    display: flex;
    gap: 20px;
    align-items: center;
}

.user-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

/* Аватар в header */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
}

/* Кнопки */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: rgba(165, 180, 252, 0.1);
    color: #a5b4fc;
    border: 1px solid rgba(165, 180, 252, 0.3);
}

.btn-secondary:hover {
    background: rgba(165, 180, 252, 0.2);
    border-color: rgba(165, 180, 252, 0.5);
}

.logout-btn {
    padding: 10px 20px;
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
}

/* Скрытие вкладок для неавторизованных */
.tab.auth-required {
    display: none;
}

/* Адаптивность */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
    }
    
    #userBlock {
        flex-direction: column;
        width: 100%;
    }
    
    .header-buttons {
        width: 100%;
        justify-content: space-between;
    }
    
    #authButtons {
        width: 100%;
        justify-content: center;
    }

    .logo-image {
        width: 36px;
        height: 36px;
    }

    .logo-text {
        font-size: 20px;
    }
}
