What’s the problem that we’re trying to solve here?
I assume it’s by design that the field is active on signup since someone may click login by mistake but sign up button is usually an informed click and the user knows that he/she wants to create an account that’s why it’s very justified to have the field active.