/* remove codrops styles and reset the whole thing */
#container_demo{
	 text-align: left;
	 margin: 0;
	 padding: 0;
	 margin: 0 auto;
	 font-family: "Trebuchet MS","Myriad Pro",Arial,sans-serif;
}

/** fonts used for the icons **/ 
@font-face {
    font-family: 'FontomasCustomRegular';
    src: url('fonts/fontomas-webfont.eot');
    src: url('fonts/fontomas-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/fontomas-webfont.woff') format('woff'),
         url('fonts/fontomas-webfont.ttf') format('truetype'),
         url('fonts/fontomas-webfont.svg#FontomasCustomRegular') format('svg');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'FranchiseRegular';
    src: url('fonts/franchise-bold-webfont.eot');
    src: url('fonts/franchise-bold-webfont.eot?#iefix') format('embedded-opentype'),
         url('fonts/franchise-bold-webfont.woff') format('woff'),
         url('fonts/franchise-bold-webfont.ttf') format('truetype'),
         url('fonts/franchise-bold-webfont.svg#FranchiseRegular') format('svg');
    font-weight: normal;
    font-style: normal;

}
a.hiddenanchor{
	display: none;
}
/** The wrapper that will contain our two forms **/
#wrapper{
	right: 200px;
	width: 300px;
	position:absolute;
	z-index:3;
	top:150px;
}
/**** Styling the form elements **/

/**** general text styling ****/
#wrapper a{
	color:#3f7dc3;
	text-decoration: underline;
}

#wrapper h1{
	font-size: 28px;
	padding: 2px 0 10px 0;
	font-family: 'Arial Narrow',Arial,sans-serif;
	font-weight: bold;
	text-align: center;
	padding-bottom: 20px;
}
/** For the moment only webkit supports the background-clip:text; */
#wrapper h1{
    color:#3f7dc3;

	-webkit-background-clip: text;
}
#wrapper h1:after{
	background-image:url(../images/line.png);
	content: ' ';
	display: block;
	width: 100%;
	height: 2px;
	margin-top: 10px;
	background: -moz-linear-gradient(left, rgba(59,99,169,0) 0%, rgba(59,99,169,0.8) 20%, rgba(59,99,169,1) 53%, rgba(59,99,169,0.8) 79%, rgba(59,99,169,0) 100%); 
	background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(59,99,169,0)), color-stop(20%,rgba(59,99,169,0.8)), color-stop(53%,rgba(59,99,169,1)), color-stop(79%,rgba(59,99,169,0.8)), color-stop(100%,rgba(59,99,169,0))); 
	background: -webkit-linear-gradient(left, rgba(59,99,169,0) 0%,rgba(59,99,169,0.8) 20%,rgba(59,99,169,1) 53%,rgba(59,99,169,0.8) 79%,rgba(59,99,169,0) 100%); 
	background: -o-linear-gradient(left, rgba(59,99,169,0) 0%,rgba(59,99,169,0.8) 20%,rgba(59,99,169,1) 53%,rgba(59,99,169,0.8) 79%,rgba(59,99,169,0) 100%); 
	background: -ms-linear-gradient(left, rgba(59,99,169,0) 0%,rgba(59,99,169,0.8) 20%,rgba(59,99,169,1) 53%,rgba(59,99,169,0.8) 79%,rgba(59,99,169,0) 100%); 
	background: linear-gradient(left, rgba(59,99,169,0) 0%,rgba(59,99,169,0.8) 20%,rgba(59,99,169,1) 53%,rgba(59,99,169,0.8) 79%,rgba(59,99,169,0) 100%); 
}
 -fore1 .clear-btn, .form .item-fore2 .clear-btn{position:absolute;z-index:20px;right:6px;top:12px;width:14px;height:14px;background:url(../images/pwd-icons-new.png) -25px -143px no-repeat;cursor:pointer;display:none;}
 .form .item-fore1 #sloginpwd, .form .item-fore2 #sloginpwd{ position:absolute;display:block;z-index:3; top:2px;left:49px;width:254px;height:34px;line-height:34px;overflow:hidden;-webkit-backface-visibility:hidden;-webkit-transform:translateZ(0);}
