This is a sample article and explains how password reset can be done remotely.
If you have forgotten your password on macOS 26, follow these steps to reset it: Using Apple ID