I have created a custom Login page for my customer portal but the problem is that if I want errors to display when the user enters wrong credentials I am forced to use <apex:pageMessages id="error" />
but this breaks a few styling elements on the page. I have looked into <apex:pageMessage />
but they always display. Per Salesforce,
This pageMessage will always display. Validation error messages appear in the pageMessages component.
So my question is how can I display my own error messages using <apex:pageMessage />
or control the styling of <apex:pageMessages />