It's probably unfair, but it's very likely not illegal. Unless you had an actual written employment contract which guaranteed your job and/or limited the reasons for which you could be fired, you were an employee at will. An employee at will may be terminated at any time, for any reason, even on orientation day and even for the wrong shirt.