The most straightforward way to macOS password reset on a locked MacBook is by using your Apple ID. First, type an incorrect password three times at the login screen until the reset option is displayed. After that, you should click on the arrow near the words "Reset it with your Apple ID" and then log in through your Apple ID credentials. Complete the steps shown on the screen for setting a new login password and also contribute a hint. At the end, if a restart is suggested, a restart should be done, and then logging in with the new password is possible. This method is fast, easy, and keeps all your files, apps, and system settings intact.