﻿/* ==================== 全局基础样式（首钢风格） ==================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    font-size: 14px;
    background-color: #f0f2f5;
    position: relative;
    min-height: 100vh;
}

/* ==================== 背景容器（首钢蓝渐变+钢铁纹理） ==================== */
.wrapper {
    background: #00529B;
    background: linear-gradient(135deg, #00529B 0%, #003366 100%);
    position: absolute;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    /* 加入 subtle 钢铁纹理背景 */
    background-image: linear-gradient(135deg, #00529B 0%, #003366 100%), url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h100v100H0z' fill='%23ffffff' fill-opacity='0.02'/%3E%3Cpath d='M0 50h100M50 0v100' stroke='%23ffffff' stroke-opacity='0.03' stroke-width='1'/%3E%3C/svg%3E");
}

/* ==================== 登录主体卡片（工业硬朗风） ==================== */
.login-container {
    display: flex;
    width: 1000px;
    height: 600px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

/* ==================== 左侧面板（首钢蓝主题区） ==================== */
.left-panel {
    width: 55%;
    background-color: #00529B;
    color: white;
    padding: 50px;
    position: relative;
    overflow: hidden;
}

    .left-panel::before {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 300px;
        height: 300px;
        border: 20px solid rgba(255, 255, 255, 0.05);
        border-radius: 50%;
        z-index: 1;
    }

    .left-panel::after {
        content: '';
        position: absolute;
        bottom: -100px;
        left: -100px;
        width: 400px;
        height: 400px;
        border: 30px solid rgba(255, 255, 255, 0.03);
        border-radius: 50%;
        z-index: 1;
    }

/* ==================== 右侧登录表单区 ==================== */
.right-panel {
    width: 45%;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

/* ==================== 解决方案信息区 ==================== */
.solution-info {
    position: relative;
    z-index: 2;
}

.header-alignment {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.system-logo {
    margin-bottom: 0;
}

/* ==================== 二维码图标容器（修复溢出） ==================== */
.logo-circle {
    width: 60px;
    height: 60px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden; /* 修复：隐藏溢出 */
}

    /* 确保内部图标也不溢出 */
    .logo-circle i {
        max-width: 100%;
        max-height: 100%;
        display: block;
    }

.solution-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 700;
    letter-spacing: 1px;
}

.solution-tagline {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 0;
    font-weight: 400;
    line-height: 1.5;
}

/* ==================== 功能标签（2x2网格布局） ==================== */
.solution-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px; /* 从40px改为20px */
    margin-top: 30px;
}

.feature-item {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 12px 18px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 500;
    display: flex;
    align-items: center;
    border-left: 3px solid #E60012;
}

.feature-icon {
    margin-right: 10px;
    font-weight: bold;
    color: #E60012;
}

/* ==================== 本地图片展示区 ==================== */
.local-images {
    margin-top: 10px; /* 从30px改为10px，整体上移 */
    padding: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-10px); /* 额外上移10px */
}

.local-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.local-images:hover .local-image {
    opacity: 0.9;
}

/* ==================== 登录表单容器 ==================== */
.login-form-container {
    width: 100%;
    max-width: 320px;
    position: relative;
    z-index: 20;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    transform: translateY(6px);
}

/* ==================== 登录LOGO容器（修复溢出） ==================== */
.login-logo-circle {
    width: 100px;
    height: 100px;
    background-color: #00529B;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0, 82, 155, 0.25);
    overflow: hidden; /* 修复：隐藏溢出 */
}

/* ==================== 登录LOGO图片（核心修复代码） ==================== */
.login-logo-image {
    width: 80px; /* 固定宽度，比容器小 */
    height: 80px; /* 固定高度，比容器小 */
    object-fit: contain; /* 关键：保持比例完整显示 */
    object-position: center; /* 居中显示 */
    display: block;
    max-width: 100%; /* 双重保险 */
    max-height: 100%; /* 双重保险 */
}

.login-title {
    color: #333333;
    font-size: 24px;
    margin-bottom: 8px;
    font-weight: 700;
    text-align: center;
}

.system-subtitle {
    color: #666666;
    font-size: 14px;
    margin-bottom: 40px;
    text-align: center;
    font-weight: 400;
}

/* ==================== 表单元素样式 ==================== */
form {
    width: 100%;
}

    form .row {
        position: relative;
        margin-bottom: 20px;
    }

    form input, form button {
        width: 100%;
        box-sizing: border-box;
    }

    form input {
        font-size: 14px;
        outline: 0;
        border: 1px solid #dcdfe6;
        background-color: #ffffff;
        border-radius: 4px;
        padding: 14px 15px 14px 42px;
        color: #333333;
        font-weight: 400;
        transition: all 0.2s ease;
    }

        form input:focus {
            border-color: #00529B;
            box-shadow: 0 0 0 3px rgba(0, 82, 155, 0.1);
        }

    form i {
        color: #909399;
        top: 15px;
        left: 15px;
        z-index: 21;
        position: absolute;
        display: block;
        width: 16px;
        height: 16px;
        text-align: center;
        font-size: 16px !important;
        pointer-events: none;
    }

    form button {
        outline: 0;
        background-color: #00529B;
        border: 0;
        padding: 14px 15px;
        color: #fff;
        border-radius: 4px;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.2s ease;
    }

        form button:hover {
            background-color: #004080;
            box-shadow: 0 4px 12px rgba(0, 82, 155, 0.2);
        }

        form button:active {
            background-color: #003366;
        }

button[disabled] {
    background-color: #80a8cc;
    cursor: not-allowed;
    box-shadow: none;
}

/* ==================== 验证码区域 ==================== */
.code-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .code-row input {
        width: 65%;
        padding: 14px 15px;
        margin-bottom: 0;
    }

.code-image-container {
    width: 35%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .code-image-container a {
        text-decoration: none;
        font-size: 12px;
        margin-bottom: 5px;
        color: #00529B;
    }

        .code-image-container a:hover {
            text-decoration: underline;
        }

/* ==================== 忘记密码链接 ==================== */
.forgot-password {
    text-align: right;
    margin-top: 15px;
    position: relative;
    z-index: 20;
}

    .forgot-password a {
        color: #00529B;
        font-size: 14px;
        text-decoration: none;
        transition: color 0.2s;
    }

        .forgot-password a:hover {
            color: #004080;
            text-decoration: underline;
        }

/* ==================== 背景装饰 ==================== */
.bg-bubbles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

    .bg-bubbles li {
        position: absolute;
        list-style: none;
        display: block;
        width: 40px;
        height: 40px;
        background-color: rgba(255, 255, 255, 0.05);
        bottom: -160px;
        animation: square 35s infinite;
        transition-timing-function: linear;
        border-radius: 4px;
    }

        .bg-bubbles li:nth-child(1) {
            left: 10%;
        }

        .bg-bubbles li:nth-child(2) {
            left: 20%;
            width: 80px;
            height: 80px;
            animation-delay: 2s;
            animation-duration: 25s;
        }

        .bg-bubbles li:nth-child(3) {
            left: 25%;
            animation-delay: 4s;
        }

        .bg-bubbles li:nth-child(4) {
            left: 40%;
            width: 60px;
            height: 60px;
            animation-duration: 30s;
        }

        .bg-bubbles li:nth-child(5) {
            left: 70%;
        }

        .bg-bubbles li:nth-child(6) {
            left: 80%;
            width: 120px;
            height: 120px;
            animation-delay: 3s;
        }

        .bg-bubbles li:nth-child(7) {
            left: 32%;
            width: 160px;
            height: 160px;
            animation-delay: 7s;
        }

        .bg-bubbles li:nth-child(8) {
            left: 55%;
            width: 20px;
            height: 20px;
            animation-delay: 15s;
            animation-duration: 50s;
        }

        .bg-bubbles li:nth-child(9) {
            left: 25%;
            width: 10px;
            height: 10px;
            animation-delay: 2s;
            animation-duration: 50s;
        }

        .bg-bubbles li:nth-child(10) {
            left: 90%;
            width: 160px;
            height: 160px;
            animation-delay: 11s;
        }

@keyframes square {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(-1000px) rotate(180deg);
    }
}

/* ==================== LOGO动画定义 ==================== */
@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(2px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* ==================== 应用LOGO动画 ==================== */
.animate-logo {
    animation: rotate 6s infinite linear;
}

.animate-float {
    position: relative;
    animation: float 3s ease-in-out infinite;
}

/* ==================== 版权信息 ==================== */
.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
    bottom: 20px;
    width: 100%;
    font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
    line-height: 25px;
    font-size: 13px;
    z-index: 10;
    pointer-events: none;
}

    .copyright a {
        pointer-events: auto;
        color: rgba(255, 255, 255, 0.9);
    }

/* ==================== 登录提示信息 ==================== */
.login_tips {
    margin-top: 20px;
    height: 30px;
    position: relative;
    z-index: 20;
}

.tips_msg {
    height: 30px;
    line-height: 30px;
    color: #E60012;
    margin: 0 auto;
    border-radius: 4px;
    width: 100%;
    font-size: 14px;
    text-align: center;
    background-color: #fff2f2;
    border: 1px solid #ffcccc;
}

    .tips_msg i {
        position: relative;
        top: 0.5px;
        font-size: 15px;
        padding-right: 5px;
    }

/* ==================== IE版本提示 ==================== */
#ieVersionCheck {
    position: relative;
    z-index: 30;
    background-color: #fff2f2;
    border: 1px solid #ffcccc;
    padding: 10px;
    text-align: center;
    color: #E60012;
    font-size: 14px;
}

    #ieVersionCheck a {
        color: #00529B;
        font-weight: 600;
    }

/* ==================== 响应式适配 ==================== */
@media (max-width: 1024px) {
    .login-container {
        width: 90%;
        max-width: 900px;
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .left-panel, .right-panel {
        width: 100%;
    }

    .left-panel {
        padding: 30px;
        text-align: center;
    }

    .header-alignment {
        flex-direction: column;
        text-align: center;
    }

    .solution-features {
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .code-row {
        flex-direction: column;
    }

        .code-row input, .code-image-container {
            width: 100%;
        }
}
