Hello there, onsuro,
The steps outlined in the Apple Support article If you forgot your Mac login password - Apple Support provide direction on how to reset your Mac login password if you've forgotten it, or it doesn't seem to be working. You mentioned not being successful trying to use your Apple ID, so we'd suggest seeing if you can use one of the other options in that article.
If you still cannot regain access to the Mac, follow the steps in If you can't reset your Mac login password - Apple Support, which provides additional guidance when you are unable to reset the Mac login password with the first article above.
After that, you'll need to get in touch with Apple Support directly if you still need help with your Mac login password. You can do that here: Get Support.
Enjoy your weekend!