body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', 'Microsoft YaHei', Arial, sans-serif;
    background: #fafbfc;
}

.login-bg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(120deg, #f5f7fa 60%, #e9eef3 100%);
}

.login-container {
    display: flex;
    box-shadow: 0 8px 32px rgba(60, 80, 120, 0.12);
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    margin-top: 60px;
}

.login-info-panel {
    background: #2d3a4b;
    color: #fff;
    width: 340px;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-area {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
    justify-content: center;
}
.logo-circle {
    width: 44px;
    height: 44px;
    background: #4e8cff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.platform-title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 1px;
}
.platform-desc {
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.92;
    text-align: center;
}

.login-form-panel {
    width: 340px;
    padding: 48px 36px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
}
.login-form-panel h2 {
    margin: 0 0 24px 0;
    font-weight: 500;
    color: #2d3a4b;
}
#loginForm {
    display: flex;
    flex-direction: column;
}
#loginForm input[type="text"],
#loginForm input[type="password"] {
    margin-bottom: 18px;
    /* padding: 12px 14px; */
    border: 1px solid #dbe2ea;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.2s;
}
#loginForm input:focus {
    border-color: #4e8cff;
}
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    font-size: 0.95rem;
}
.forgot-link {
    color: #4e8cff;
    text-decoration: none;
    font-size: 0.95rem;
}
.forgot-link:hover {
    text-decoration: none;
}
.login-btn {
    background: #4e8cff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.login-btn:hover {
    background: #2566d6;
}
.other-login {
    margin: 28px 0 10px 0;
    text-align: center;
    color: #888;
    font-size: 0.98rem;
}
.login-icons {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 24px;
}
.icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f4f8;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}
.icon img {
    width: 24px;
    height: 24px;
    display: block;
}
.icon:hover {
    background: #e0e7ef;
}
.icon.wechat {
    background: #7adf6a;
}
.icon.qq {
    background: #6ab7ff;
}
.icon.github {
    background: #222;
}
.icon.more {
    background: #bdbdbd;
}
.register-tip {
    margin-top: 18px;
    text-align: center;
    font-size: 0.98rem;
    color: #888;
}
.register-tip a {
    color: #4e8cff;
    text-decoration: none;
    margin-left: 4px;
}
.register-tip a:hover {
    text-decoration: none;
}
.login-footer {
    margin-top: 40px;
    text-align: center;
    color: #b0b6be;
    font-size: 0.95rem;
}
.input-icon-group {
    position: relative;
    margin-bottom: 18px;
}
.input-icon-group input[type="text"],
.input-icon-group input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding-left: 28px; /* 2px边距+20px图标+6px间隔 */
    padding-right: 12px;
    height: 44px;
    border: 1px solid #dbe2ea;
    border-radius: 8px;
    font-size: 0.9rem;
    outline: none;
    transition: border 0.2s;
    background: #fff;
    display: block;
    line-height: 44px;
}
.input-icon-group input[type="text"]:focus,
.input-icon-group input[type="password"]:focus {
    border-color: #4e8cff;
}
.input-icon-group.user::before,
.input-icon-group.pwd::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 50%;
   transform: translateY(-90%); /* 向上移动更多，保证与文字水平对齐 */
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    pointer-events: none;
}
.input-icon-group.user::before {
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><circle cx="12" cy="8" r="4" stroke="%23b0b6be" stroke-width="2"/><path d="M4 20c0-4 4-6 8-6s8 2 8 6" stroke="%23b0b6be" stroke-width="2" fill="none"/></svg>');
}
.input-icon-group.pwd::before {
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="5" y="11" width="14" height="8" rx="2" stroke="%23b0b6be" stroke-width="2"/><path d="M8 11V8a4 4 0 1 1 8 0v3" stroke="%23b0b6be" stroke-width="2" fill="none"/></svg>');
}
.input-icon {
    display: none;
}

/* 字体图标兼容性优化（如未引入FontAwesome可用SVG或自定义） */
@font-face {
    font-family: 'Font Awesome 5 Free';
    font-style: normal;
    font-weight: 900;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/webfonts/fa-solid-900.woff2') format('woff2');
}

.info-illustration,
.form-header-decoration {
    display: none !important;
}

@media (max-width: 800px) {
    .login-container {
        flex-direction: column;
        width: 90vw;
        min-width: 0;
    }
    .login-info-panel, .login-form-panel {
        width: 100%;
        padding: 32px 16px;
    }
}
