How to construct a square ABCD given point C, circle and a line so that point A lies on the line and point D lies on the circle?

How to construct a square ABCD given point C, circle and a line so that point A lies on the line and point D lies on the circle?

Copyright © 2021 JogjaFile Inc.
Suppose that the problem is solvable.
Rotate a line around $C$ for $45^{\circ}$ and then dilate it with factor ${1\over \sqrt{2}}$. Intersection point between this new line and a circle is a point $D$ (on picture)...
the square construction Blue(solid) is what is given; the green is the solution.
How to perform this spiral similarity in practice? If point $X$ is on a line and let $XZCY$ is a (positive oriented) square with diagonal $XC$, then $X$ maps to $Y$. So take two pointy $X_1$ and $X_2$ on a line and then $Y_1Y_2$ is this new line.