Change text field color

how i know this maybe is little simple but i m interesting to know how cant i change a text field color.

Example. I have a website form that have required fields. And when some information is missing i want to change to red color the text field to warning the user.

How can i do that?

:thumb2:
Bye and thanks