/* 登录页面样式 */
.login-section {
    padding: 80px 0;
    background-color: #f8f9fa;
    min-height: calc(100vh - 80px - 300px); /* 减去头部和底部的高度 */
    display: flex;
    align-items: center;
}

.login-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-header {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.tab-switcher {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 600;
    color: #6c757d;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #0056b3;
}

.tab-btn.active {
    color: #0056b3;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #0056b3;
    border-radius: 3px 3px 0 0;
}

.login-form-container {
    padding: 30px;
    display: none;
}

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

.login-form {
    width: 100%;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #495057;
}

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

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

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

.input-with-icon input {
    width: 100%;
    padding: 12px 15px 12px 45px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-with-icon input:focus {
    border-color: #0056b3;
    box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.1);
    outline: none;
}

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

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

.remember-me input, .agree-terms input {
    margin-right: 8px;
}

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

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

.btn-submit {
    width: 100%;
    padding: 12px;
    background-color: #0056b3;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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

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

.social-login p {
    color: #6c757d;
    margin-bottom: 15px;
    position: relative;
}

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

.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: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.agree-terms {
    width: 100%;
}

.agree-terms label {
    font-size: 14px;
    margin-bottom: 0;
}

.agree-terms a {
    color: #0056b3;
    text-decoration: none;
}

.agree-terms a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 576px) {
    .login-container {
        margin: 0 15px;
    }
    
    .login-form-container {
        padding: 20px;
    }
    
    .tab-btn {
        font-size: 16px;
        padding: 8px 15px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .social-login p::before,
    .social-login p::after {
        width: 20%;
    }
} 