/* =========================================
           3. 登录卡片容器 (居中)
           ========================================= */
.login-wrapper {
    margin-top: 100px;
    flex: 1; display: flex; align-items: center; justify-content: center;
}

.login-box {
    width: 900px; height: 500px;
    background: #fff; border-radius: 16px;
    box-shadow: var(--shadow);
    display: flex; overflow: hidden;
}

/* --- 左侧：视觉区 --- */
.visual-side {
    flex: 1;
    background: linear-gradient(135deg, #2C3E30 0%, #4A7C59 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    color: #fff; padding: 40px; text-align: center;
    position: relative;
}
/* 装饰圆圈 */
.visual-side::before {
    content: ''; position: absolute; top: -50px; left: -50px;
    width: 200px; height: 200px; background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.visual-side::after {
    content: ''; position: absolute; bottom: -30px; right: -30px;
    width: 150px; height: 150px; background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.slogan-en { font-family: "Songti SC", serif; font-size: 40px; opacity: 0.2; position: absolute; top: 40px; left: 40px; }
.visual-img { font-size: 80px; margin-bottom: 20px; }
.visual-title { font-size: 28px; font-weight: bold; margin-bottom: 10px; font-family: "Songti SC", serif; }
.visual-desc { font-size: 14px; opacity: 0.8; line-height: 1.6; max-width: 300px; }

/* --- 右侧：表单区 --- */
.form-side {
    width: 450px; padding: 50px;
    display: flex; flex-direction: column;
}

/* 身份切换 Tab */
.role-tabs { display: flex; margin-bottom: 30px; border-bottom: 1px solid #eee; }
.role-tab {
    flex: 1; text-align: center; padding-bottom: 15px;
    font-size: 16px; cursor: pointer; color: var(--text-sub);
    position: relative;
}
.role-tab.active { color: var(--primary); font-weight: bold; }
.role-tab.active::after {
    content: ''; position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%);
    width: 40px; height: 3px; background: var(--primary); border-radius: 3px;
}

/* 输入框 */
.input-group { margin-bottom: 20px; position: relative; }
.input-field {
    width: 100%; height: 48px; padding: 0 15px 0 40px;
    border: 1px solid #ddd; border-radius: 6px;
    font-size: 14px; box-sizing: border-box; transition: 0.3s;
}
.input-field:focus { border-color: var(--primary); outline: none; }
.input-icon {
    position: absolute; left: 12px; top: 14px;
    color: #ccc; font-size: 18px;
}

/* 登录方式切换 (账号密码/验证码) */
.login-method { font-size: 12px; color: var(--primary); cursor: pointer; text-align: right; margin-bottom: 5px; display: block; }

/* 辅助功能 (记住我/忘记密码) */
.extras { display: flex; justify-content: space-between; font-size: 12px; color: #666; margin-bottom: 30px; }
.extras label { cursor: pointer; display: flex; align-items: center; gap: 5px; }

/* 按钮 */
.btn-login {
    width: 100%; height: 48px; background: var(--primary); color: #fff;
    border-radius: 6px; font-size: 16px; font-weight: bold;
    box-shadow: 0 5px 15px rgba(74, 124, 89, 0.3); transition: 0.3s;
}
.btn-login:hover { background: var(--primary-hover); transform: translateY(-1px); }

/* 底部注册引导 */
.register-link { text-align: center; margin-top: 20px; font-size: 13px; color: #666; }
.register-link a { color: var(--primary); font-weight: bold; }

/* 第三方登录 */
.social-login { margin-top: auto; text-align: center; }
.divider { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #ccc; margin-bottom: 15px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: #eee; }
.social-icons { display: flex; justify-content: center; gap: 20px; }
.icon-btn {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid #eee;
    display: flex; align-items: center; justify-content: center;
    color: #666; transition: 0.2s; cursor: pointer; font-size: 18px;
}
.icon-btn:hover { color: var(--primary); border-color: var(--primary); background: #E8F5E9; }

/* 扫码登录的小角标 */
.qr-corner {
    position: absolute; top: 10px; right: 10px;
    width: 50px; height: 50px; cursor: pointer;
    background: linear-gradient(135deg, transparent 50%, var(--primary-hover) 50%);
    border-radius: 0 8px 0 0; /* 仅右上角圆角 */
}
.qr-icon { position: absolute; top: 8px; right: 8px; color: #fff; font-size: 20px; }
.qr-tip {
    position: absolute; top: 15px; right: 70px;
    background: rgba(0,0,0,0.7); color: #fff; padding: 5px 10px;
    border-radius: 4px; font-size: 12px; display: none;
}
.qr-corner:hover + .qr-tip { display: block; }