* {
    margin: 0;
    padding: 0;
    font-family: "Poppins", sans-serif;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #470047, #800080);
}

.container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 100px;
}

.container h1 {
    color: #fff;
    font-size: 50px;
}

.container h1 span {
    color: coral;
}

.container h2 {
    color: #fff;
    font-weight: 500;
    margin-top: 5px;
}

.buttons button {
    border: 0;
    outline: 0;
    width: 120px;
    height: 40px;
    margin: 20px 0;
    font-weight: 500;
    cursor: pointer;
    border-radius: 4px;
}

#toast-box {
    position: absolute;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    overflow: hidden;
    padding: 20px;
}

.toast {
    position: relative;
    width: 400px;
    height: 80px;
    background: #fff;
    font-weight: 500;
    margin: 15px 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    transform: translateX(100%);
    animation: slide-in 0.5s ease-out forwards;
}

@keyframes slide-in {
    100% {
        transform: translateX(0);
    }
}

.toast i {
    margin: 0 20px;
    font-size: 30px;
    color: green;
}

.toast.error i {
    color: red;
}

.toast.invalid i {
    color: orange;
}

.toast::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 5px;
    background: green;
    animation: to-left 5s linear forwards;
}

@keyframes to-left {
    100% {
        width: 0;
    }
}

.toast.error::after {
    background-color: red;
}

.toast.invalid::after {
    background-color: orange;
}