/* 全局样式重置和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    line-height: 1.5;
    font-weight: 400;
    background: linear-gradient(to bottom right, #e6f2ff, #f0f8ff);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow: hidden;
}

/* 主容器样式 - 调整为长方形 */
.login-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: auto;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border-radius: 12px;
}

/* 左侧图片区域样式 - 调整为55%宽度 */
.image-section {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 55%;
    height: 100%;
    background-image: url('../images/left.png');
    background-size: cover;
    background-position: center;
    z-index: 1;
    border-radius: 12px 0 0 12px;
}

.image-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* 右侧表单区域样式 - 调整为45%宽度 */
.form-section {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 2;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.form-content {
    width: 100%;
    max-width: 320px;
}

/* Logo和系统名称样式 */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.logo {
    width: 150px;
    height: 60px;
    margin-bottom: 20px;
    object-fit: contain;
}

.system-name {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

/* 表单样式 - 优化间距 */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: white;
}

.captcha-container {
    display: flex;
    gap: 10px;
}

.captcha-input {
    flex: 1;
}

.captcha-image {
    width: 120px;
    height: 48px;
    /*background: linear-gradient(to right, #4f46e5, #7c3aed);*/
    border: 1px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    margin-top: 2px;
}

.captcha-image:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

.login-button {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(to right, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(37, 99, 235, 0.3);
}

.login-button:active {
    transform: translateY(0);
}

/* 响应式设计 - 在大屏幕上实现左右交融效果 */
@media (min-width: 768px) {
    .login-container {
        flex-direction: row;
        height: 500px;
    }
    
    .image-section {
        display: block;
    }
    
    .form-section {
        width: 45%;
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        border-radius: 0 12px 12px 0;
        box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    }
}

/* 小屏幕适配 */
@media (max-width: 767px) {
    .login-container {
        min-height: auto;
        max-width: 400px;
    }
    
    .form-section {
        padding: 30px 20px;
    }
    
    .form-content {
        max-width: 280px;
    }
    
    .logo {
        width: 180px;
        height: 54px;
    }
}