FP... from outside the realms of KVL and KCL..!
I have attached another circuit diagram with the hope of impressing upon you the close link between Vin, Rin, Rf and Vout and especially the importance of the -input

You are perfectly correct to write A = Rf/Rin. (should be -Rf/Rin...inverting amplifier)
BUT you must be sure that this means the V across Rf = A x the V across Rin.
The -input can be seen as a pivot on a lever. Push Vin down and Vout goes up by a magnified amount (magnification = -Rf/Rin)
The battery or voltage at the + input 'lifts' the pivot (by 2V in my diagram)...
So Vout = -A x (V1 - V2) + V2 ... it is easy to forget to add V2 !
As an example if A = 2 and Vin = +5V then Vout = -2 x (5-2) + 2 = -4V
If Vin = +4V then Vout = -2 x (4-2) +2 = -2V
If Vin = -4V then Vout = -2 x (-4 -2) +2 = +14V (if supply voltage allows)
and so on.
If V2 = 0 ... it usually does ... then you have the straight forward equation:
Vout/Vin = - Rf/Rin The -sign indicates an inverting amplifier.
Hope this does not make life more confusing for you
