input field with RegExp pattern validation and LESS styling. Using extra sibling div element with Font Awesome font to indicate if an input field is validated. Using extra sibling div element for error messages. No background image has been used. No Javascript
On Example 2, there is no parent-parent selector, which is not possible to select other errormsg elements
A Pen by Harianto van Insulinde on CodePen.