html, body, main {
    width: 100%;
    height: 100%;
    margin: 0;
}

a {
    text-decoration: none;
    color: rgba(0, 0, 0, 0.6);
}

img {
    max-width: 100%;
}

.side-image-section {
    display: none;
}

.login-form-section {
    height: 100%;
}

article {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: auto;
}

#ec-colored-logo {
    width: 5rem;
}

article > p:nth-child(2) {
    font-size: 30px;
    font-weight: bold;
    font-family: "Cabin";
    color: #252525;
}

article > p:nth-child(3) {
    text-align: center;
    font-size: 13px;
    font-family: "Roboto";
    color: rgba(0, 0, 0, 0.6);
}

form {
    min-width: 300px;
    max-width: 350px;
    width: 80%;
    margin-top: 2rem;
}

input {
    box-sizing: border-box;
    width: 100%;
    height: 3rem;
    border: 1px solid #D9D9D9;
    padding-left: 3rem;
    border-radius: 5px;
}

input::placeholder {
    font-family: "Roboto";
    font-weight: 100;
}

input[type=submit] {
    font-family: "Roboto";
    background-color: #25938A;
    border: 1px solid #25938A;
    padding: 0;
    cursor: pointer;
    color: white;
    font-size: 14px;
}

input[type=submit]:hover {
    transform: scaleY(1.03) scaleX(1.03);
    transition-property: transform;
    transition-duration: 0.1s;
}

.fields-container {
    width: 130%;
    margin-left: -40px;
}

.field-container {
    width: 100%;
    margin-bottom: 1rem;
    position: relative;
}

.field-container img:nth-child(3) {
    position: absolute;
    left: 0.8rem;
    top: 1rem;
    width: 1rem;
}

.field-container .toggle-password-visibility {
    position: absolute;
    right: 0.8rem;
    top: 1rem;
    width: 1rem;
    cursor: pointer;
}

.field-container .hide-password {
    display: none;
}

.forgot-password {
    text-align: right;
    font-family: "Roboto";
    font-weight: var(--regular);
    color: rgba(0, 0, 0, 0.6);
    font-size: 15px;
}

footer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    font-family: "Roboto";
    font-weight: var(--light);
    font-size: 12px;
    margin: 0 1rem;
    width: 75%;
    margin-left: auto;
    margin-right: auto;
}
 footer a {
     color: black;
 }

footer p:first-child {
    margin-right: 4rem;
}

.login-form-section {
    height: 100%;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

.toast {
    position: fixed;
    right: 0;
    border: 1px solid #2BACA1;
    padding: 10px;
    margin-right: 1rem;
    color: #2BACA1;
    background-color: white;
    border-radius: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index: 1;

    transform: translateX(110%);
    transition-property: transform;
    transition-duration: 0.8s;
}

.toast svg {
    width: 30px;
    height: 30px;
    margin-left: 10px;
    cursor: pointer;
}

.toast svg path {
    fill: #2BACA1;
}

.toast.active {
    transform: translateX(0);
}

.dark-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: black;
    opacity: 0;
    z-index: -1;
    margin: 0;
    transition-property: opacity, z-index;
    transition-delay: 0s, 1s;
    transition-duration: 1s, 0s;
}

.dark-overlay.active {
    z-index: 2;
    opacity: 0.5;
    transition-delay: 0s, 0s;
}

.modal {
    font-family: "Roboto";
    position: fixed;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 400px;
    height: 300px;
    top: 15%;
    left: 40%;
    background-color: white;
    border-radius: 10px;
    z-index: -1;
    display: none;
    opacity: 0;
    transition-property: opacity;
    padding: 1rem;
}

.modal.active {
    display: flex;
    opacity: 1;
    z-index: 4;
}

.modal h2 {
    margin-top: 0;
}

.modal input[type="email"] {
    padding-left: 1rem;
}

.modal input[type="submit"] {
    margin-top: 1rem;
}

@media (min-width: 1000px) {    
    main {
        display: flex;
        flex-direction: row;
        margin: 0;
    }
    
    #ec-white-logo {
        position: absolute;
        margin-top: 100px;
        width: 80px;
        z-index: 2;
    }
    
    #motto {
        bottom: 30%;
        font-size: 25px;
        color: white;
        font-family: "Cabin";
        position: absolute;
        z-index: 2;
    }

    .side-image-section {
        flex-basis: 58%;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .carousel {
        width: 100%;
        height: 100%;
        position: relative;
        overflow: hidden;
    }

    @keyframes fadeOut {
        0% {
            opacity: 1;
        }

        100% {
            opacity: 0;
        }
    }

    @keyframes fadeIn {
        0% {
            opacity: 0;
        }

        100% {
            opacity: 1;
        }
    }

    .fade-out {
        animation-name: fadeOut;
        animation-duration: 3s;
    }

    .fade-in {
        animation-name: fadeIn;
        animation-duration: 3s;
    }
    
    .carousel-item {
        width: 100%;
        height: 100%;
        position: absolute;
        object-fit: cover;
        opacity: 0;
    }

    .carousel-item.current {
        opacity: 1;
    }
    
    .carousel-footer {
        position: absolute;
        bottom: 1rem;
        display: flex;
        justify-content: space-between;
        width: 100%;
    }
    
    .carousel-cardinality {
        color: white;
        margin-left: 1rem;
        z-index: 2;
    }
    
    .carousel-cardinality span:first-child {
        font-size: 14px;
        font-family: "Roboto";
        font-weight: 100;
    }
    
    .carousel-cardinality span:nth-child(2) {
        font-size: 20px;
    }
    
    .carousel-footer img {
        margin-right: 1rem;
        cursor: pointer;
        z-index: 2;
    }
    
    .overlay {
        width: 100%;
        height: 100%;
        position: absolute;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1;
    }
    
    
    /* Left-Side */
    .valid-input {
        border-color:  #25938A;
    }
    
    .invalid-input {
        border-color: #FF0000;
    }

    .login-form-section {
        flex-basis: 42%;
    }

    footer p:first-child {
        padding-left: 1rem;
    }
}
