@media screen and (device-aspect-ratio) {
    #head {
        width: 100%;
        height: 15%;
        min-height: 100px;
    }

    #content {
        width: 100%;
        height: 70%;
        min-height: 450px;
    }

    #footer {
        width: 100%;
        height: 15%;
        min-height: 100px;
    }

}


.layui-fluid {
    padding: 0;
    margin: 0;
}

html, body {
    width: 100%;
    height: 100%;
    min-height: 660px;
}


/*头部log*/
.log-img {
    height: 40px;
}

/*头部*/
.layui-head {
    position: absolute;
    margin-left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.layui-footer {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

}


#content {
    background-image: url("../../img/login_background.jpg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
}


/*form表单*/
.layui-form {
    height: 450px;
    width: 370px;
    border-radius: 5px;
    background-color: white;
    border: 0;
    /*border: 1px solid #5B92DC;*/
    text-align: center;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    float: right;
    right: 8%;
}


/*控制form元素的行间距*/
.layui-form-item {
    width: 80%;
    margin: 0 auto;
    /*height: 15%;*/
    height: 36px;
    line-height: 36px;
}

.item_height {
    padding-top: 30px;
}

#item5 {
    padding-top: 50px;
    /*padding-bottom: 30px;*/
}


/*文本框行*/
.layui-form-item .layui-input-inline {
    width: 100%;
    margin: 0 auto;
}


/*验证码输入框*/
.input-left {
    width: 50%;
    height: 36px;
    line-height: 36px;
    float: left;
}

/*验证码图片框*/
.input-right {
    width: 45%;
    height: 36px;
    line-height: 36px;
    float: right;
}

/*验证码和验证码输入框 所在的行*/
.layui-form-item .layui-input-inline .layui-inline {
    margin: 0;
}

/*验证码*/
#canvas {
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #ddd;
    cursor: pointer;
}

/*提交按钮*/
.layui-btn {
    width: 180px;
    font-size: 18px;
    font-weight: bolder;
    background-color: #4889e6;
}

