Apple App Store Sign in loop (Mac Appstore)

I resolved this problem on Macbook Pro (2019) (runs on Monterey) as steps below:

  1. Completely sign out Apple ID in local machine (specifically iCloud).
  2. ⌘ + Space to search Music.
  3. Run Music.
  4. Click on Account from topbar and click Sign In option.
  5. Login your credentials and then Terms & Conditions page will be shown up.

Note: If any information requiring by application like payment method, billing address or etc. (Security Code or Expiration Date informations can be blank inputs on this stage, even if you confirmed on appleid.apple.com.) fill them.

Note 2: Be sure your credit card is open to online shopping, Apple sends a test request to validate.