:root {
    --color: #e4393c
}

#login {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

#login header {
    /*height: 80px;*/
    padding: 12px;
    display: flex;
    align-items: center;
}

#login header > div {
    display: inline-block;
}

.logoBox, .welcome {
    position: relative;
    padding: 0 12px;
    font-size: 20px;
}

.logoBox img {
    max-height: 54px;
}

.welcome {
    font-size: 26px;
}

.logoBox::after {
    position: absolute;
    right: 0;
    top: 5%;
    content: "";
    display: block;
    height: 90%;
    width: 1px;
    background: #ccc;
}

section {
    width: 100%;
    flex: 1;
    background: url(../images/loginbg.png) no-repeat center;
    position: relative;
}

footer {
    height: 123px;
}

.form {
    border: 1px solid #ccc;
    border-radius: 5px;
    display: inline-block;
    padding: 32px;
    padding-top: 13px;
    position: absolute;
    z-index: 99;
    right: 10%;
    top: 50%;
    transform: translate(0%, -50%);
    background: #fff;
}

.form h5 {
    margin: 1px;
}

.form:before {
    content: '';
    position: absolute;
    height: 1px;
    background: #ccc;
    width: 100%;
    left: 0;
    top: 56px;
}

.form .name, .form .password {
    overflow: hidden;
    margin-top: 22px;
    position: relative;
}

.form .name {
    margin-top: 42px;
}

.form .name span, .form .password span {
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    border-right: 0;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    box-sizing: border-box;
    height: 38px;
    width: 38px;
    text-align: center;
    line-height: 36px;
    padding: 0 6px;
    float: left;
    font-weight: bold;
    color: #222;
    background: #f8f8f8;
}

.form .name input, .form .password input {
    outline: none;
    width: 260px;
    border: 1px solid #ccc;
    border-radius: 4px;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    box-sizing: border-box;
    height: 38px;
    float: left;
    text-indent: 8px;
    padding-right: 30px;
}

.form .name em, .form .password em {
    position: absolute;
    display: block;
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    right: 8px;
    top: 8px;
    cursor: pointer;
    z-index: 9;
}

.form .name em:hover, .form .password em:hover {
    color: var(--color);
}

.form .submit {
    background: var(--color);
    color: #fff;
    line-height: 34px;
    text-align: center;
    border-radius: 4px;
    margin-top: 48px;
    cursor: pointer;
}
