* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    height: 100%;
    font-size: 16px;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    /*background-color: #f8f8f8;*/
    /*background: linear-gradient(200deg, #e3c5eb, #a9c1ed) fixed;*/
    /*background: linear-gradient(200deg, #e3c5eb, #1c84c6);*/
    overflow: hidden;
}

body .demo-class .layui-layer-btn0{
    border-color: #E6E3E6;
    background-color: #FFF;
    color: #2d2c2c;
}
body .demo-class .layui-layer-btn1{
    border-color: #4898d5;
    background-color: #2e8ded;
    color: #fff;
}
.login-container {
    display: flex;
    align-items: center;
    width: 1080px;
    height: 540px;
    padding-right: 8%;
    padding-left: 100px;
    border-radius: 10px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
}

.left-box {
    flex: 1;
    letter-spacing: 5px;
}

.left-box {
    margin-top: -10.5rem;
    color: white;
}
.left-box .tips {
    margin-bottom: 20px;
}

.left-box .tips h3 {
    font-weight: 600;
    font-size: 1.7rem;
}

.left-box .tips .line {
    height: 2px;
    width: 30px;
    margin-top: 20px;
    background-color: #fff;
}

.left-box .title h2 {
    font-weight: 600;
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.left-box .title h4 {
    font-weight: 300;
    font-size: 1.3rem;
}

.right-box {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    width: 20.5rem;
    border-radius: 0.3rem;
    background-color: rgba(131, 163, 207, 0);
}

.right-box .title {
    display: flex;
    justify-content: center;
    padding-top: 1rem;
    margin-bottom: 1rem;
}

.right-box .title h3 {
    /*color: #393D49;*/
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.2rem;
}

/* 登录表单 */
.login-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    position: relative;
    z-index: 2;
    height: 85%;
    padding: 0 1.25rem 0.7rem 1.25rem;
    /* background-color: skyblue; */
    text-align: center;
}

.login-form div > i.fa {
    position: absolute;
    left: 0.5rem;
    font-size: 0.5rem;
    color: #767676;
}

.login-form input {
    width: 100%;
    height: 2.4rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    outline: none;
    border: none;
    border-radius: 0.3rem;
    font-size: 1rem;
}

/* input focus获取改变div颜色 */
.login-form div:not(:last-of-type):focus-within {
    border: 0.0625rem solid #1c84c6;
}

.login-form > div:not(:last-of-type) {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    /*padding-left: 0.3125rem;*/
    border: 0.0625rem solid #ccc;
    margin-bottom: 1.2rem;
    background-color: #fff;
    border-radius: 0.3rem;
    transition: all .5s;
}

.login-form .captcha {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-form .captcha input {
    width: 60%;
}

.login-form .captcha a {
    flex: 1;
    height: 2.4rem;
}

.login-form .captcha a img {
    width: 100%;
    height: 100%;
}

.login-form .remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    /*height: 2.4rem;*/
}

.login-form .remember-me input {
    width: 1.25rem;
    height: 0.8rem;
}

