With the verb "Sum" (esse), there is no accusative, or anything, it's always the nominative case that applies.
It's an exception. (called a "copula" in linguistics).
Never use the accusative with a sentence like "you are a girl",
but use it in a sentence like "you have a girl.
Here girl has to be put in the accusative case.