#toastBox {
    position: absolute;
    /* bottom: 3rem; */
    right: 0.5rem;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    overflow: hidden;
}

.toast {
    width: 350px;
    font-weight: 500;
    margin: 15px 0;
    border-radius: 3px;
    display: flex;
    align-items: center;
    position: relative;
    transform: translateX(100%);
    animation: moveleft 0.5s linear forwards;
    z-index: 99;
    padding: 0.8rem;
}

.toast:not(.show) {
    display: flex;
}

@keyframes moveleft {
    100% {
        transform: translateX(0);
    }
}

.toast i {
    margin: 0 10px;
    font-size: 28px;
    color: #1a78f1;
}

.toast.error i {
    color: #d46363;
}

.toast.invalid i {
    color: #d7a306;
}

.toast.invalid.info i {
    color: #285EB8;
}

.toast::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #1a78f1;
    animation: anim 6200ms linear forwards;
}

@keyframes anim {
    100% {
        width: 0;
    }
}

.toast.error::after {
    background: #d46363;
}

.toast.invalid::after {
    background: #d7a306;
}

.toast.invalid.info::after {
    background: #285EB8;
}
