Login issues occur when accessing your local account on Windows 11, except during AD Repair mode.
Do you have administrative access? Have you turned on logging and reviewed the logs to understand the issue?