The following selector will help you in CSS3 to exclude the image type:
input:not([type="image"])
If you don't want to rely on CSS3 - you probably won't, due to browser compatibility - you should change your initial selectors to be more specific:
input[type="text"], input[type="password"]
Edit: More explanation needed
The reason this will work is because it will not specifically exclude any input types, but you will only include the types that you want to configure.
Therefore, instead of saying that I have a, b and c, and I want to exclude b. You can say that I want to focus only on a and c.
source share