﻿:root {
    --primary-color: #2C3E50; /* 主色调：深蓝 */
    --secondary-color: #3498DB; /* 辅助色调：亮蓝 */
    --accent-color: #1ABC9C; /* 强调色：青绿色 */
    --background-light: #ECF0F1; /* 背景浅色 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #f7fbfc 0%, #eaf4f7 100%);
}

.login-container {
    display: flex;
    width: 90%;
    max-width: 1200px;
    background: white;
    box-shadow: 0 12px 24px rgba(44,62,80,0.1);
    border-radius: 16px;
    overflow: hidden;
}

/* 左侧区域 */
.left-section {
    flex: 1;
    padding: 2.5rem;
    background: linear-gradient(145deg, #f0f8fa 0%, #e4f1f5 100%);
    border-right: 1px solid #dce7eb;
}

.company-logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--accent-color);
    line-height: 1.4;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

    .company-logo i {
        font-size: 2.2rem;
        margin-right: 15px;
    }

    .company-logo span {
        font-size: 0.9rem;
        color: #16a085;
        display: block;
        margin-top: 0.5rem;
    }

.background-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
    transition: transform 0.4s ease;
}

/* 右侧表单 */
.right-section {
    flex: 1;
    padding: 3rem 4rem;
    background: rgba(255,255,255,0.98);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 表单元素 */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    color: #4A4458;
    font-size: 1rem;
    font-weight: 500;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 1.1rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 1.1rem 1.1rem 1.1rem 45px;
    background: #fcfaff;
    border: 2px solid #dce7eb;
    border-radius: 8px;
    font-size: 1rem;
}

input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 12px rgba(52,152,219,0.15);
    outline: none;
}

/* 验证码区域 */
.captcha-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.2rem;
    align-items: center;
}

.captcha-img {
    border-radius: 6px;
    border: 1px solid #dce7eb;
    padding: 5px;
    background: #fcfaff;
    transition: all 0.3s;
}

.captcha-group span {
    color: var(--secondary-color);
    cursor: pointer;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.captcha-refresh {
    transition: transform 0.3s ease;
}

.captcha-group span:hover {
    color: var(--primary-color);
}

    .captcha-group span:hover .captcha-refresh {
        transform: rotate(90deg);
    }

/* 按钮样式 */
button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 120%);
    color: white;
    padding: 1.3rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    button:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(44,62,80,0.2);
    }

.btn-icon {
    margin-right: 12px;
    font-size: 1.2rem;
}

/* 页脚 */
.footer {
    text-align: center;
    margin-top: 2.5rem;
    color: #888;
    font-size: 0.75rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
        margin: 2rem 0;
    }

    .left-section {
        padding: 2rem;
        text-align: center;
    }

    .right-section {
        padding: 2.5rem;
    }

    .background-img {
        max-width: 300px;
        margin: 1rem auto;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .right-section {
        padding: 2rem 1.5rem;
    }

    input[type="text"],
    input[type="password"] {
        padding: 0.9rem 0.9rem 0.9rem 40px;
    }

    button {
        padding: 1.1rem;
        font-size: 1rem;
    }

    .login-container {
        border-radius: 12px;
    }

    .company-logo {
        flex-direction: column;
        text-align: center;
    }

        .company-logo i {
            margin-right: 0;
            margin-bottom: 10px;
        }
}
