We can create login and signup forms with a toggle option only using HTML and CSS without javascript(No javascript). We use a checkbox to implement this toggle between those buttons.
Have you heard about CSS if-else statements? We can use checkboxes as if-else statements!
https://youtu.be/1g5b19lnPBA

Login and signup forms with a toggle option only using HTML and CSS | No JS | CSS if-else!
11.30 GEEK