Define two style properties as follows:
<style>
.loginFormInitialStyle{
height:140px;
width:150px;
background-color:blue;
}
.loginFormChangeStyle{
height:500px;
width:150px;
background-color:blue;
}
</style>
Next, utilize ng-class instead of class in the following way:
<div ng-class="loginForm"></div>
Now, create a $scope.loginForm object with two properties - loginFormInitialStyle and loginFormChangeStyle, both set to default values.
$scope.loginForm = {"loginFormInitialStyle":true, loginFormChangeStyle:false}
Lastly, within your on-click function, simply update the values of the loginForm object.
$scope.onClick = function(){
$scope.loginForm = {"loginFormInitialStyle":false, loginFormChangeStyle:true}
}