/**
1 : 证件制作管理中心系统
    <input type="hidden" id="logintype" name="logintype" value="card">
    <input type="hidden" name="login_storeno" value="500">

2 : 联网报警中心管理系统  联网报警中心
    <input type="hidden" id="logintype" name="logintype" value="bjzx">
    <input type="hidden" name="login_storeno" value="300">

3 : 恒安实业印章管理系统   恒安实业印章服务反馈平台  印章管理系统
    <input type="hidden" id="logintype" name="logintype" value="seal">
    <input type="hidden" name="login_storeno" value="400">  印章管理系统

4 : 恒安实业固定资产管理系统 恒安实业固定资产管理系统
    <input type="hidden" id="logintype" name="logintype" value="gdzc">
    <input type="hidden" name="login_storeno" value="600">

 */

:root {
    --primary-color: #000000;
    --primary-dark: rgba(5, 32, 128, 0.8);
    --primary-light: #3a898f;
    --accent-color: #c5fdff;
    --text-color: #000000;
    --error-color: #ff2f2f;
    --success-color: #28a745;
    --bg-gradient-start: #dde0ef;
    --bg-gradient-middle: rgba(5, 32, 128, 0.8);
    --bg-gradient-end: #c5fdff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden; /* 防止整体页面滚动 */
}