.login-form .remember-me label {
    margin-left: 0.125rem;
    color: #737373;
    font-size: 0.9rem;
    font-weight: 200;
    line-height: 1;
    /* 禁止copy */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.login-form .submit {
    /* width: 4rem; */
    width: 100%;
    /*margin: 2rem 0;*/
    padding: 0.4rem 0;
    margin-bottom: 1rem;
    background: #493E7E ;
    border: 0.0625rem solid #493E7E ;
    border-radius: 0.3rem;
    color: #fff;
    font-size: 1rem;
    outline: none;
    cursor: pointer;
    transition: .5s;
    letter-spacing: 0.2rem;
}

.login-form .submit:hover {
    background-color: #493E7E ;
}

.login-form  .protocol {
    margin-bottom: 0.4rem;
    font-size: 0.75rem;
    /*color: #767676;*/
    color: #ffffff;
}

.login-form .protocol a {
    color: #23385a;
    text-decoration: none;
}



/* 错误信息 */
.login-form label.error {
    position: absolute;
    top: 2.5rem;
    left: 0.625rem;
    font-size: 0.8125rem !important;
    color: #ed5565 !important;
    font-weight: 200 !important;
}

.login-form label.error .fa {
    color: #ed5565 !important;
}

/** 遮罩层 **/
.loaderbox {
    display: inline-block;
    min-width: 7.8125rem;
    padding: 0.625rem;
    margin: 0 auto;
    color: #000 !important;
    font-size: 0.8125rem;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    border: 0.0625rem solid #ddd;
    background-color: #eee;
    -webkit-border-radius: 0.125rem;
    -moz-border-radius: 0.125rem;
    -ms-border-radius: 0.125rem;
    -o-border-radius: 0.125rem;
    border-radius: 0.125rem;
    -webkit-box-shadow: 0 0.0625rem 0.5rem rgba(0, 0, 0, 0.1);
    -moz-box-shadow: 0 0.0625rem 0.5rem rgba(0, 0, 0, 0.1);
    box-shadow: 0 0.0625rem 0.5rem rgba(0, 0, 0, 0.1);
}

.loaderbox .loading-activity {
    float: left;
    width: 1.125rem;
    height: 1.125rem;
    border: solid 0.125rem transparent;
    border-top-color: #000;
    border-left-color: #000;
    border-radius: 0.625rem;
    -webkit-animation: pace-spinner 400ms linear infinite;
    -moz-animation: pace-spinner 400ms linear infinite;
    -ms-animation: pace-spinner 400ms linear infinite;
    -o-animation: pace-spinner 400ms linear infinite;
    animation: pace-spinner 400ms linear infinite;
}

@media (max-width: 47.9375rem) {
    .loading-activity {
        width: 1.125rem;
        height: 1.125rem;
    }
}


/* 背景方块 */
.bg-squares {
    list-style: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bg-squares li {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(255, 255, 255, 0.15);
    position: absolute;
    bottom: -10rem;
    /* 执行动画：动画名 时长 线性 无限次播放 */
    animation: square 20s linear infinite;
}

/* 为每一个方块设置不同的位置、大小、动画延迟时间、动画时长、背景色 */
.bg-squares li:nth-child(1) {
    left: 10%;
}

.bg-squares li:nth-child(2) {
    left: 20%;
    width: 5rem;
    height: 5rem;
    /* 动画延迟时间 */
    animation-delay: 2s;
    /* 动画时长 */
    animation-duration: 17s;
}

.bg-squares li:nth-child(3) {
    left: 25%;
    animation-delay: 4s;
}

.bg-squares li:nth-child(4) {
    left: 40%;
    width: 3.75rem;
    height: 3.75rem;
    background-color: rgba(255, 255, 255, 0.25);
    animation-duration: 22s;
}

.bg-squares li:nth-child(5) {
    left: 70%;
}

.bg-squares li:nth-child(6) {
    left: 80%;
    width: 7.5rem;
    height: 7.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    animation-delay: 3s;
}

.bg-squares li:nth-child(7) {
    left: 32%;
    width: 10rem;
    height: 10rem;
    animation-delay: 7s;
}

.bg-squares li:nth-child(8) {
    left: 55%;
    width: 1.25rem;
    height: 1.25rem;
    animation-delay: 15s;
    animation-duration: 40s;
}

.bg-squares li:nth-child(9) {
    left: 25%;
    width: 0.625rem;
    height: 0.625rem;
    background-color: rgba(255, 255, 255, 0.3);
    animation-delay: 2s;
    animation-duration: 40s;
}

.bg-squares li:nth-child(10) {
    left: 90%;
    width: 10rem;
    height: 10rem;
    animation-delay: 11s;
}

/* 定义动画 */
@keyframes square {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-120vh) rotate(600deg);
    }
}

