html {
    height: 100%;
}

/**{border-radius: 0!important;}*/

:root {
    /* 颜色变量 */
    --bg-primary: rgba(21, 40, 46, 0.75);
    --bg-secondary: rgba(21, 40, 46, 0.25);
    --bg-highlight: #009dff;
    --bg-logo-primary: rgb(5, 99, 193);
    --bg-logo-secondary: #a7c844;

    /* 文本颜色变量 */
    /*--text-primary: #FFFAE3;*/
    /*--text-secondary: #ffffff9e;*/
    --text-primary: #093f72;
    --text-secondary: #777;
    --text-tertiary: #777;
    --text-highlight: #FFF;
    --text-success: #ffeb3b;
    --text-error: red;
    --text-accent: gold;

    /* 边框变量 */
    --border-primary: #40505e;
    --border-secondary: #ffffff21;
    --border-width: 2px;
    --border-style: solid;

    /* 尺寸变量 */
    --logo-font-size: 1px; /* 基础尺寸变量，用于logo缩放 */
    --form-height: 41px;
    --btn-height: 35px;
    --btn-large-height: 40px;
    --header-height: 90px;

    /* 圆角变量 */
    --border-radius: 5px;
}


.background-body {
    height: 100%;
    background-image: url("/resource/login.png");
    background-size: 100% 100%;
}


.logo {
    position: absolute;
    left: 30px;
    top: 30px;

    .logo-left {
        float: left;
    }
    .logo-left .box0 {
        border-width: 0rem;
        border-color: rgb(0, 0, 0);
        border-style: solid;
        background-color: var(--bg-logo-primary);
        position: absolute;
        left: calc(2.7 * var(--logo-font-size));
        top: calc(1.4 * var(--logo-font-size));
        width: calc(12.8 * var(--logo-font-size));
        height: calc(9.2 * var(--logo-font-size));
        z-index: 3;
    }
    .logo-left .box1 {
        border-width: 0rem;
        border-color: rgb(0, 0, 0);
        border-style: solid;
        background-color: var(--bg-logo-primary);
        position: absolute;
        left: calc(8.7 * var(--logo-font-size));
        top: calc(12.9 * var(--logo-font-size));
        width: calc(6.8 * var(--logo-font-size));
        height: calc(4.9 * var(--logo-font-size));
        z-index: 4;
    }
    .logo-left .box2 {
        border-width: 0rem;
        border-color: rgb(0, 0, 0);
        border-style: solid;
        background-color: var(--bg-logo-primary);
        position: absolute;
        left: calc(8.7 * var(--logo-font-size));
        top: calc(20 * var(--logo-font-size));
        width: calc(6.8 * var(--logo-font-size));
        height: calc(4.9 * var(--logo-font-size));
        z-index: 5;
    }
    .logo-right {
        float: left;
        img {
            max-height: 70px;
        }
    }
    .logo-right .logo-text {
        font-size: calc(9.4733 * var(--logo-font-size));
        font-family: "Swis721 BlkCn BT";
        line-height: 1.2;
        text-align: center;
        -moz-transform: matrix( 3.34317411463543,0,0,3.29347826086957,0,0);
        -webkit-transform: matrix( 3.34317411463543,0,0,3.29347826086957,0,0);
        -ms-transform: matrix( 3.34317411463543,0,0,3.29347826086957,0,0);
        position: absolute;
        left: calc(33.6246 * var(--logo-font-size));
        top: calc(8.0015 * var(--logo-font-size));
        width: calc(50.0794 * var(--logo-font-size));
        z-index: 8;
        background: linear-gradient(to right, var(--bg-logo-primary), var(--bg-logo-secondary));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-fill-color: transparent;
    }
}

.form-control {
    height: var(--form-height)!important;
}

.login-bg {
    background: var(--bg-primary);
    opacity: 0.9;
}

.login-form {
    width: 500px;
    height: 350px;
    border-radius: var(--border-radius);
    position: absolute;
    margin: 0 auto;
    left: 0;
    right: 0;
    top: 100px;
    text-align: right;
}

