html, body{
	margin: 0;
	font-family: Microsoft YaHei, Arial, sans-serif
}

body:before{
	content: '';
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background-image: url(../img/bg.png);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

.login-form{
	position: fixed;
	right: 18vw;
	top: 50%;
	-webkit-transform: translateY(-50%);
	-ms-transform: translateY(-50%);
	transform: translateY(-50%);
	width: 33%;
	max-width: 330px;
	min-width: 270px;
	height: auto;
	background-color: #fff;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
	padding: 24px 36px;
	box-sizing: border-box;
}

.login-form .form-header{
	margin: 0;
	font-size: 24px;
	margin-bottom: 24px;
	color: #747474;
	text-align: left;
	animation: fadeIn 200ms cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.login-form .login-form-item{
	height: 50px;
	margin-bottom: 24px;
}

.login-form .login-form-item:after{
	content: '';
	clear: both;
	display: table;
}

.login-form .login-form-item:last-child{
	margin-bottom: 0;
}

.login-form .login-form-item.code input{
	float: left;
	width: 55%;
	margin-right: 8px;
}


.login-form .login-form-item.code img{
	background-color: #fff;
	float: right;
	width: calc(100% - 55% - 8px);
	display: block;
	height: 100%;
	text-align: center;
}

.login-form .login-form-item.button{
	border: 0;
	overflow: hidden;
}

.login-form .login-form-item.button button{
	width: 100%;
	height: 100%;
	color: #fff;
	background-color: #EC923C;
	outline: none;
	border: 0;
	cursor: pointer;
	font-size: 16px;
	border-radius: 4px;
}

.login-form .login-form-item.button button:active{
	background-color: #BF670A;
}

.login-form .login-form-item.footer .forget-password{
	float: left;
	color: #FC3A3B;
	font-size: 16px;
	text-decoration: none;
}

.login-form .login-form-item.footer .register{
	float: right;
	color: #bcbcbc;
	font-size: 16px;
	text-decoration: none;
}

.login-form .login-form-item input{
	height: 100%;
	width: 100%;
	border: 1px solid #bcbcbc;
	border-radius: 4px;
	outline: none;
	background: transparent;
	padding: 0 15px;
	font-size: 16px;
	-webkit-box-sizing: border-box;
	box-sizing: border-box;
}

.login-form .login-form-item .form-desc{
	display: inline-block;
	vertical-align: middle;
	height: 100%;
	color: #CE151D;
}

.login-form .login-form-item .form-desc.ng-inactive{
	display: none;
}

button[ng-show="showSms"]{
	cursor: pointer;
	background-color: transparent;
	border: 0;
	outline: none;
	font-size: 14px;
	color: #EC923C;
	border: 1px solid #EC923C;
	border-radius: 4px;
	display: block;
	margin-left: auto;
	margin-bottom: 12px;
	position: absolute;
	top: 28px;
	right: 36px;

}

button[ng-show="showPass"]{
	cursor: pointer;
	background-color: transparent;
	border: 0;
	outline: none;
	font-size: 14px;
	color: #EC923C;
	border: 1px solid #EC923C;
	border-radius: 4px;
	display: block;
	margin-left: auto;
	margin-bottom: 12px;
	position: absolute;
	top: 28px;
	right: 36px;
}

.login-form-item[ng-show="showSms"] {
	animation: fadeInLeft 200ms cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

.login-form-item[ng-show="showSms"] button{
	width: calc(100% - 55% - 8px);
	height: 100%;
	color: #fff;
	background-color: #EC923C;
	outline: none;
	border: 0;
	cursor: pointer;
	font-size: 12px;
	border-radius: 4px;
	/* display: block; */
	display: inline-block;
	vertical-align: middle;
}

.login-form-item[ng-show="showPass"] {
	animation: fadeInRight 200ms cubic-bezier(0.4, 0.0, 0.2, 1) forwards;
}

@keyframes fadeInLeft {
	from{
		transform: translateX(50px);
		opacity: 0;
	}
	to{
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes fadeInRight {
	from{
		transform: translateX(-50px);
		opacity: 0;
	}
	to{
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes fadeIn {
	from{
		opacity: 0;
	}
	to{
		opacity: 1;
	}
}

@media screen and (max-width: 420px){
	.login-form{
		left: 0;
		right: 0;
		width: 80%;
		margin: auto;
	}
	button[ng-show="showSms"],
	button[ng-show="showPass"] {
		position: initial;
		margin-top: -20px;
	}
}

