Issue
Sometimes, after fresh instance setup maybe getting error on the login screen
Fix
1. go to C:\inetpub\wwwroot\<identityServer Instance Name>\Config\production\Sitecore.IdentityServer.Host.xml
2. update AllowedCorsOriginsGroupN values from http to https
3. AppPool recycle
Now check, hope this will work.