/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body, html {
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.main-container {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* 左侧艺术图区域 */
.artwork-side {
    flex: 1;
    /* 请在这里替换你的图片路径 */
    background-image: url('image.png'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* 如果你想让左侧稍微暗一点，可以加这个遮罩 */
.artwork-side::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.2); 
}

/* 右侧登录面板 */
.login-panel {
    width: 480px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 40px 60px;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
}

/* 顶部地球仪图标 */
.top-icons {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 40px;
}

.language-icon {
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

/* Logo 样式 */
.logo-section {
    text-align: center;
    margin-bottom: 50px;
}

.logo-section h1 {
    font-size: 32px;
    font-style: italic;
    font-weight: 800;
    letter-spacing: 2px;
    color: #000;
}

/* Tabs 切换 */
.login-tabs {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    font-size: 16px;
    color: #999;
}

.tab {
    cursor: pointer;
    padding-bottom: 8px;
    position: relative;
    transition: color 0.3s;
}

.tab.active {
    color: #000;
    font-weight: 600;
}

/* 激活状态下的紫色下划线 */
.tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(to right, #a18cd1, #fbc2eb); /* 模拟图中的紫色渐变 */
    border-radius: 2px;
}

/* 表单输入框 */
.input-group {
    margin-bottom: 20px;
    position: relative;
}

.input-group input {
    width: 100%;
    padding: 15px;
    background-color: #f2f3f5;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}

.input-group input:focus {
    border-color: #ccc;
    background-color: #fff;
}

/* 眼睛图标 */
#togglePassword {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    cursor: pointer;
}

/* 协议勾选 */
.agreement {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 30px;
}

.agreement input {
    margin-right: 8px;
    accent-color: #007bff; /* 设置复选框颜色 */
}

/* 登录按钮 */
.login-btn {
    width: 100%;
    padding: 14px;
    background-color: #000;
    color: #fff;
    border: none;
    border-radius: 25px; /* 胶囊形状 */
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.login-btn:hover {
    opacity: 0.8;
}

/* 底部链接 (忘记密码/注册) */
.footer-links {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-size: 13px;
}

.footer-links a {
    text-decoration: none;
    color: #333;
}

/* 社交图标 */
.social-login {
    margin-top: auto; /* 推到底部 */
    display: flex;
    justify-content: center;
    gap: 20px;
    padding-bottom: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.social-icon:hover {
    transform: scale(1.1);
}

.wechat {
    color: #07c160; /* 微信绿 */
    background: #e6f7ed;
}

.qq {
    color: #12b7f5; /* QQ蓝 */
    background: #eaf8fe;
}

/* 响应式调整：屏幕太窄时变为全屏表单 */
@media (max-width: 768px) {
    .artwork-side {
        display: none;
    }
    .login-panel {
        width: 100%;
        padding: 20px;
    }
}