* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    font-family: '微软雅黑', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 20px;
    /*background-image: url("../images/bgblue1.jpg");*/
    background-size: cover;
    background-position: center;
}

/* 静态背景样式 */
.static-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: opacity 0.5s ease;
}

.header {
    /*padding: 15px 30px;*/
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*max-width: 1200px;*/
    /*margin: 0 auto 30px;*/
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    max-width: 100%;
}

.language-selector {
    position: relative;
}

.language-btn {
    display: flex;
    align-items: center;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.language-btn i {
    margin-left: 8px;
    transition: transform 0.3s;
}

.language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    width: 150px;
    display: none;
    z-index: 100;
    margin-top: 5px;
}

.language-options.active {
    display: block;
    animation: fadeIn 0.3s;
}

.language-option {
    padding: 12px 15px;
    cursor: pointer;
    transition: background 0.2s;
    color: #333;
}

.language-option:hover {
    background: #f5f7fa;
}

.container {
    /*display: flex;*/
    /*justify-content: right;*/
    /*align-items: center;*/
    /*flex: 1;*/
    /*margin-right: 10%;*/
    /* 使用绝对定位实现右对齐和垂直居中 */
    position: absolute;
    top: 70%;  /* 垂直居中 */
    right: 10%; /* 右对齐，保持10%右边距 */
    transform: translateY(-50%); /* 垂直居中调整，但IE9不支持transform */

    /* 为了兼容IE9，使用固定margin-top */
    margin-top: -200px; /* 假设容器高度为400px，需要设置为负的一半高度 */

    /* 容器尺寸 */
    width: 450px; /* 使用固定宽度替代max-width */
    height: 400px; /* 固定高度，用于垂直居中计算 */

    /* IE9兼容性处理 */
    _position: absolute; /* IE6 hack */
    _top: expression((document.documentElement.clientHeight || document.body.clientHeight)/2 - this.offsetHeight/2 + "px"); /* IE6-7表达式 */
}

.login-container {
    background: white;
    border-radius: 6.18px;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 450px;
    padding: 30px 30px 0 30px;
    transition: all 0.3s ease;
}

.login-container:hover {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.login-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.login-tab {
    flex: 1;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 500;
    color: #7a8599;
    position: relative;
    text-align: center;
    transition: all 0.3s;
}

.login-tab:hover {
    /*color: #148ef5;*/
    color: red;
}

.login-tab.active {
    /*color: #148ef5;*/
    color: black;
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    /*background-color: #148ef5;*/
    background-color: red;
    border-radius: 3px 3px 0 0;
}

.tab-content {
    position: relative;
    min-height: 300px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s;
}

.tab-pane.active {
    display: block;
}

.login-title {
    text-align: center;
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 25px;
    font-weight: 600;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a8599;
    font-size: 18px;
}

.input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
}

.input-group input:focus {
    /*border-color: #148ef5;*/
    border-color: red;
    box-shadow: 0 0 0 3px rgba(20, 142, 245, 0.2);
    outline: none;
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
    flex-direction: row-reverse;
}

.forgot-password {
    color: #148ef5;
    /*color: red;*/
    text-decoration: none;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #148ef5;
    /*color: red;*/
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    padding: 16px;
    /*background-color: #148ef5;*/
    background-color: red;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.login-btn:hover {
    /*background-color: #0d76d4;*/
    background-color: red;
    transform: translateY(-2px);
}

.login-btn:active {
    transform: translateY(0);
}

.login-btn:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* 扫码登录样式 */
.qrcode-container {
    text-align: center;
    padding: 20px 0;
}

.qrcode-image {
    margin: 0 auto 20px;
    width: 200px;
    height: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7a8599;
    font-size: 14px;
}

.qrcode-tips {
    font-size: 14px;
    color: #7a8599;
    margin-bottom: 20px;
    line-height: 1.5;
}

.qrcode-tips strong {
    color: #2c3e50;
    display: block;
    margin-bottom: 5px;
    font-size: 16px;
}

.qrcode-apps {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.qrcode-app {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #f5f7fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    /*color: #148ef5;*/
    color: red;
    transition: all 0.3s;
}

.qrcode-app:hover {
    background: #e4e8f0;
    transform: translateY(-2px);
}

.app-download {
    text-align: center;
    margin-top: 20px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* 廉洁举报二维码样式 */
.report-qrcode {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.report-qrcode-container {
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 15px;
    margin-bottom: 10px;
    display: none;
    transition: all 0.3s ease;
}

.report-qrcode-container.active {
    display: block;
    animation: fadeIn 0.5s;
}

.report-qrcode-container img {
    width: 120px;
    height: 120px;
    display: block;
}

.qrcode-label {
    font-size: 14px;
    color: #2c3e50;
    margin-top: 8px;
    text-align: center;
}

.report-trigger {
    /*background: #148ef5;*/
    background: red;
    color: white;
    border-radius: 50px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(20, 142, 245, 0.3);
    transition: all 0.3s ease;
}

.report-trigger:hover {
    background: #0d76d4;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(20, 142, 245, 0.4);
}

.report-trigger i {
    margin-right: 8px;
    font-size: 16px;
}

.report-text {
    font-size: 14px;
    font-weight: 500;
}

/* 自动登录样式 */
.auto-login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
}

.auto-login-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    /*border-top: 5px solid #148ef5;*/
    border-top: 5px solid red;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

.auto-login-message {
    font-size: 18px;
    color: #2c3e50;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.auto-login-error {
    background: #ffebee;
    color: red;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
    max-width: 400px;
}

.auto-login-retry-btn {
    margin-top: 15px;
    padding: 10px 20px;
    /*background: #148ef5;*/
    background: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.auto-login-retry-btn:hover {
    background: #0d76d4;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header {
        padding: 15px 20px;
    }

    .login-container {
        padding: 20px;
    }

    .report-qrcode {
        right: 10px;
        bottom: 10px;
    }

    .report-text {
        display: none;
    }

    .report-trigger {
        padding: 15px;
    }

    .report-trigger i {
        margin-right: 0;
        font-size: 20px;
    }
}