@import url("fontawesome-all.min.css");
@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,300italic,400italic");
@import url("fonticon.css");

*{
    /* 初始化 */
    margin: 0;
    padding: 0;
}
form{
    text-align: center;
    width: 100%;
}
input.left{
    width:100%;
}
input.right{
    width:auto;
    margin-left: 1em;
    caret-color: transparent;
}
label {
    display: none;
    /* color: #646464;
    display: block;
    font-size: 0.9em;
    font-weight: 300;
    margin: 0 0 1em 0; */
}
.row{
    width:70%;
    display:flex;
    align-items: center;
    margin: auto;
}

.icon {
    text-decoration: none;
    border-bottom: none;
    position: relative;
}

    .icon:before {
        -moz-osx-font-smoothing: grayscale;
        -webkit-font-smoothing: antialiased;
        display: inline-block;
        font-style: normal;
        font-variant: normal;
        text-rendering: auto;
        line-height: 1;
        text-transform: none !important;
        font-family: 'Font Awesome 5 Free';
        font-weight: 400;
        color:white;
    }

    .icon > .label {
        display: none;
        
    }

    .icon:before {
        line-height: inherit;
    }

    .icon.solid:before {
        font-weight: 900;
    }

    .icon.brands:before {
        font-family: 'Font Awesome 5 Brands';
    }

    .icon.major {
        background: #666;
        border-radius: 100%;
        color: #ffffff;
        cursor: default;
        display: inline-block;
        height: 5.5em;
        line-height: 5.5em;
        margin: 0 0 2em 0;
        width: 5.5em;
    }

        .icon.major:before {
            font-size: 2.5em;
        }

        .icon.major.accent1 {
            background: #666;
            color: #ffffff;
        }

        .icon.major.accent2 {
            background: #e89980;
            color: #ffffff;
        }

        .icon.major.accent3 {
            background: #7fcdb8;
            color: #ffffff;
        }

        .icon.major.accent4 {
            background: #90b0ba;
            color: #ffffff;
        }

        .icon.major.accent5 {
            background: #e5cb95;
            color: #ffffff;
        }
#register2,#login2,#back2{
    display:none;
}

/* submit button */
#verification{
    margin: initial;
    width: 30%;
    height: 2.6em;
    margin-left: 4%;
    border-radius: 5px;
    background-color: #666;
    color:white;
}

input[type="submit"],
	input[type="reset"],
	input[type="button"],
	.button {
		-moz-appearance: none;
		-webkit-appearance: none;
		-ms-appearance: none;
		appearance: none;
		-moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
		-webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
		-ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
		transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
		background-color: #666;
		border-radius: 6px;
		border: 0;
		color: #ffffff;
		cursor: pointer;
		display: inline-block;
		font-weight: 400;
		height: 3em;
		line-height: 3em;
		padding: 0 2em;
		text-align: center;
		text-decoration: none;
		white-space: nowrap;
	}

    input[type="code"],.button{
        -moz-appearance: none;
		-webkit-appearance: none;
		-ms-appearance: none;
		appearance: none;
		-moz-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
		-webkit-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
		-ms-transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
		transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
		background-color: #666;
		border-radius: 6px;
		border: 0;
		color: #ffffff;
		cursor: pointer;
		display: inline-block;
		font-weight: 400;
		height: 3em;
		line-height: 3em;
		padding: 0;
		text-align: left;
		text-decoration: none;
		white-space: nowrap;
        width:40%;
	}

		input[type="submit"]:hover,
		input[type="reset"]:hover,
		input[type="button"]:hover,input[type="code"]:hover,
		.button:hover {
			background-color: #737373;
		}

		input[type="submit"]:active,
		input[type="reset"]:active,
		input[type="button"]:active,input[type="code"]:active,
		.button:active {
			background-color: #595959;
		}


        input[type="submit"].icon:before,
        input[type="reset"].icon:before,
        input[type="button"].icon:before,
        input[type="code"].icon:before,
        .button.icon:before {
            margin-right: 0.5em;
        }

		

body{
    /* 100%窗口高度 */
    height: 100vh;
    /* 弹性布局 水平+垂直居中 */
    display: flex;
    justify-content: center;
    align-items: center;
    /* 磨砂背景 */
    background-image: url(../../images/new_banner.jpg);
    background-attachment: fixed;
    background-size: cover;
}

body::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 0;
}

body > * {
	position: relative;
	z-index: 1;
}

.container{
    background-color: #fff;
    width: 650px;
    height: 415px;
    border-radius: 5px;
    /* 阴影 */
    box-shadow: 5px 5px 5px rgba(0,0,0,0.1);
    /* 相对定位 */
    position: relative;
}
    
