Your description of the parameters that you have to work with is a bit inconsistent and missing some important information, but I think that the necessary bits can be teased out of it.
First of all, you haven’t described the orientation of the rectangle with respect to the normal. It appears in none of the three illustrations, which show only the plane of the rectangle, either. There is, however, a clue in the third diagram: $(B-A)\times\mathbf n$ is clockwise from $B-A$, so we can guess that $\mathbf n$ points out of the page. I’ll proceed with this assumption.
Secondly, a single diagonal of a rectangle is not enough to specify the rectagle: the other diagonal could be any other diameter of the circle that has the given segment as one of its diameters. In fact, I’ll be using this in the derivation below. Fortunately, it looks like you do know the rectangle’s aspect ratio, which I’ll designate by $\rho$.
We’ll find the two vectors that you need by direct computation. The basic strategy is to find a rotation about the axis with direction $\mathbf n$ through the midpoint of $AB$ that takes $A$ to $C$. The aspect ratio $\rho$ is equal to $\cot\alpha$, where $\alpha=\operatorname{m}{\angle{BAC}}$. $\triangle{AMC}$ is isosceles, therefore $\theta = \operatorname{m}{\angle{AMC}} = \pi-2\alpha$ is the required rotation angle. We don’t really care about this angle’s specific value, though. We really only need its sine and cosine: $$\cos\theta = \cos(\pi-2\alpha) = -\cos{2\alpha} = \sin^2\alpha-\cos^2\alpha = {1-\rho^2\over1+\rho^2}$$ and $$\sin\theta = sin(\pi-2\alpha) = \sin{2\alpha} = 2\cos\alpha\sin\alpha = {2\rho\over1+\rho^2}.$$
Now let $M$ be the midpoint of $AB$ and translate the origin to $M$, so that we have $A'=A-M$ and $B'=B-M$, and normalize $\mathbf n$ if necessary. We want a clockwise rotation, so will be rotating through an angle of $-\theta$. Rodrigues’ rotation formula gives $$\begin{align} C' &= A'\cos\theta - (\mathbf n\times A')\sin\theta +\mathbf n(\mathbf n\cdot A')(1-\cos\theta) \\
&= {1-\rho^2\over1+\rho^2}A' - {2\rho\over1+\rho^2}(\mathbf n\times A') + {2\rho^2(\mathbf n\cdot A')\over1+\rho^2}\mathbf n.\end{align}$$ Finally, your two basis vectors for the grid are $C'-A'$ and $B'-C'$.
Incidentally, this seems like a rather inconvenient way to represent a rectangle. Storing $C-A$ requires no more space than does storing $B$, and $B$ is more easily and efficiently recovered from this data than is $C$.
Aspect_ratiois not one of the givens listed in your first paragraph. Is it indeed one of the pieces of information that you’re given? – amd Jul 15 '19 at 17:52