html {
    min-height: 100%;
}

body.signin {
    min-height: 100vh;
    margin: 0;
    color: #f6f1e9;
    background:
        linear-gradient(135deg, rgba(14, 22, 34, 0.96), rgba(26, 39, 58, 0.94) 48%, rgba(42, 33, 24, 0.9)),
        url(../img/login-background.jpg) no-repeat center center fixed;
    background-size: cover;
    position: relative;
    overflow-x: hidden;
}

body.signin:before {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 9, 15, 0.28), rgba(5, 9, 15, 0.52));
}

.signin-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.signinpanel {
    width: 560px;
    max-width: 100%;
    padding: 24px 0 0;
    color: #f7f4ef;
}

.signin-layout {
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    background: rgba(10, 17, 28, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(12px);
}

.signin-form-col {
    padding: 0;
}

.signin-form-panel {
    height: 100%;
    padding: 48px 42px 34px;
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.96), rgba(247, 241, 232, 0.92));
    color: #2d2720;
}

.form-panel-head {
    margin-bottom: 28px;
}

.panel-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(242, 104, 33, 0.1);
    color: #b65a22;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 600;
}

.form-panel-head h2 {
    margin: 16px 0 10px;
    font-size: 28px;
    line-height: 1.2;
    color: #1d2025;
    font-weight: 600;
}

.form-panel-head p {
    margin: 0;
    color: #72675c;
    line-height: 1.75;
    font-size: 14px;
}

.signinpanel form {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.field-group {
    margin-bottom: 18px;
}

.field-group.compact {
    margin-bottom: 0;
}

.field-group label,
.captcha-label {
    display: block;
    margin-bottom: 9px;
    color: #5f554a;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.signinpanel .form-control {
    display: block;
    width: 100%;
    margin-top: 0;
}

.signinpanel .uname,
.signinpanel .pword,
.signinpanel .code {
    color: #211c16;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(138, 112, 82, 0.18);
}

.signinpanel .code {
    margin: 0;
}

.captcha-row {
    margin-top: 2px;
    margin-bottom: 8px;
}

.captcha-col {
    display: flex;
    flex-direction: column;
}

.captcha-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-height: 48px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(138, 112, 82, 0.18);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}

.captcha-box:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(43, 35, 25, 0.08);
}

.imgcode {
    max-width: 100%;
    width: 100%;
    height: 48px;
    object-fit: cover;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 0 20px;
}

.register-entry {
    color: #6f6458;
    font-size: 13px;
}

.register-entry a {
    color: #c95e22;
    font-weight: 600;
}

.signin-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    margin-top: 6px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #e9622b, #ff9443);
    box-shadow: 0 12px 22px rgba(214, 90, 32, 0.2);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: transform .2s ease, box-shadow .2s ease;
}

.signin-submit:hover,
.signin-submit:focus {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 16px 26px rgba(214, 90, 32, 0.24);
}

.form-panel-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(80, 65, 47, 0.12);
    color: #7d7163;
    font-size: 13px;
}

.form-panel-foot span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.form-panel-foot i {
    color: #d56729;
}

.signup-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 4px 0;
    padding-top: 16px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.footer-note {
    color: rgba(255, 206, 147, 0.78);
}

@media screen and (max-width: 991px) {
    .signin-shell {
        padding: 20px 16px 28px;
    }

    .signin-form-panel {
        padding: 34px 28px 28px;
    }
}

@media screen and (max-width: 768px) {
    .signinpanel {
        width: 100%;
        padding-top: 0;
    }

    .signup-footer,
    .signup-footer .pull-left,
    .signup-footer .pull-right {
        display: block;
        float: none !important;
        text-align: center;
    }

    .signup-footer .pull-right {
        margin-top: 8px;
    }
}

@media screen and (max-width: 520px) {
    .signin-shell {
        padding: 12px;
    }

    .signin-form-panel {
        padding: 26px 20px 22px;
    }

    .form-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .captcha-row > div {
        width: 100%;
    }

    .captcha-col {
        margin-top: 14px;
    }
}

/*
登录界面check样式
*/
.checkbox-custom {
    position: relative;
    padding: 0 15px 0 25px;
    margin-bottom: 7px;
    display: inline-block;
}
/*
将初始的checkbox的样式改变
*/
.checkbox-custom input[type="checkbox"] {
    opacity: 0; /*将初始的checkbox隐藏起来*/
    position: absolute;
    cursor: pointer;
    z-index: 2;
    margin: -6px 0 0 0;
    top: 50%;
    left: 3px;
}
/*
设计新的checkbox，位置
*/
.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，将新的checkbox关联起来
*/
.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; /*改变了rememberme的字体*/
    margin-bottom: 0;
    text-align: left;
}

.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;
}

.form-control {
    border-radius: 16px !important;
    padding: 6px 14px !important;
    height: 48px !important;
    font-size: 15px;
}

.form-control:focus {
    border-color: #e86b2f !important;
    box-shadow: 0 0 0 4px rgba(232, 107, 47, 0.12) !important;
}

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;
}
