Hello there,
What is the exact error message that you are getting during the login?
Have you checked your logs ? NPS extension logs are found in Event Viewer under Applications and Services Logs > Microsoft > AzureMfa > AuthN > AuthZ on the server where the NPS Extension is installed.
If you encounter errors with the NPS extension for Azure AD Multi-Factor Authentication, use this article to reach a resolution faster.
Resolve error messages from the NPS extension for Azure AD Multi-Factor Authentication https://learn.microsoft.com/en-us/azure/active-directory/authentication/howto-mfa-nps-extension-errors
This article contains information to help you troubleshoot common issues that you may encounter when you use Windows Multi-Factor Authentication for Microsoft Office 365 or Microsoft Azure. https://learn.microsoft.com/en-us/troubleshoot/azure/active-directory/troubleshoot-azure-mfa-issue
Hope this resolves your Query !!
--If the reply is helpful, please Upvote and Accept it as an answer–