/*
* Copyright 2012 Research In Motion Limited.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and 
* limitations under the License.
*/

/*Validation Container*/ 
.bb-text-validator {
	display: block;
	margin: 20px;
}

.ui-input-text.bb-text-validated,
.ui-input-search.bb-text-validated {
	display: inline-block;
}

.bb-text-validator > .ui-input-search, 
.bb-text-validator > .ui-input-text {
	margin: 0px;
}

/*Validation Icon*/
.bb-validation-icon {
	display: inline-block;
	width: 48px;
	height: 85px;
	background: no-repeat;
	background-position: center;
	vertical-align: top;
	margin-left: 20px;
}

/*Validated Icon*/
.ui-input-text.bb-text-valid + .bb-validation-icon, 
.ui-input-search.bb-text-valid + .bb-validation-icon {
	background-image: url('images_bb/input_validation.png');
}

.ui-input-text.bb-text-empty + .bb-validation-icon{
	background-image: none;
}

/*Error Highlight*/
.bb-text-invalid.ui-focus .ui-input-text, 
div.ui-input-text.ui-focus.bb-text-invalid .ui-input-text{
	-webkit-box-shadow: inset 0 0 0 4px #d60000;
}

.ui-input-search.bb-text-invalid.ui-focus{
	-webkit-box-shadow: none;
}

/*Error Icon*/
.ui-input-text.bb-text-invalid + .bb-validation-icon,
.ui-input-search.bb-text-invalid + .bb-validation-icon{
	background-image: url('images_bb/input_error.png');
}
