The sum of squares of all the real solutions of the equation \( \log_{(x+1)}(2x^2+5x+3)=4-\log_{(2x+3)}(x^2+2x+1) \) is equal to \( \_\_\_\_\_ \).