*{
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

a{
	text-decoration: none;
	color: #999;
}
*:focus{
	outline: none;
}
.right{
	float: right;
}
.left{
	float: left;
}

.clearfix:after{
	content: "";
	display: block;
	clear: both;
	visibility: visible;
}

body{
	font-size: 12px;
	background: url(../images/login_bg.jpg) center top / cover no-repeat fixed;
}

.login-box{
	position: fixed;
	top: 50%;
	left: 50%;
	width: 540px;
	height: 320px;
	border-radius: 3px;
	transform:translate(-50%,-50%) scale(1.1);
}
.login-box:after{
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%,-50%);
	width:100%;
	height:314px;
	background-color: red;
	box-shadow: 0 0 10px 2px #000;
	border-radius: 5px;
}

.login-form{
	position: absolute;
	z-index: 3;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #fff;
}

.login-form-left{
	width: 225px;
	height: 320px;
	background: url(../images/login_left.jpg) no-repeat;
}

.login-form-right{
	width: 315px;
	height: 100%;
	/*background-color: red;*/
}
.login-form-right .form-title{
	height: 56px;
	line-height: 56px;
	color: #5ECFBA;
	font-size: 20px;
	text-indent: 15px;
	border-bottom: 1px solid #ccc;
	/*font-weight: bold;*/
	letter-spacing: 2px;
}
.login-form-right .form-title .back{
	font-size: 12px;
	color: #5bc0de;
	float: right;
	margin-right: 20px;
}
.login-box .form-group{
	padding: 0 30px;
	color: #999;
}
.login-box .item{
	position: relative;
	height: 40px;
	border: 1px solid #ccc;
	margin: 15px 0 0 0;
	border-radius:3px;
}
.login-box .login-tips{
	font-size: 12px;
	line-height: 30px;
	height: 30px;
	color: red;
	text-align: center;
	text-shadow: 0 0 5px #ccc;
}
.login-box .login-tips.on{
	animation: shake 0.2s;
}
/*.login-box .item .login-info{*/
	/*position: absolute;*/
	/*top: 0px;*/
	/*right: 100%;*/
	/*width: 180px;*/
	/*padding: 0px 0 0 10px;*/
	/*height: 38px;*/
	/*line-height: 38px;*/
	/*color: #fff;*/
	/*border-radius: 3px;*/
	/*background-color: rgba(0,0,0,.5);	*/
/*}*/
/*.login-box .item .login-info:after{*/
	/*content: "";*/
	/*position: absolute;*/
	/*right: -12px;*/
	/*top:13px;*/
	/*width: 0;*/
	/*height: 0;*/
	/*border-width: 6px;*/
	/*border-style:solid;*/
	/*border-color: transparent;*/
	/*border-left-color: rgba(0,0,0,.5); */
/*}*/
.login-box .item.error{
	border-color:red;
}
.login-box .item.success{
	border-color:#84bee3;
}
.login-box .item label{
	position: absolute;
	left: 0;
	top: 0;
	/*float: left;*/
	width: 38px;
	height: 38px;
	background: url(../images/login-sprites.png) no-repeat;
	border-right: 1px solid #ccc;
	cursor: pointer;
}
.login-box .username.error label{
	background-position: 0 -96px;
}
.login-box .username.success label{
	background-position: 0 -48px;
}
.login-box .username label{
	background-position: 0 0;
}
.login-box .userpwd label{
	background-position: -48px 0;
}
.login-box .userpwd.error label{
	background-position: -48px -96px;
}
.login-box .userpwd.success label{
	background-position: -48px -48px;
}

.login-box .item input{
	position: absolute;
	left: 38px;
	top: 0;
	/*float: left;*/
	width: 215px;
	height: 38px;
	padding: 8px 10px;
	border-radius:0 3px 3px 0;
	color: #666;
	border: none;
}
.login-box .item2{
	height: 20px;
	line-height: 20px;
}
.login-box .item2 a:nth-child(1){
	color: #FF9600;
}
.login-box .item2 a:nth-child(2){
	color: #5ECFC9;
	float: right;
}
.login-box .login-btn{
	display: block;
	line-height: 35px;
	text-align: center;
	width: 100%;
	border: 0;
	height: 35px;
	background: #17b562;
	color: #fff;
	border-radius: 3px;
	margin: 10px 0;
	cursor: pointer;
}

.login-box .login-btn:hover{
	background-color:#189c57; 
}
.login-box .login-btn[disabled]{
	background-color: #ccc;
	cursor: not-allowed;
}
.login-box .login-other{
	margin: 10px 0;
	height: 20px;
}
.login-box .login-other *{
	vertical-align: middle;
}
.login-box .login-other a{
	font-size: 0;
	width: 20px;
	height: 20px;
	color: transparent;
	display: inline-block;
	background: url(../images/login-sprites.png);
	margin: 0 2px;
}
.login-box .login-other span{
	margin-right: 10px;
}
.login-box .login-other a.login-qq{
	background-position: 0px -161px;
}
.login-box .login-other a.login-wx{
	background-position: -20px -161px;
}
.login-box .login-other a.login-qq:hover{
	background-position: 0px -181px;
}
.login-box .login-other a.login-wx:hover{
	background-position: -20px -181px;
}

/*注册页面*/
#reg-form{
	width: 315px;
	height: 400px;
	border-radius: 5px;
}
#reg-form .login-form{
	border-radius: 5px;
}
#reg-form:after{
	height: 400px;
}
#reg-form .item label{
	background: none;
	text-align: center;
	line-height: 38px;
}

#reg-form .form-title{
	line-height: 45px;
	height: 45px;
}

/**动画部分*/
@keyframes shake {
	0%{
		transform: translate(-10px);
	}
	25%{
		transform: translate(10px);
	}
	50%{
		transform: translate(-10px);
	}
	75%{
		transform: translate(10px);
	}
	100%{
		transform: translate(0px);
	}
}


/***媒体查询***/
@media (max-width: 768px) {
	.login-box{
		width: 315px;
		height: 360px;
		transform: translate(-50%,-50%) scale(1.05);
	}
	.login-form{
		width: 315px;
		padding: 20px 0;
		border-radius: 5px;
		background-color: #fff;
	}
	.login-form-left{
		display: none;
	}
}

@media (max-width: 315px) {
	.login-box{
		width: 100%;
		transform: translate(-50%,-50%) scale(1);
	}
	.login-form{
		width: 100%;
	}
	.login-form-left{
		display: none;
	}	
}