body {
    min-height: 100vh;
    /* 为IE提供备用背景 */
    background: #dde0ef;
    background: linear-gradient(135deg, #dde0ef, rgba(5, 32, 128, 0.8), #c5fdff);
    background-attachment: fixed;
    font-family: "微软雅黑", "Microsoft YaHei UI", sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    color: #000000;
    -webkit-tap-highlight-color: transparent;
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-header {
    text-align: center;
    margin-bottom: 5px;
}

.login-logo {
    max-width: 100px;
    /* 为IE提供备用阴影效果 */
    box-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
}

.login-title {
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    text-shadow: 2px 4px 4px rgb(2, 16, 68);
    margin-bottom: 12px;
}

.login-subtitle {
    color: #c5fdff;
    font-size: 16px;
    opacity: 0.9;
    font-weight: bold;
}

.login-content {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    /* 移除IE不支持的backdrop-filter */
    max-height: 95vh;
    overflow-y: auto;
}

.form-group {
    margin-bottom: 6px;
}

.form-label {
    display: block;
    font-weight: bold;
    color: #000000;
    margin-bottom: 4px;
    font-size: 16px;
}

.input-wrapper {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 7px 10px 7px 35px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    color: #0000ff;
    transition: all 0.3s;
    height: 38px;
    background: #fff;
    -webkit-appearance: none;
    /* 为IE移除appearance */
    -ms-appearance: none;
}

.form-control:focus {
    border-color: #000000;
    box-shadow: 0 0 0 2px rgba(43, 97, 102, 0.2);
    outline: none;
}

.input-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #000000;
    font-size: 14px;
}

.system-info {
    background-color: #f0f8f9;
    padding: 6px 10px;
    border-radius: 5px;
    border: 1px solid #ddeff0;
    color: #000000;
    font-weight: bold;
    height: 38px;
    display: flex;
    align-items: center;
    font-size: 18px;
}

.btn-login {
    width: 100%;
    padding: 8px;
    /* 为IE提供备用背景 */
    background: #000000;
    background: linear-gradient(to right, #000000, #3a898f);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 6px;
    box-shadow: 0 2px 4px rgba(43, 97, 102, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(43, 97, 102, 0.3);
    /* 为IE提供备用背景 */
    background: #3a898f;
    background: linear-gradient(to right, #3a898f, #000000);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-loading {
    position: relative;
    overflow: hidden;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    animation: loading 1.5s infinite;
}

.error-message {
    padding: 12px;
    margin-bottom: 15px;
    color: #ff2f2f;
    text-align: center;
    background: rgba(255, 47, 47, 0.1);
    border-radius: 6px;
    font-size: 14px;
    border-left: 4px solid #ff2f2f;
}

@keyframes loading {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.login-footer {
    margin-top: 8px;
    text-align: center;
    padding-top: 6px;
    border-top: 1px dashed #dde;
}

.beian-link {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    cursor: pointer;
    z-index: 10;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-container {
        max-width: 90%;
    }
    .login-content {
        padding: 12px;
    }
    .login-title {
        font-size: 18px;
    }
    body {
        padding: 5px;
        align-items: flex-start;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 3px;
    }
    .login-container {
        max-width: 100%;
    }
    .login-title {
        font-size: 16px;
    }
    .form-control {
        padding: 6px 8px 6px 30px;
        font-size: 14px;
        height: 36px;
    }
    .input-icon {
        left: 8px;
        font-size: 14px;
    }
    .login-content {
        padding: 10px;
    }
    .system-info {
        height: 36px;
        font-size: 14px;
    }
}

/* 自定义滚动条样式 - 仅对Webkit浏览器有效 */
.login-content::-webkit-scrollbar {
    width: 5px;
}

.login-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.login-content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.login-content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 为IE添加特定样式 */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
    /* IE 10+ 特定样式 */
    body {
        display: block;
        text-align: center;
    }

    .login-container {
        display: inline-block;
        vertical-align: middle;
    }

    body:before {
        content: '';
        display: inline-block;
        height: 100%;
        vertical-align: middle;
        margin-right: -0.25em;
    }

    .login-content {
        background: #ffffff;
    }

    .btn-login:hover {
        transform: none;
    }

    /* 简化渐变效果 */
    .btn-login {
        filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#000000', endColorstr='#3a898f', GradientType=1);
    }
}
/* 扫码 样式 开始 */
/* ==========================================
   扫码登录样式 - 基于现有设计系统
========================================== */

/* 登录方式切换标签 */
.login-methods {
    display: flex;
    border-bottom: 1px solid #dde0ef;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
}

.login-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
    font-size: 14px;
    color: #000000;
    font-weight: bold;
    background: #f0f8f9;
    border: 1px solid #ddeff0;
    margin: 1px;
}

.login-tab:first-child {
    border-radius: 5px 0 0 0;
}
.login-tab:local-link {
    border-radius: 0 0 0 5px;
}

.login-tab:last-child {
    border-radius: 0 5px 0 0;
}

.login-tab.active {
    border-bottom-color: #000000;
    color: #000000;
    background: white;
    border-bottom-width: 3px;
}

.login-tab:hover:not(.active) {
    color: #3a898f;
    background: #e6f4f5;
}

/* 登录内容区域 */
.login-content-panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.login-content-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 二维码登录容器 */
.qrcode-login-container {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
}

.qrcode-title {
    font-size: 16px;
    color: #000000;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: bold;
}

.qrcode-title i {
    color: #000000;
}

#qrcode-canvas {
    width: 200px;
    height: 200px;
    margin: 0 auto 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
#netipcss {
    width: 260px;
    height: 260px;
    margin: 0 auto 15px;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.qrcode-status {
    padding: 10px;
    border-radius: 5px;
    font-size: 13px;
    margin-bottom: 10px;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: bold;
}

.qrcode-status.waiting {
    background: #f0f8f9;
    color: #000000;
    border-left: 4px solid #000000;
}

.qrcode-status.scanned {
    background: #fff9e6;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.qrcode-status.confirmed {
    background: #e6f4e6;
    color: #155724;
    border-left: 4px solid #28a745;
}

.qrcode-status.expired {
    background: #fee;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.qrcode-user-info {
    font-weight: bold;
    color: #000000;
    margin-top: 5px;
    font-size: 14px;
}

.qrcode-timer {
    color: #666;
    font-size: 12px;
    margin: 10px 0;
    font-weight: normal;
}

.qrcode-countdown {
    color: #dc3545;
    font-weight: bold;
    margin-left: 3px;
}

.qrcode-actions {
    /*display: flex;*/
    gap: 8px;
    margin-top: 15px;
}

.qrcode-btn {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.qrcode-refresh {
    margin-left: 10px;
    background: #000000;
    color: white;
}

.qrcode-refresh:hover {
    background: #3a898f;
    transform: translateY(-1px);
}

.qrcode-mobile {
    background: #6c757d;
    color: white;
}

.qrcode-mobile:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.qrcode-loading {
    text-align: center;
    padding: 15px;
    display: none;
}

.qrcode-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #000000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}