/* 登录页面主容器 */
.login-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4efe9 100%);
    min-height: 70vh;
}

.login-section .container {
    display: flex;
    gap: 30px;
    max-width: 1000px;
}

/* 登录表单容器 */
.login-container {
    flex: 3;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* 登录侧边栏 */
.login-sidebar {
    flex: 2;
    background: linear-gradient(135deg, var(--primary-color) 0%, #60a547 100%);
    border-radius: var(--border-radius);
    color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-sidebar::before {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-sidebar::after {
    content: '';
    position: absolute;
    top: -30px;
    left: -30px;
    width: 120px;
    height: 120px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.sidebar-content {
    padding: 40px;
    position: relative;
    z-index: 1;
}

.sidebar-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.sidebar-content p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.benefits {
    margin-bottom: 30px;
}

.benefits li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.benefits li i {
    margin-right: 10px;
    font-size: 18px;
}

.qr-login {
    text-align: center;
    margin-top: 30px;
}

.qr-login p {
    margin-bottom: 15px;
}

.qr-login img {
    width: 120px;
    height: 120px;
    padding: 10px;
    background-color: var(--white);
    border-radius: var(--border-radius);
}

/* 登录选项卡 */
.login-tabs {
    display: flex;
    background-color: #f5f5f5;
}

.login-tabs .tab-btn {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: none;
    border: none;
    color: var(--light-text);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.login-tabs .tab-btn.active {
    color: var(--primary-color);
    background-color: var(--white);
    position: relative;
}

.login-tabs .tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* 表单容器 */
.forms-container {
    padding: 30px;
    position: relative;
}

.form {
    display: none;
}

.form.active {
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

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

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

.input-with-icon input {
    padding-left: 40px;
}

.input-with-icon .toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #aaa;
}

.input-with-action {
    display: flex;
    gap: 10px;
}

.input-with-action input {
    flex: 1;
}

.verify-btn {
    padding: 0 15px;
    background-color: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: var(--border-radius);
    color: var(--primary-color);
    font-size: 14px;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.verify-btn:hover {
    background-color: #f0f9ea;
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="email"] {
    width: 100%;
    padding: 12px 40px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 14px;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(123, 195, 74, 0.2);
    outline: none;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
}

.forgot-password {
    color: var(--primary-color);
    font-size: 14px;
}

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

.full-width {
    width: 100%;
    padding: 12px;
}

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

.social-login p {
    margin-bottom: 15px;
    color: var(--light-text);
    position: relative;
}

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

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

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

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

.social-login .social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--white);
    font-size: 18px;
    transition: var(--transition);
}

.social-login .social-icons .wechat {
    background-color: #09b83e;
}

.social-login .social-icons .qq {
    background-color: #12b7f5;
}

.social-login .social-icons .weibo {
    background-color: #e6162d;
}

.social-login .social-icons a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

/* 协议同意 */
.agreement {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.agreement input {
    margin-right: 8px;
}

.agreement a {
    color: var(--primary-color);
}

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

/* 响应式样式 */
@media (max-width: 992px) {
    .login-section .container {
        flex-direction: column;
    }
    
    .login-sidebar {
        order: -1;
    }
    
    .sidebar-content {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .login-section {
        padding: 40px 0;
    }
    
    .forms-container {
        padding: 20px;
    }
    
    .sidebar-content h2 {
        font-size: 20px;
    }
    
    .social-login p::before,
    .social-login p::after {
        width: 60px;
    }
}

@media (max-width: 576px) {
    .social-login p::before,
    .social-login p::after {
        display: none;
    }
    
    .login-tabs .tab-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .input-with-action {
        flex-direction: column;
    }
    
    .verify-btn {
        height: 40px;
    }
} 