.login-form-header {
    width: 100%;
    height: var(--header-height);
    text-align: center;
    border: 0px!important;
    margin: 0px!important;
    zoom: 2;
}

.login-form-header>h1 {
    line-height: var(--header-height);
    color: var(--text-primary);
    small {
        color: var(--text-secondary);
    }
}

.login-form-input {
    padding: 15px 30px 15px 30px;
}

.login-form-btn {
    width: 60px;
    height: var(--btn-height);
    margin-top: 10px;
    color: var(--text-highlight);
}

.login-form-btn-login {
    margin-right: 10px;
}

.login-form-check {
    text-align: right;
    padding-right: 50px;
    color: var(--text-highlight);
    line-height: 38px;
    float: left;
}

.login-split {
    width: 100%;
}

.login-split-line {
    margin: 0!important;
    opacity: 1;
    border: 1px var(--border-style) var(--border-secondary);
    width: 100%;
}

.system-info {
    position: absolute;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    top: calc(100vh/2 + 185px);
    color: var(--text-highlight);
    white-space: nowrap;
    font-size: 0.9rem;
}

.reg-form>* {
    padding: 10px;
}
.reg-btn {
    height: var(--btn-large-height);
    line-height: 29px;
    color: var(--text-highlight);
    text-align: center;
    font-size: 14px;
    border: none;
    display: block;
    width: 100%;
    background: var(--bg-highlight);
    transition: background .5s ease;
    cursor: pointer;
    border-radius: 0px!important;
}

.modal-backdrop {
    height: 100%;
    background-image: url("/resource/login.png");
    background-size: 100% 100%;
    opacity: 1!important;
}

.small-describe {
    display: inline-block;
    float: left;
    line-height: 30px;
    color: var(--text-tertiary);
    padding-left: 30px;
    text-align: left;
    padding-right: 30px;
}
.describe-success {
    color: var(--text-success);
}
.describe-error {
    color: var(--text-error);
}

