org settings and default settings?. Click Login Behavior and Security and scroll down to check settings under Login Form if External Login allowed or no. Also if Domain Discovery allowed is checked or not too. Do this for BOTH the settings(at instance and at org)

org settingsdefault settingsLogin Behavior and SecurityLogin FormExternal Login allowedDomain Discovery allowed