@charset "utf-8";

/* spryvalidationtextfield.css - version 0.4 - spry pre-release 1.6.1 */

/* copyright (c) 2006. adobe systems incorporated. all rights reserved. */


/* these are the classes applied on the error messages
 * which prevent them from being displayed by default.
 */ 
.textfieldrequiredmsg, 
.textfieldinvalidformatmsg, 
.textfieldminvaluemsg,
.textfieldmaxvaluemsg,
.textfieldmincharsmsg,
.textfieldmaxcharsmsg,
.textfieldvalidmsg {
	display: none;
}

/* these selectors change the way messages look when the widget is in one of the error states.
 * these classes set a default red border and color for the error text.
 * the state class (e.g. .textfieldrequiredstate) is applied on the top-level container for the widget,
 * and this way only the specific error message can be shown by setting the display property to "inline".
 */
.textfieldrequiredstate .textfieldrequiredmsg, 
.textfieldinvalidformatstate .textfieldinvalidformatmsg, 
.textfieldminvaluestate .textfieldminvaluemsg,
.textfieldmaxvaluestate .textfieldmaxvaluemsg,
.textfieldmincharsstate .textfieldmincharsmsg,
.textfieldmaxcharsstate .textfieldmaxcharsmsg
{
	display: inline;
	color: #cc3333;
	background-color: #fdd;
	background-image: ;
	background-repeat: no-repeat;
	padding-top: 5px;
	padding-right: 5px;
	padding-bottom: 5px;
	padding-left: 20px;
}



/* the next three group selectors control the way the core element (input) looks like when the widget is in one of the states: * focus, required / invalid / minvalue / maxvalue / minchars / maxchars , valid 
 * there are two selectors for each state, to cover the two main usecases for the widget:
 * - the widget id is placed on the top level container for the input
 * - the widget id is placed on the input element itself (there are no error messages)
 */
 
 /* when the widget is in the valid state the input has a green background applied on it. */
.textfieldvalidstate input, input.textfieldvalidstate {
	background-color: #eaf4fb;
}

/* when the widget is in an invalid state the input has a red background applied on it. */
input.textfieldrequiredstate, .textfieldrequiredstate input, 
input.textfieldinvalidformatstate, .textfieldinvalidformatstate input, 
input.textfieldminvaluestate, .textfieldminvaluestate input, 
input.textfieldmaxvaluestate, .textfieldmaxvaluestate input, 
input.textfieldmincharsstate, .textfieldmincharsstate input, 
input.textfieldmaxcharsstate, .textfieldmaxcharsstate input {
	background-color: #fdd;
}

/* when the widget has received focus, the input has a yellow background applied on it. */
.textfieldfocusstate input, input.textfieldfocusstate {
	background-color: #ffffcc;
}

/* this class applies only for a short period of time and changes the way the text in the textbox looks like.
 * it applies only when the widget has character masking enabled and the user tries to type in an invalid character.
 */
.textfieldflashtext input, input.textfieldflashtext {
	color: red !important;
}

/* when the widget has the hint message on, the hint text can be styled differently than the user typed text. */
.textfieldhintstate input, input.textfieldhintstate {
	/*color: red !important;*/
}
