If you have cpanel access with your hosting package, it should have a password protect folders option.

Then you publish all your protected content to a protected subfolder.

This method means same password is shared by all users, not sure if that's what you want?

I would recommend protecting your site with SSL certificate since you are entering passwords, most decent hosting has free LetsEncrypt SSL certificates nowadays. Again, look in your cpanel for this.