There was not enough information to go by in your original ticket text. Now that we have all the information, here's what was going on. Two issues are apparent:
1. You had enabled the administrator password protection (.htaccess and .htpasswd files in the administrator folder). That's what my first reply told you to do. You can use that feature but do make sure that you note down the username and password. Also note that some older versions of Apache may only accept passwords up to 8 characters long. If it looks like the server doesn't recognise the password try using one that's only 8 characters long. If that works, your version of Apache is very old and should be replaced.
2. You had enabled the administrator secret URL parameter. If you set it to foobar and your site is https://www.example.com you need to access your administrator login as https://www.example.com/administrator/index.php?foobar (note the bold part). If you forget the secret word yes, one way around it is disabling the plugin from the database, the other is following the instructions in https://www.akeeba.com/documentation/admin-tools-joomla/atwafissues.html
I am not sure why you removed the .htaccess file from the site's root or if your login issues were about the former two points or something else. If it's something else, tell me what was going on so I can help.
Nicholas K. Dionysopoulos
Lead Developer and Director
🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!