Can someone help me with this problem?

enter image source here

This is the information given
-ABCD is a square the length of the sides is 1
-M is the center of AB.
-The circles have center M and a radius equal to MC
-F is the right intersection between the circle s and line l through A and B
-G is the intersection of line m through --C and D and line n that passes through point F and is perpendicular to l.

a) We insert a coordinate system with origin in the point M and with x axis along l. Find the MA and MC vectors. Find an exact value for cos (angle AMC).

I have found both the vectors, but can not find cos (angle AMC)