.toastBox{
    position: absolute;
    right: 20px;
    bottom: 50px;
    display: flex;
    flex-direction: column;
    font-size: 16px;
}
.tostsmsg{
    position: relative;
    width: 250px;
    height: 20px;
    background-color: #fff;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.4);
    padding: 12px 20px;
    margin: 2px;
    transform: translateX(100%);
    animation: moveleft 0.3s linear forwards;
}
@keyframes moveleft {
    100%{
        transform: translateX(0);
    }
}
.tostsmsg i{
    color: green;
    padding-right: 6px;
}
.error i {
    color: red;
}
.invalid i{
    color: orange;
}
.tostsmsg::after{
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background-color: green;
    animation: anim 5s linear forwards;
}
@keyframes anim {
    100%{
        width: 0;
    }
}
.tostsmsg.error::after{
    background-color: red;
}
.tostsmsg.invalid::after{
    background-color: orange;
}
