/* ========== 登录页 — 政务科技风格 ========== */

html, body.signin {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

body.signin {
    background: linear-gradient(135deg, #0a1628 0%, #0d2137 40%, #133a4a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* 背景装饰网格 */
body.signin::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image:
        linear-gradient(rgba(26, 179, 148, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 179, 148, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* 背景光晕 */
body.signin::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 179, 148, 0.08) 0%, transparent 70%);
    top: -200px;
    right: -100px;
    pointer-events: none;
}

/* 主容器 */
.signinpanel {
    width: 960px;
    max-width: 95vw;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 1;
}

.signinpanel .row {
    display: flex;
    width: 100%;
    margin: 0;
}

/* 左侧品牌区 */
.signinpanel .col-sm-7 {
    width: 55%;
    background: linear-gradient(160deg, #0d2137 0%, #133a4a 50%, #1a4a5a 100%);
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.signinpanel .col-sm-7::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(26, 179, 148, 0.12) 0%, transparent 70%);
    bottom: -80px;
    left: -60px;
    pointer-events: none;
}

.signinpanel .logopanel {
    margin-bottom: 30px;
}

.signinpanel .logopanel h1 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.5;
}

.signinpanel .signin-info h4 {
    font-size: 26px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    line-height: 1.4;
}

.signinpanel .signin-info h4 strong {
    font-weight: 600;
    color: #1ab394;
    display: block;
    font-size: 30px;
    margin-top: 6px;
    letter-spacing: 1px;
}

.signinpanel .signin-info .m-b {
    height: 0;
    margin: 0;
}

.signinpanel .signin-info > .m-b + h4 {
    margin-top: 0;
}

.signinpanel .signin-info ul {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.signinpanel .signin-info ul li {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

.signinpanel .signin-info ul li i {
    margin-right: 5px;
    color: #1ab394;
    font-size: 10px;
}

.signinpanel .signin-info > strong {
    display: block;
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.signinpanel .signin-info > strong a {
    color: #1ab394;
    text-decoration: none;
}

.signinpanel .signin-info > strong a:hover {
    text-decoration: underline;
}

/* 右侧登录表单区 */
.signinpanel .col-sm-5 {
    width: 45%;
    background: #fff;
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.signinpanel form h4.no-margins {
    font-size: 22px;
    font-weight: 600;
    color: #1a2332;
    margin: 0 0 4px;
}

.signinpanel form .m-t-md {
    font-size: 13px;
    color: #8a9bb0;
    margin: 0 0 30px;
    height: auto;
}

/* 输入框 */
.signinpanel .form-control {
    display: block;
    width: 100%;
    margin-top: 0;
    margin-bottom: 18px;
    padding: 12px 14px 12px 42px !important;
    height: 44px !important;
    border: 1px solid #dde4ec !important;
    border-radius: 6px !important;
    font-size: 14px;
    color: #1a2332;
    background: #f8f9fb !important;
    transition: all 0.25s ease;
}

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

.signinpanel .uname {
    background: #f8f9fb url(../img/user.png) no-repeat 14px center !important;
    background-size: 16px !important;
}

.signinpanel .pword {
    background: #f8f9fb url(../img/locked.png) no-repeat 14px center !important;
    background-size: 16px !important;
}

.signinpanel .code {
    background: #f8f9fb !important;
    margin: 0 0 15px 0;
}

/* 验证码区域 */
.signinpanel .row.m-t {
    margin-top: 0;
    margin-bottom: 18px;
}

.signinpanel .row.m-t .col-xs-6 {
    padding: 0 7px;
}

.signinpanel .row.m-t .col-xs-6:first-child {
    padding-left: 0;
}

.signinpanel .row.m-t .col-xs-6:last-child {
    padding-right: 0;
}

.signinpanel .row.m-t .imgcode {
    height: 44px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid #dde4ec;
    transition: border-color 0.25s;
}

.signinpanel .row.m-t .imgcode:hover {
    border-color: #1ab394;
}

/* 记住我 */
.checkbox-custom {
    margin: 0 0 20px !important;
    padding: 0 0 0 22px !important;
}

.checkbox-custom label {
    font-size: 13px;
    color: #8a9bb0;
}

.checkbox-custom label:before {
    border-radius: 4px !important;
    border-color: #dde4ec !important;
}

.checkbox-custom input[type="checkbox"]:checked + label:after {
    color: #1ab394 !important;
}

/* 登录按钮 */
.signinpanel .btn-success {
    margin-top: 0;
    height: 46px;
    background: linear-gradient(135deg, #1ab394, #15a085) !important;
    border: none !important;
    border-radius: 6px !important;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 179, 148, 0.3);
}

.signinpanel .btn-success:hover {
    background: linear-gradient(135deg, #15a085, #11967a) !important;
    box-shadow: 0 6px 20px rgba(26, 179, 148, 0.4);
    transform: translateY(-1px);
}

.signinpanel .btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(26, 179, 148, 0.3);
}

/* 版权 */
.signup-footer {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 12px;
    border: none;
    margin: 0;
    padding: 0;
}

/* 表单校验 */
label.error {
    position: inherit;
    color: #ed5565;
    font-size: 12px;
    margin-top: -12px;
    margin-bottom: 8px;
    display: block;
}

/* 响应式 */
@media screen and (max-width: 768px) {
    .signinpanel {
        width: 95vw;
        flex-direction: column;
    }

    .signinpanel .row {
        flex-direction: column;
    }

    .signinpanel .col-sm-7 {
        width: 100%;
        padding: 30px 30px 20px;
    }

    .signinpanel .col-sm-5 {
        width: 100%;
        padding: 30px;
    }

    .signinpanel .signin-info ul {
        display: none;
    }

    .signup-footer {
        position: relative;
        bottom: auto;
        padding: 15px 0 5px;
        color: rgba(255, 255, 255, 0.3);
    }
}

@media screen and (max-width: 480px) {
    .signinpanel .col-sm-7 {
        padding: 25px 20px 15px;
    }

    .signinpanel .col-sm-5 {
        padding: 20px;
    }

    .signinpanel .signin-info h4 {
        font-size: 20px;
    }

    .signinpanel .signin-info h4 strong {
        font-size: 24px;
    }
}

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

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

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

/* 全局表单覆盖 */
.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:focus {
    border-color: #1ab394 !important;
}