.form .item-fore1{z-index:6;}
.form .item-fore1, .form .item-fore2{border:1px solid #bdbdbd;height:38px; width:265px;}
.form .item{position:relative;margin-bottom:20px;z-index:1;}
.form .item .name-label{background-position:0 0;}
.form .item .login-label{ position:absolute; z-index:3px; top:0; left:0; width:38px; height:38px; border-right:1px solid #bdbdbd; background:url(../images/pwd-icons-new.png) no-repeat;}
.form label{ float:none;}
.form .itxt{line-height:18px;height:18px; border:0;padding:10px 0 10px 50px;width:215px;float:none;overflow:hidden;font-size:14px;font-family:'\5b8b\4f53';}
input:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px #fff inset;}
.form .item-fore2{height:38px;}
.form .item .pwd-label{background-position:-48px 0;}
.form input[type=password]{font-family:Tahoma,Helvetica,Arial;}
/* all the input except submit and checkbox */

/*#wrapper input:not([type="checkbox"]):active,
#wrapper input:not([type="checkbox"]):focus{
	border: 1px solid rgba(91, 90, 90, 0.7);
	background: rgba(238, 236, 240, 0.2);	
	-webkit-box-shadow: 0px 1px 4px 0px rgba(168, 168, 168, 0.9) inset;
	   -moz-box-shadow: 0px 1px 4px 0px rgba(168, 168, 168, 0.9) inset;
	        box-shadow: 0px 1px 4px 0px rgba(168, 168, 168, 0.9) inset;
} */

/**** advanced input styling ****/
/* placeholder */
::-webkit-input-placeholder  { 
	color: rgb(190, 188, 188); 
	font-style: italic;
}
input:-moz-placeholder,
textarea:-moz-placeholder{ 
	color: rgb(190, 188, 188);
	font-style: italic;
} 
input {
  outline: none;
}



/** the magic icon trick ! **/
[data-icon]:after {
    content: attr(data-icon);
    font-family: 'FontomasCustomRegular';
    color: rgb(191,191,191);
    position: absolute;
    left: 10px;
    top: 30px;
	width: 30px;
}

/*styling both submit buttons */
#wrapper p.button input{
	width:117px;
	height:41px;
	cursor: pointer;	
	background:url(../images/submit_before.png);
	padding: 8px 5px;
	font-family:'Arial Narrow',Arial,sans-serif;
	color: #fff;
	font-size: 16px;	
	margin-bottom: 10px;	
	/*text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
	-webkit-border-radius: 3px;
	   -moz-border-radius: 3px;
	        border-radius: 3px;	
	-webkit-box-shadow: 0px 1px 6px 4px rgba(0, 0, 0, 0.07) inset,
	        0px 0px 0px 3px rgb(254, 254, 254),
	        0px 5px 3px 3px rgb(210, 210, 210);
	   -moz-box-shadow:0px 1px 6px 4px rgba(0, 0, 0, 0.07) inset,
	        0px 0px 0px 3px rgb(254, 254, 254),
	        0px 5px 3px 3px rgb(210, 210, 210);
	        box-shadow:0px 1px 6px 4px rgba(0, 0, 0, 0.07) inset,
	        0px 0px 0px 3px rgb(254, 254, 254),
	        0px 5px 3px 3px rgb(210, 210, 210);
	-webkit-transition: all 0.2s linear;
	   -moz-transition: all 0.2s linear;
	     -o-transition: all 0.2s linear;
	        transition: all 0.2s linear;*/
}
#wrapper p.button input:hover{
	background:url(../images/submit_hover.png);
}
#wrapper p.button input:active,
#wrapper p.button input:focus{
	background:url(../images/submit_focus.png);
	position: relative;
	top: 1px;
	/*border: 1px solid rgb(12, 76, 87);	
	-webkit-box-shadow: 0px 1px 6px 4px rgba(0, 0, 0, 0.2) inset;
	   -moz-box-shadow: 0px 1px 6px 4px rgba(0, 0, 0, 0.2) inset;
	        box-shadow: 0px 1px 6px 4px rgba(0, 0, 0, 0.2) inset;*/
}
p.login.button,
p.signin.button{
	text-align: right;
	margin: 20px 0;
}


/* styling the checkbox "keep me logged in"*/
.keeplogin{
	margin-top: 20px;
}
.keeplogin input,
.keeplogin label{
	
	font-size: 12px;
	
}
.keeplogin input#loginkeeping{
	vertical-align:middle;
}
.keeplogin label{
	width: 80%;
}

/*styling the links to change from one form to another */


/** Styling both forms **/
#register, 
#login{
	position: absolute;
	top: 0px;
	width:270px;
	height:290px;	
	padding:18px 6% 40px 10%;
	background-image:url(../images/login_form_bg.png);
	
}
#register{	
	z-index: 21;
	opacity: 0;
}
#login{
	z-index: 22;
}
#toregister:target ~ #wrapper #register,
#tologin:target ~ #wrapper #login{
	z-index: 22;
	-webkit-animation-name: fadeInLeft;
	-moz-animation-name: fadeInLeft;
	-ms-animation-name: fadeInLeft;
	-o-animation-name: fadeInLeft;
	animation-name: fadeInLeft;
	-webkit-animation-delay: .1s;
	-moz-animation-delay: .1s;
	-o-animation-delay: .1s;
	-ms-animation-delay: .1s;
	animation-delay: .1s;
}
#toregister:target ~ #wrapper #login,
#tologin:target ~ #wrapper #register{
	-webkit-animation-name: fadeOutLeft;
	-moz-animation-name: fadeOutLeft;
	-ms-animation-name: fadeOutLeft;
	-o-animation-name: fadeOutLeft;
	animation-name: fadeOutLeft;
}

/** the actual animation, credit where due : http://daneden.me/animate/ ***/
.animate{
	-webkit-animation-duration: 0.5s;
	-webkit-animation-timing-function: ease;
	-webkit-animation-fill-mode: both;
	
	-moz-animation-duration: 0.5s;
	-moz-animation-timing-function: ease;
	-moz-animation-fill-mode: both;
	
	-o-animation-duration: 0.5s;
	-o-animation-timing-function: ease;
	-o-animation-fill-mode: both;
	
	-ms-animation-duration: 0.5s;
	-ms-animation-timing-function: ease;
	-ms-animation-fill-mode: both;
	
	animation-duration: 0.5s;
	animation-timing-function: ease;
	animation-fill-mode: both;
}

/** yerk some ugly IE fixes 'cause I know someone will ask "why does it look ugly in IE?", no matter how many warnings I will put in the article */

.lt8 #wrapper input{
	padding: 10px 5px 10px 32px;
    width: 92%;
}
.lt8 #wrapper input[type=checkbox]{
	width: 10px;
	padding: 0;
}
.lt8 #wrapper h1{
	color: #066A75;
}
.lt8 #register{	
	display: none;
}
.lt8 p.change_link,
.ie9 p.change_link{
	position: absolute;
	height: 90px;
	background: transparent;
}