Fast form’s validation with server-side validation

Say for example that I’m building a web application with auth functionalities. How can I display warnings, change the colors of the input, etc. as I type? Client and server-side validation? But client-side validation would be insecure or visible to the client through the google console? Or maybe fetching an endpoint every time that I type?