Hi @Hachi Liu 刘帅
For user name and password login, please clear the cache of the browser and log in the site with the account to check the password and MFA is disabled. If MFA is disabled, you could try to change the password of the user.
For the client id and secret login, you are used a tenant scope app create the site. If you want to access the site, you will need to register a new app which is sitecollection scope.
Please refer to the following document
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.