@keyframes cardEnter {
    0%, 20%, 40%, 60%, 80%, 100% {
        -webkit-transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
        transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        -webkit-transform: scale3d(0.3, 0.3, 0.3);
        -ms-transform: scale3d(0.3, 0.3, 0.3);
        transform: scale3d(0.3, 0.3, 0.3);
    }
    20% {
        -webkit-transform: scale3d(1.1, 1.1, 1.1);
        -ms-transform: scale3d(1.1, 1.1, 1.1);
        transform: scale3d(1.1, 1.1, 1.1);
    }
    40% {
        -webkit-transform: scale3d(0.9, 0.9, 0.9);
        -ms-transform: scale3d(0.9, 0.9, 0.9);
        transform: scale3d(0.9, 0.9, 0.9);
    }
    60% {
        opacity: 1;
        -webkit-transform: scale3d(1.03, 1.03, 1.03);
        -ms-transform: scale3d(1.03, 1.03, 1.03);
        transform: scale3d(1.03, 1.03, 1.03);
    }
    80% {
        -webkit-transform: scale3d(0.97, 0.97, 0.97);
        -ms-transform: scale3d(0.97, 0.97, 0.97);
        transform: scale3d(0.97, 0.97, 0.97);
    }
    100% {
        opacity: 1;
        -webkit-transform: scale3d(1, 1, 1);
        -ms-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }
}

.login {
    background-color: $login-background;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    
    > div:not(#particles-js):not(.active) {
        opacity: 0;
        height: 0;
        max-width: 350px;
        border-radius: 2px;
        background-color: $login-background;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .19),
        0 6px 6px rgba(0, 0, 0, .23);
        display: none;
    }
    
    #particles-js{
        width: 100%;
        height: 100%;
        position: absolute;
    }
    
    .login-form {
        opacity: 0;
        height: 0;
        max-width: 350px;
        border-radius: 2px;
        background-color: #EBEDF1;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .19),
        0 6px 6px rgba(0, 0, 0, .23);
        display: none;
        
        h1 {
            color: $login-color-title;
            text-align: center;
            margin-top: 10px;
            margin-bottom: -10px;
        }
        
        img	{
            margin-left: 75px;
        }
        
        button {
            margin-bottom: 10px;
        }
    }
    
    .link {
        a {
            color: #A7A7A7;
            transition: all 0.3s ease;
            
            &:hover {
                color: $login-color-link-hover
            }
        }
    }
    
    .active {
        -webkit-animation: cardEnter 0.75s ease-in-out 0.5s;
        animation: cardEnter 0.75s ease-in-out 0.5s;
        -webkit-animation-fill-mode: both;
        animation-fill-mode: both;
        height: auto;
        margin: 0px auto;
        padding: 20px;
        opacity: 1;
        display: block;
        position: relative;
        top: 50px;
    }
}