.nav-link-custom {
    text-align: center;
    border: 0!important;
    border-bottom: var(--border-width) var(--border-style) var(--border-primary)!important;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.regist {
    float: right;
    text-align: right;
}

.nav-link-tt.nav-link-custom.active {
    text-align: center;
    background: var(--bg-primary);
    border: 0!important;
    color: var(--text-highlight);
    border-bottom: var(--border-width) var(--border-style) var(--border-primary)!important;
}

.nav-tabs { border: 0!important; padding-bottom: 1px; }

.fmlg {
    .nav-item {
        width: 50%;
        line-height: 40px;
    }

    .nav-item:nth-child(1):has(+ .nav-item:nth-child(2)[style*="display: none"]) {
        width: 100% !important;
    }
}


.sqxx {
    font-size:1.2rem;
    color: var(--text-accent);
}

#systemtitle { font-weight: bold }
#subtitle { font-weight: bold }

/* 手机端适配：屏幕宽度 < 768px */
@media (max-width: 767.98px) {
    /* 1. 隐藏左侧logo（手机端空间有限，优先保留登录核心内容） */
    .logo {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 70px;
        margin: 0 auto;
        top: auto;
    }

    /* 2. 调整登录框尺寸和位置（占满屏幕宽度，减少上下间距） */
    .login-form {
        width: 90% !important; /* 占屏幕90%宽度，避免边缘溢出 */
        height: auto !important; /* 高度自适应内容，避免固定高度导致内容裁剪 */
        top: 50px !important; /* 顶部间距减小 */
        padding-bottom: 20px; /* 底部留白，避免内容贴边 */
    }

    /* 3. 优化登录框标题（缩小字体，减少高度） */
    .login-form-header {
        height: 60px !important; /* 减小标题栏高度 */
        zoom: 1.5 !important; /* 原zoom=2太大，缩小至1.5 */
    }
    .login-form-header>h1 {
        line-height: 60px !important; /* 与标题栏高度匹配 */
        font-size: 1.5rem !important; /* 明确字体大小，避免继承错乱 */
    }

    /* 4. 调整输入框间距和尺寸（减少内边距，适配小屏幕） */
    .login-form-input {
        padding: 10px 20px !important; /* 左右内边距从30px减到20px */
    }
    :root {
        --form-height: 38px !important; /* 输入框高度减小 */
        --btn-height: 32px !important; /* 按钮高度减小 */
        --header-height: 60px !important; /* 标题栏高度同步减小 */
    }

    /* 5. 优化"记住密码"和"注册"的布局（避免浮动导致换行错乱） */
    .login-form-check {
        padding-right: 20px !important; /* 减少右边距 */
        float: none !important; /* 取消浮动，改为块级显示 */
        text-align: left !important; /* 左对齐，符合手机阅读习惯 */
        margin-bottom: 10px; /* 与注册按钮拉开距离 */
    }
    .regist {
        float: none !important; /* 取消浮动 */
        text-align: right !important; /* 右对齐 */
        margin-top: -38px; /* 向上偏移，与"记住密码"同行 */
    }

    /* 6. 调整登录按钮宽度（占满输入框宽度，更易点击） */
    .login-form-btn {
        width: 100% !important; /* 从60px改为100% */
        margin-top: 5px !important;
    }

    /* 7. 优化注册模态框（适配手机屏幕宽度） */
    .modal-dialog {
        width: 90% !important; /* 模态框占屏幕90%宽度 */
        margin: 100px auto !important; /* 顶部间距，居中显示 */
    }
    .reg-form>* {
        padding: 8px !important; /* 减少注册表单内边距 */
    }

    /* 8. 调整底部版权信息（缩小字体，调整位置） */
    .system-info {
        bottom: 50px;
        top: auto;
        position: fixed;
        /*top: calc(100vh/2 + 150px) !important; !* 向上偏移，避免超出屏幕 *!*/
        font-size: 0.8rem !important;
    }
    .subinfo {
        top: auto !important; /* 与版权信息拉开距离 */
        font-size: 0.7rem !important;
        white-space: normal !important; /* 允许换行，避免文字溢出 */
        padding: 0 20px; /* 左右留白 */
        bottom: 30px;
    }

    /* 9. 优化标签页样式（减少高度，适配小屏幕） */
    .fmlg .nav-item {
        line-height: 35px !important; /* 减少标签栏高度 */
    }
}

/* 平板端适配：768px ≤ 屏幕宽度 < 992px */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* 1. 缩小左侧logo，避免占用过多空间 */
    .logo {
        width: 3rem !important; /* 从4rem缩小到3rem */
        height: 1.2rem !important; /* 同步缩小高度 */
    }
    .logo-right img {
        max-height: 50px !important; /* logo图片缩小 */
    }

    /* 2. 调整登录框尺寸（宽度适中，避免过大） */
    .login-form {
        width: 400px !important; /* 从500px减到400px */
        top: 80px !important; /* 顶部间距减小 */
    }

    /* 3. 优化输入框和按钮尺寸 */
    :root {
        --form-height: 39px !important;
        --btn-height: 33px !important;
    }

    /* 4. 调整底部信息位置 */
    .system-info {
        top: calc(100vh/2 + 170px) !important;
    }
}

/* PC端适配：屏幕宽度 ≥ 992px */
@media (min-width: 992px) {
    /* 1. 登录框水平居中优化（宽屏时更靠上） */
    .login-form {
        top: 120px !important;
    }

    /* 2. 按钮添加hover效果，提升交互体验 */
    .login-form-btn:hover, .reg-btn:hover {
        background: #007acc !important; /* 加深背景色 */
        transform: translateY(-1px); /* 轻微上浮，增强反馈 */
    }

    /* 3. 标签页hover效果 */
    .nav-link-custom:hover {
        color: var(--text-highlight) !important;
        background: rgba(21, 40, 46, 0.4) !important;
    }
}