@import url(./header.css);
@import url(./footer.css);
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url(./img/Sprinkle.svg);
}

main {
    margin: 150px 0 100px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

form {
    min-width: 400px;
    margin-top: 50px;
    border-radius: 20px;
    box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.75);
    background-color: white;
    padding: 50px 60px;
    font-size: 0.6em;
}

h3 {
    margin-top: 20px;
}

input {
    border: none;
    padding: 10px;
    width: 100%;
    resize: none;
    outline: none;
}

.input-field {
    position: relative;
    border-bottom: gray 1px solid;
}

.input-field.success {
    border-color: #2ecc71;
}

.input-field.error {
    border-color: #e74c3c;
}

.input-field i {
    position: absolute;
    top: 55%;
    visibility: hidden;
}

.input-field.success i.fa-check-circle {
    color: #2ecc71;
    visibility: visible;
}

.input-field.error i.fa-exclamation {
    color: #e74c3c;
    visibility: visible;
}

.input-field small {
    color: #e74c3c;
    position: absolute;
    bottom: -15px;
    left: 0;
    visibility: hidden;
}

.input-field.error small {
    visibility: visible;
    font-size: 12px;
}

button {
    margin-top: 20px;
    color: #ffc107;
    margin-top: 20px;
    padding: 10px;
    background-color: white;
    border: 2px #ffc107 solid;
    border-radius: 25px;
    font-weight: 900;
    cursor: pointer;
    width: 100px;
}

button:hover {
    color: white;
    background-color: #ffc107;
}


/* alerts */

.alert {
    background: #ff9b9b;
    padding: 20px 40px;
    min-width: 420px;
    position: fixed;
    right: 0;
    top: 100px;
    border-radius: 4px;
    border-left: 8px solid #ff0202;
    overflow: hidden;
    opacity: 1;
    pointer-events: none;
}

.alert.showAlert {
    opacity: 1;
    pointer-events: auto;
}

.alert.show {
    animation: show_slide 1s ease forwards;
}

@keyframes show_slide {
    0% {
        transform: translateX(100%);
    }
    40% {
        transform: translateX(-10%);
    }
    80% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-10px);
    }
}

.alert.hide {
    animation: hide_slide 1s ease forwards;
}

@keyframes hide_slide {
    0% {
        transform: translateX(-10px);
    }
    40% {
        transform: translateX(0%);
    }
    80% {
        transform: translateX(-10%);
    }
    100% {
        transform: translateX(100%);
    }
}

.alert .fa-exclamation-circle {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #ce0000;
    font-size: 30px;
}

.alert .msg {
    padding: 0 20px;
    font-size: 18px;
    color: #ce0000;
}

.alert .close-btn {
    position: absolute;
    right: 0px;
    top: 50%;
    transform: translateY(-50%);
    background: #ff8080;
    padding: 20px 18px;
    cursor: pointer;
}

.alert .close-btn:hover {
    background: #ff6666;
}

.alert .close-btn .fas {
    color: #ce0000;
    font-size: 22px;
    line-height: 40px;
}

@media (max-width: 425px) {
    form {
        min-width: 100%;
    }
}