I am looking for deriving the pdf of $Z$ where
$Z= (\sum\limits_{i=1}^N a_i X_i +Y_1)^2 + (\sum\limits_{i=1}^N b_i X_i +Y_2)^2$,
where $X_i$ and $Y_i$ are independent, zero mean Gaussian random variables and $a_i$ and $b_i$ are real numbers. Does this follow any standard distribution ? How to find PDF of $Z$ ?