If your mouse cursor does not lock to a game on Windows 11/10, Enable LUA, Update or reinstall the Mouse and Touchpad driver, Disable Mouse Precision, etc.
If you are being asked to enter a password multiple times for your Microsoft account, Credentials, Browser Cookies, Sync issues, 2FA, third-party conflicts could be the cause.