body {
    margin: 0;
}

.login {
    min-width: 1180px;
    width: 100vw;
    height: 100vh;
    background-color: #F6F6F6;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    overflow-x: auto;
}

.login-form-box {
    display: flex;
    align-items: stretch;
}

.logo {
    position: fixed;
    top: 10px;
    left: 40px;
}

.login-left .login-left-img {
    width: 500px;
    height: 500px;
}

.login-left .login-left-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.login-right {
    width: 500px;
    height: 500px;
    background-color: white;
    box-sizing: border-box;
}

.login-title {
    font-size: 24px;
    font-weight: 500;
    margin-top: 40px;
    margin-bottom: 50px;
}

.login-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-box-item {
    width: 346px;
    max-width: 100%;
    display: flex;
    align-items: center;
    height: 40px;
    border: 1px solid rgba(229, 229, 229, 1);
    margin-top: 16px;
    box-sizing: border-box;
}

.form-box-item .layui-input,
.form-box-item input {
    flex: 1;
    min-width: 0;
    width: auto !important;
    max-width: none;
    box-sizing: border-box;
}

.form-box-checked {
    width: 346px;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    height: 40px;
    box-sizing: border-box;
}

.submit-btn {
    width: 346px;
    max-width: 100%;
    height: 44px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: #2ad3b6;
    border: none;
    box-sizing: border-box;
}

.icon {
    width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(229, 229, 229, 1);
    flex-shrink: 0;
    box-sizing: border-box;
}

footer {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 12px;
    color: rgba(112, 112, 112, 1);
    font-weight: 400;
    padding: 0 12px;
    box-sizing: border-box;
}

/* 竖屏手机：去掉 1180 横排门槛，登录框直接居中可见 */
@media screen and (max-width: 960px) {
    .login {
        min-width: 0 !important;
        width: 100%;
        max-width: 100vw;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        padding: 28px 16px 80px;
        overflow-x: hidden;
        align-items: center;
        justify-content: center;
    }

    .login-form-box {
        flex-direction: column;
        width: 100%;
        max-width: 420px;
        align-items: stretch;
    }

    .login-left {
        display: none;
    }

    .login-right {
        width: 100% !important;
        height: auto !important;
        min-height: 0;
        margin: 0 auto;
    }

    .login-title {
        margin-top: 28px;
        margin-bottom: 28px;
        font-size: 22px;
        text-align: center;
    }

    .form-box-item,
    .form-box-checked,
    .submit-btn {
        width: calc(100% - 32px);
        max-width: 346px;
    }

    footer {
        bottom: 12px;
        left: 0;
        right: 0;
        text-align: center;
    }
}
