My Mac Mini won't sign in or connect to my Apple ID / iCloud
I was prompted by the system to sign out of my Apple ID on my Mac mini. I did so, and now my mac mini won't reconnect to iCloud/Apple id when I try sign in. I enter the email and password correctly into the Apple ID section in the System Preferences app and it just resets and does nothing. It does this when I try to sign in to the app store as well. I have an Ipad as well and that is signed in. But my Mac mini is my main machine and my notes for the last few years are no longer accessible as a result of this inability to connect/sign in. Please help!!!!!!
Mac mini, macOS 12.6