For the computer login password, see if anything here helps.
User Password Reset. -
User Password Reset (2). -
User Password Reset – Apple ID. -
Reset user password - M1 chip computer
If you can't reset your Mac login password *
For the Apple ID (iCloud), see if you can recover the ID/password. An iCloud e-mail address is an Apple ID. Use every email address you can think of.
Apple ID - How to find your Apple -
Apple ID - Find -
Other ways to find your Apple ID
You can check to see if you're signed in to the App Store, FaceTime, or Messages on your iPhone, iPad, iPod touch, or Mac, or check to see if you're signed in to iTunes for Windows on a PC. You can also go to iCloud.com or appleid.apple.com and see if your Apple ID prefills on the sign-in screen.
If you forgot the Apple ID (iCloud) password, enter the Apple (iCloud) ID, and click Forgot Password. See if you can get a Rescue or Notification email option if necessary. Link to contact Apple Support at the end of the 2nd article.
Apple ID - Manage
Apple ID – Forgot Password *