When password protection is enabled for the screensaver in Windows 11/10, it doesn't lock the user session immediately but takes a 5 seconds delay to show the login screen. This delay, also known as the grace period, is given to allow the user to resume activity on the computer without having to enter the password.