Logon is used for a hardware system that starts up when used, like a computer.
Login is used for a software system where u have to enter my username and password.
"Log in" written as two words is a verb,
"Login", written as one word, is a noun or an adjective
I am glad you asked such an interesting question. Keep practicing, keep learning ! GL 🙂