html,
body {
    width: 100%;
    min-width: 320px;
    height: 100%;
    margin: 0;
}

body.mhms-login-page {
    overflow: hidden;
    color: #5d6672;
    background: #dce9f5;
    font-family: "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

.mhms-login-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    min-height: 620px;
    background: url(../img/login-background.jpg) no-repeat center center;
    background-size: cover;
}

.mhms-login-visual {
    flex: 1 1 auto;
    min-width: 0;
}

.mhms-login-panel {
    position: relative;
    flex: 0 0 32.6%;
    min-width: 480px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: -1px 0 0 rgba(255, 255, 255, 0.35);
}

.mhms-login-content {
    width: calc(100% - 60px);
    max-width: 565px;
    margin: 0 auto;
    padding-top: 30px;
}

.mhms-login-content h1 {
    margin: 0 0 34px;
    color: #616b77;
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
}

.mhms-input-group {
    position: relative;
    margin-bottom: 29px;
}

.mhms-input-group > i {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 12px;
    width: 18px;
    color: #c8d0db;
    font-size: 17px;
    text-align: center;
    transform: translateY(-50%);
}

.mhms-input-group .form-control {
    height: 46px;
    padding: 10px 15px 10px 39px;
    color: #4e5661;
    font-size: 17px;
    border: 1px solid #d8dee7;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: none;
}

.mhms-input-group .form-control:focus {
    border-color: #92bdf0;
    box-shadow: 0 0 0 2px rgba(33, 150, 243, 0.08);
}

.mhms-input-group .form-control::placeholder {
    color: #bec6d1;
}

.mhms-captcha-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
    margin-bottom: 27px;
}

.mhms-captcha-input {
    flex: 1 1 auto;
    margin-bottom: 0;
}

.mhms-captcha-image {
    display: block;
    flex: 0 0 34%;
    height: 46px;
    overflow: hidden;
    border: 1px solid #d8dee7;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.88);
}

.mhms-captcha-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mhms-remember {
    position: relative;
    display: block;
    margin: 0 0 32px;
    padding-left: 30px;
    color: #596471;
    font-size: 16px;
}

.mhms-remember-no-captcha {
    margin-top: 2px;
}

.mhms-remember input[type="checkbox"] {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 1px;
    width: 18px;
    height: 18px;
    margin: -9px 0 0;
    cursor: pointer;
    opacity: 0;
}

.mhms-remember label {
    margin: 0;
    cursor: pointer;
    font-weight: 400;
    line-height: 20px;
}

.mhms-remember label::before {
    position: absolute;
    top: 1px;
    left: 0;
    width: 18px;
    height: 18px;
    content: "";
    border: 1px solid #d5dce5;
    border-radius: 2px;
    background: #fff;
}

.mhms-remember input[type="checkbox"]:checked + label::after {
    position: absolute;
    top: 1px;
    left: 4px;
    color: #2196f3;
    font-family: FontAwesome;
    font-size: 12px;
    line-height: 18px;
    content: "\f00c";
}

.mhms-login-button {
    height: 45px;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 17px;
    letter-spacing: 6px;
    border: 0;
    border-radius: 5px;
    background: #2196f3;
}

.mhms-login-button:hover,
.mhms-login-button:focus,
.mhms-login-button:active {
    color: #fff;
    background: #1689e5;
}

.mhms-login-content footer {
    margin-top: 43px;
    color: #6a7280;
    font-family: Consolas, "Courier New", monospace;
    font-size: 16px;
    letter-spacing: 0.2px;
    text-align: center;
}

body .layer-ext-moon-msg[type="dialog"] {
    min-width: 100px !important;
}

body .layer-ext-moon-msg {
    color: #fff;
    border: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

body .layer-ext-moon-msg .layui-layer-content {
    padding: 12px 25px;
    text-align: center;
}

@media screen and (max-width: 1100px) {
    .mhms-login-panel {
        flex-basis: 42%;
        min-width: 430px;
    }
}

@media screen and (max-width: 768px) {
    body.mhms-login-page {
        overflow-y: auto;
    }

    .mhms-login-layout {
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 24px;
    }

    .mhms-login-visual {
        display: none;
    }

    .mhms-login-panel {
        flex: 0 1 460px;
        min-width: 0;
        border-radius: 8px;
        box-shadow: 0 12px 35px rgba(47, 75, 104, 0.18);
    }

    .mhms-login-content {
        width: auto;
        padding: 32px 25px 35px;
    }

    .mhms-login-content h1 {
        margin-bottom: 30px;
        font-size: 22px;
    }
}

@media screen and (max-width: 480px) {
    .mhms-login-layout {
        padding: 12px;
    }

    .mhms-login-content {
        padding: 27px 18px 30px;
    }

    .mhms-captcha-row {
        gap: 10px;
    }

    .mhms-login-content footer {
        margin-top: 34px;
        font-size: 12px;
    }
}