.form-box{
    /* 绝对定位 */
    position: absolute;
    top: -10%;
    left: 5%;
    background-color: #4a4a4a;
    width: 320px;
    height: 500px;
    border-radius: 5px;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    /* 动画过渡 加速后减速 */
    transition: 0.5s ease-in-out;
}
.register-box,.login-box{
    /* 弹性布局 垂直排列 */
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.hidden{
    display: none;
    transition: 0.5s;
}
h1{
    text-align: center;
    margin-bottom: 25px;
    /* 大写 */
    text-transform: uppercase;
    color: #fff;
    /* 字间距 */
    letter-spacing: 5px;
}
#tag{
    margin-left: 13em;
    color: white;
    font-size: 8px;
    text-align: left;
}
input{
    background-color: #7c7c7c4d;
    color: inherit;
    display: inline-block;
    outline: 0;
	text-decoration: none;
    width: 70%;
    color: #fff;
    border: none;
    padding: 10px 0;
    text-indent: 10px;
    margin: 8px 0;
    font-size: 14px;
    letter-spacing: 2px;
}
input::placeholder{
    color: #fff;
}
input:focus{
    color: #fff;
    outline: none;
    border-left: 4px solid #fff;
    transition: 0s;
}
input.right:focus{
    border-left: none;
}
input:focus::placeholder{
    opacity: 0;
}
.form-box button{
    width: 70%;
    margin-top: 35px;
    background-color: #f6f6f6;
    outline: none;
    border-radius: 8px;
    padding: 13px;
    color: #666;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
}
.form-box button:hover{
    background-color: #666;
    color: #f6f6f6;
    transition: background-color 0.5s ease;
}
.login-box button{
    width: 70%;
    margin-top: 35px;
    background-color: #f6f6f6;
    outline: none;
    border-radius: 8px;
    padding: 13px;
    color: #666;
    letter-spacing: 2px;
    border: none;
    cursor: pointer;
}
.login-box button:hover{
    background-color: #666;
    color: #f6f6f6;
    transition: background-color 0.5s ease;
}
.con-box{
    width: 50%;
    /* 弹性布局 垂直排列 居中 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* 绝对定位 居中 */
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}
.con-box.left{
    left: -2%;
}
.con-box.right{
    right: -2%;
}
.con-box h2{
    color: #646464;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: 3px;
    text-align: center;
    margin-bottom: 4px;
}
.con-box p{
    font-size: 12px;
    letter-spacing: 2px;
    color: #8e9aaf;
    text-align: left;
    margin-right: 15%;
    margin-left: 15%;

}
.con-box span{
    color: #e89980;
}
.con-box img{
    width: 150px;
    height: 150px;
    opacity: 0.9;
    margin: 40px 0;
}
.con-box button{
    margin-top: 3%;
    background-color: #fff;
    color: #666;
    border: 1px solid #666;
    padding: 6px 10px;
    border-radius: 5px;
    letter-spacing: 1px;
    outline: none;
    cursor: pointer;
}
.con-box button:hover{
    background-color: #666;
    color: #fff;
}



@media screen and (max-width: 800px) {
    #register2,#login2,#back2{
        display:block;
    }
    #register,#login{
        display:none;
    }
    #back{
        display: none;
    }
    #back2{
        margin: 1em 80% 0 1em;
        /* 返回键 */
    }
    .icon{
        font-size: 1em;
    }
    input[type="code"],.button{
        text-align: center;
    }
    body {
        background-image: none;
        background-color: #4a4a4a;
    }
    .con-box{
        background-color: #4a4a4a;
    }
    .con-box p,h2{display:none;}
    .container{
        background-color: #4a4a4a;    
        height: 100vh;
        width: 100vw;
    } 
    .login-box{
        padding-top:10%;

    }
    
    .form-box{
        top: auto;
        left:0;
        background-color: #4a4a4a;
        width: 100vw;
        height: 60vh;
        border-radius: 5px;
        box-shadow: none;
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 2;
        /* 动画过渡 加速后减速 */
        transition: 0.4s ease;
        
    }
    .form-box p{
        font-size: 13px;
        letter-spacing: 2px;
        color: rgba(255, 255, 255, 0.321);
        text-align: center;
        margin-right: 15%;
        margin-left: 15%;}
    
    
}

/* 改进选择框样式 */
select.form-control {
    background-color: #7c7c7c4d;
    color: #fff;
    display: inline-block;
    outline: 0;
    text-decoration: none;
    width: 70%;
    border: none;
    padding: 10px 0;
    text-indent: 10px;
    margin: 8px 0;
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 12px;
    padding-right: 35px;
}

select.form-control:focus {
    color: #fff;
    outline: none;
    border-left: 4px solid #fff;
    transition: 0s;
    background-color: #7c7c7c6d;
}

select.form-control option {
    background-color: #4a4a4a;
    color: #fff;
    padding: 10px;
}

select.form-control option:checked {
    background-color: #666;
}

/* 选择框悬停效果 */
select.form-control:hover {
    background-color: #7c7c7c6d;
}