THE PROBLEM
Let $ABCD$ be a rectangle and $E, F$ the means of the sides $AB$, respectively $AD.$ We know that there is a point $M$ on the segment $AC$ such that $\angle EMF = 60$ and $AC^2 = 4*ME*MF$ . Show that ABCD is square.
My idea
drawing
Okey, so the first thing i thought of is that drawing the heights $MX$ and $MY$ are going to help us.
What about writing the area of traingle $FEM$ as $ME**MF*\sqrt{3}/4$
Idk how the $AC^2 = 4*ME*MF$ ia going to help us.
If we show some congruences of angles and triangles in the rectangle $AXMF$ the problem is solved.

It all boils down to showing that $EMF$ is equilateral. To this aim, let $G$ a point such that $GF \cong EM$, and $\angle GFE \cong \angle EFM$.
Since $2EF \cong AC$, from $AC^2 \cong 4\cdot EM \cdot MF$ you get $EF^2 \cong EM\cdot MF$, i.e. $$EF:ME = MF:EF,$$ which means that $EMF \sim GEF$ (SAS criterion). In particular, $\angle GEF \cong \angle EFM$, since they are opposed to proportional sides. Hence the two triangles are isosceles. Since $\measuredangle EMF = 60^\circ$, we have, in fact, that they are equilateral.
EDIT (Prompted by OP's question in comment)
As a matter of fact, the hypothesis $\measuredangle EMF = 60^\circ$ is unecessary. The other hypothesis alone implies that $EMF$ is isosceles and hence that $AC$ perpendicularly bisects $EF$, which, in turn, yields $AE \cong AF$.