/* 登录页面整体样式 */
.login-page {
    min-height: calc(100vh - 60px);
    background: linear-gradient(135deg, #f5f5f5 0%, #e5e5e5 100%);
    padding: 60px 0;
}

/* 登录框样式 */
.login-box {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: 450px 1fr;
    overflow: hidden;
    max-width: 1000px;
    margin: 0 auto;
}

/* 左侧品牌区域 */
.brand-side {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    color: #fff;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.brand-content .logo {
    width: 120px;
    height: 120px;
    margin-bottom: 30px;
}

.brand-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.brand-content p {
    font-size: 16px;
    opacity: 0.8;
    line-height: 1.6;
}

/* 右侧表单区域 */
.form-side {
    padding: 40px;
}

/* 表单切换标签 */
.form-tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.tab-btn {
    font-size: 18px;
    color: #666;
    background: none;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    position: relative;
}

.tab-btn.active {
    color: #c00;
}

.tab-btn.active:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #c00;
}

/* 表单样式 */
.login-form,
.register-form {
    display: none;
}

.form-active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: #c00;
    box-shadow: 0 0 5px rgba(204,0,0,0.2);
}

/* 密码输入框 */
.password-input {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
}

/* 手机验证码 */
.phone-input {
    display: flex;
    gap: 10px;
}

.phone-input input {
    flex: 1;
}

.send-code {
    padding: 0 20px;
    background: #c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.send-code:hover {
    background: #a00;
}

/* 表单选项 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.forgot-password {
    color: #666;
    text-decoration: none;
}

.forgot-password:hover {
    color: #c00;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 15px;
    background: #c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-submit:hover {
    background: #a00;
}

/* 社交登录 */
.social-login {
    text-align: center;
}

.social-login p {
    color: #666;
    margin-bottom: 15px;
    position: relative;
}

.social-login p:before,
.social-login p:after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 1px;
    background: #ddd;
}

.social-login p:before {
    left: 0;
}

.social-login p:after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon.wechat {
    background: #07c160;
}

.social-icon.qq {
    background: #12b7f5;
}

.social-icon.weibo {
    background: #e6162d;
}

.social-icon:hover {
    transform: translateY(-2px);
}

/* 用户协议 */
.form-agreement {
    margin-bottom: 20px;
    font-size: 14px;
}

.form-agreement a {
    color: #c00;
    text-decoration: none;
}

.form-agreement a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-box {
        grid-template-columns: 1fr;
    }

    .brand-side {
        display: none;
    }

    .form-side {
        padding: 30px 20px;
    }
} 