The magnetic filed has also the solution
$$\vec{B}(z,t) = \vec{B}_0 \, e^{i(kz- \omega t)}$$
with
$$\vec\nabla\cdot \vec E=0\quad ,
\vec\nabla\cdot \vec B=0\quad\Rightarrow\\
\vec k\cdot\vec E_0=0\quad,\vec k\cdot\vec B_0=0$$
thus $~\vec E_0\perp\vec k~,\vec B_0\perp\vec k$
with
$$\frac{1}{c^2}\vec E^T\,\left(\vec\nabla\times \vec E+\frac{\partial \vec B}{\partial t}\right)-
\vec B^T\,\left(\vec\nabla\times \vec B-\frac{1}{c^2}\frac{\partial \vec E}{\partial t}\right)=0\tag 1$$
you obtain
$$~\vec E_0\cdot\vec B_0=0$$
Maxwell equations
$$ \vec\nabla\times\vec E+\frac{\partial\vec B}{\partial t}=0\\
\vec\nabla\times\vec B-\frac{1}{c2}\frac{\partial\vec E}{\partial t}=0$$
Equation (1)
$$\frac{1}{c^2}\vec E^T\,\left(\vec\nabla\times \vec E+\frac{\partial \vec B}{\partial t}\right)-
\vec B^T\,\left(\vec\nabla\times \vec B-\frac{1}{c^2}\frac{\partial \vec E}{\partial t}\right)=0$$
$$-\frac{2\,i\,\rm e^{2\,i\,(k\,z-\omega\,t)}}{c^2}\vec E_0\cdot\vec B_0=0$$