/* 登录页面主样式 */
.login-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 登录区域容器 */
.login-container {
    display: flex;
    gap: 40px;
    margin: 40px 0;
    min-height: 600px;
}

/* 登录/注册盒子 */
.login-box {
    flex: 1;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* 切换标签 */
.tabs {
    display: flex;
    border-bottom: 1px solid #eee;
}

.tab {
    flex: 1;
    padding: 15px 0;
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    color: #00cc44;
    border-bottom: 2px solid #00cc44;
}

/* 表单容器 */
.form-container {
    padding: 30px;
    display: none;
}

.form-container.active {
    display: block;
}

.welcome-text {
    text-align: center;
    margin-bottom: 30px;
}

.welcome-text h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
}

.welcome-text p {
    font-size: 14px;
    color: #666;
}

/* 表单元素 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px;
}

.input-with-icon {
    position: relative;
}

.input-with-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
}

.input-with-icon .toggle-password {
    left: auto;
    right: 15px;
    cursor: pointer;
}

.input-with-icon input {
    width: 100%;
    padding: 12px 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.input-with-icon input:focus {
    border-color: #00cc44;
    outline: none;
}

/* 验证码输入框与按钮 */
.input-with-btn {
    display: flex;
    gap: 10px;
}

.input-with-btn input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.input-with-btn input:focus {
    border-color: #00cc44;
    outline: none;
}

.btn-verification {
    width: 120px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-verification:hover {
    background-color: #e9e9e9;
}

.btn-verification.disabled {
    color: #aaa;
    cursor: not-allowed;
}

/* 记住我和忘记密码 */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.forgot-password {
    font-size: 14px;
    color: #00cc44;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* 提交按钮 */
.btn-submit {
    width: 100%;
    padding: 12px 0;
    background-color: #00cc44;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #00b33c;
}

/* 社交登录 */
.social-login {
    margin-top: 30px;
    text-align: center;
}

.social-login p {
    position: relative;
    margin-bottom: 20px;
    font-size: 14px;
    color: #999;
}

.social-login p::before,
.social-login p::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 30%;
    height: 1px;
    background-color: #eee;
}

.social-login p::before {
    left: 0;
}

.social-login p::after {
    right: 0;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

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

.social-icon:hover {
    transform: translateY(-3px);
}

.social-icon.wechat {
    background-color: #07C160;
}

.social-icon.qq {
    background-color: #12B7F5;
}

.social-icon.weibo {
    background-color: #E6162D;
}

/* 协议同意选项 */
.form-agreement {
    margin-bottom: 25px;
}

.agreement {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
}

.agreement a {
    color: #00cc44;
    text-decoration: none;
}

.agreement a:hover {
    text-decoration: underline;
}

/* 右侧广告banner */
.login-banner {
    width: 400px;
    background: linear-gradient(135deg, #00cc44 0%, #009933 100%);
    border-radius: 10px;
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-banner-content {
    padding: 40px;
}

.login-banner-content h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.benefits {
    list-style: none;
    margin-bottom: 40px;
}

.benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.benefits li i {
    width: 24px;
    text-align: center;
}

.login-banner-image {
    max-width: 80%;
    margin: 0 auto;
    display: block;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-banner {
        width: 100%;
    }
    
    .login-banner-content {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
    
    .login-banner-content h2 {
        width: 100%;
    }
    
    .benefits {
        width: 60%;
    }
    
    .login-banner-image {
        width: 30%;
        align-self: center;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .login-banner-content {
        flex-direction: column;
    }
    
    .benefits {
        width: 100%;
    }
    
    .login-banner-image {
        width: 50%;
        margin: 20px auto 0;
    }
}

@media (max-width: 576px) {
    .form-container {
        padding: 20px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .input-with-btn {
        flex-direction: column;
    }
    
    .btn-verification {
        width: 100%;
        padding: 12px 0;
    }
} 