html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body.signin {
    height: 100%;
    overflow: hidden;
    background: #eef2f5;
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

/* 登录页整体：纯色背景，无滚动条 */
.login-shell {
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    background: #eef2f5;
}

/* 左侧品牌区 */
.login-brand {
    flex: 0 0 46%;
    max-width: 46%;
    background: #2f4050;
    color: #fff;
    padding: 5vh 6vw;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.brand-badge {
    width: 58px;
    height: 58px;
    line-height: 58px;
    text-align: center;
    border-radius: 14px;
    background: #1ab394;
    color: #fff;
    font-size: 28px;
    margin-bottom: 22px;
    box-shadow: 0 8px 22px rgba(26, 179, 148, .28);
}

.login-brand h1 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 1px;
    margin: 0 0 12px;
    color: #fff;
}

.login-brand .brand-sub {
    color: #9fb0bd;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 34px;
}

.brand-points {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.brand-points li {
    color: #c6d1d9;
    font-size: 14px;
    line-height: 2.3;
}

.brand-points li i {
    color: #1ab394;
    margin-right: 10px;
}

.brand-footer {
    margin-top: 44px;
    color: #7f909d;
    font-size: 12px;
    letter-spacing: 4px;
}

/* 右侧登录区 */
.login-panel {
    flex: 1 1 54%;
    background: #eef2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.login-card {
    width: 420px;
    max-width: 100%;
    background: #fff;
    border: 1px solid #e3e9ee;
    border-radius: 8px;
    padding: 28px 34px 20px;
    box-shadow: 0 12px 32px rgba(47, 64, 80, .08);
    box-sizing: border-box;
}

.login-card-head {
    margin-bottom: 20px;
    text-align: center;
}

.login-card-head h4 {
    margin: 0 0 7px;
    color: #2f4050;
    font-size: 21px;
    font-weight: 600;
}

.login-card-head p {
    margin: 0;
    color: #98a4ae;
    font-size: 12px;
}

.login-field {
    margin-bottom: 14px;
}

.login-label {
    display: block;
    margin-bottom: 6px;
    color: #5d6d7e;
    font-size: 13px;
    font-weight: 500;
}

.field-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: #aab4bd;
    font-size: 14px;
    z-index: 2;
}

.login-card .form-control {
    width: 100%;
    height: 40px !important;
    line-height: 40px;
    padding: 6px 12px 6px 38px !important;
    border: 1px solid #dfe5ea;
    border-radius: 4px !important;
    background: #fbfcfd;
    color: #2f4050;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .2s ease, background .2s ease;
}

.login-card .form-control:focus {
    border-color: #1ab394 !important;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26, 179, 148, .10);
}

.login-card .form-control::placeholder {
    color: #b7c0c8;
}

.captcha-row {
    display: flex;
    align-items: center;
}

.captcha-input {
    flex: 1 1 auto;
    min-width: 0;
}

.captcha-img {
    flex: 0 0 120px;
    height: 40px;
    margin-left: 10px;
    border: 1px solid #dfe5ea;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.login-btn {
    height: 42px;
    margin-top: 6px;
    border: none;
    border-radius: 4px;
    background: #1ab394;
    color: #fff;
    font-size: 15px;
    letter-spacing: 2px;
    box-shadow: 0 6px 14px rgba(26, 179, 148, .22);
    transition: background .2s ease, box-shadow .2s ease;
}

.login-btn:hover,
.login-btn:focus {
    background: #169c81;
    color: #fff;
    box-shadow: 0 8px 18px rgba(26, 179, 148, .30);
}

.login-btn i {
    margin-right: 4px;
}

.login-card-footer {
    margin-top: 18px;
    padding-top: 13px;
    border-top: 1px solid #eef2f5;
    text-align: center;
    color: #aab4bd;
    font-size: 12px;
}

/* 兼容旧登录表单标记 */
.signinpanel .signin-info ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.form-control,
.form-control:focus,
.has-error .form-control:focus,
.has-success .form-control:focus,
.has-warning .form-control:focus,
.navbar-collapse,
.navbar-form,
.navbar-form-custom .form-control:focus,
.navbar-form-custom .form-control:hover,
.open .btn.dropdown-toggle,
.panel,
.popover,
.progress,
.progress-bar {
    box-shadow: none;
}

/* 登录界面 check 样式 */
.checkbox-custom {
    position: relative;
    padding: 0 15px 0 25px;
    margin-bottom: 7px;
    display: inline-block;
}

.checkbox-custom input[type="checkbox"] {
    opacity: 0;
    position: absolute;
    cursor: pointer;
    z-index: 2;
    margin: -6px 0 0 0;
    top: 50%;
    left: 3px;
}

.checkbox-custom label:before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -9px;
    width: 18px;
    height: 17px;
    display: inline-block;
    border-radius: 2px;
    border: 1px solid #bbb;
    background: #fff;
}

.checkbox-custom input[type="checkbox"]:checked + label:after {
    position: absolute;
    display: inline-block;
    font-family: 'Glyphicons Halflings';
    content: "\e013";
    top: 42%;
    left: 3px;
    margin-top: -5px;
    font-size: 11px;
    line-height: 1;
    width: 16px;
    height: 16px;
    color: #333;
}

.checkbox-custom label {
    cursor: pointer;
    line-height: 1.2;
    font-weight: normal;
    margin-bottom: 0;
    text-align: left;
}

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

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

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

/* 矮屏适配，保证不出现滚动条 */
@media screen and (max-height: 700px) {
    .login-brand {
        padding: 3vh 4vw;
    }
    .brand-badge {
        width: 46px;
        height: 46px;
        line-height: 46px;
        font-size: 22px;
        margin-bottom: 12px;
    }
    .login-brand h1 {
        font-size: 23px;
    }
    .login-brand .brand-sub {
        margin-bottom: 18px;
    }
    .brand-points li {
        line-height: 1.9;
        font-size: 13px;
    }
    .brand-footer {
        margin-top: 20px;
    }
    .login-card {
        padding: 20px 28px 14px;
    }
    .login-card-head {
        margin-bottom: 14px;
    }
    .login-field {
        margin-bottom: 10px;
    }
    .login-card .form-control,
    .captcha-img {
        height: 36px !important;
        line-height: 36px;
    }
    .login-btn {
        height: 38px;
    }
    .login-card-footer {
        margin-top: 12px;
        padding-top: 9px;
    }
}

@media screen and (max-width: 992px) {
    .login-brand {
        flex-basis: 40%;
        max-width: 40%;
        padding: 4vh 4vw;
    }
    .login-brand h1 {
        font-size: 23px;
    }
    .brand-points li {
        font-size: 12px;
        line-height: 2;
    }
}

@media screen and (max-width: 768px) {
    .login-brand {
        display: none;
    }
    .login-panel {
        flex-basis: 100%;
        padding: 14px;
    }
    .login-card {
        width: 100%;
        max-width: 420px;
        padding: 24px 22px 16px;
    }
}

@media screen and (max-height: 520px) {
    .login-card-head p,
    .login-card-footer {
        display: none;
    }
    .login-card-head {
        margin-bottom: 12px;
    }
}
