Steps to troubleshoot office 365 login issues.
You can't sign in to Microsoft 365, Microsoft Azure, or Microsoft Intune. You might be trying to sign in by using a portal such as https://login.microsoftonline.com. Or, you might be trying to sign in by using a non-browser–based app, such as one of the following apps:
Office apps, such as Outlook, Word, Excel, and PowerPoint
Office apps on mobile devices, such as Office Mobile, Teams, and Microsoft OneDrive for Business (formerly Microsoft SkyDrive Pro)
Azure Active Directory Sync
Azure Active Directory module for Windows PowerShell
Dynamics CRM
Cause
The following conditions might cause this issue:
Your subscription has expired.
Your user account isn't enabled.
You're locked out from your user account.
You tried to sign in with the wrong user name and password.
The password you tried to sign in with is temporary and expired. (It might happen if your user account is new or your password was recently reset.)
Your password has expired.
You're blocked from signing in.
If you're a federated user, single sign-on isn't working.