* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background: #fafafa;
    color: hsl(0, 0%, 15%);
}

.container {
    display: grid;
    height: 100vh;
    width: 100%;
    grid-template-columns: 1fr 500px;
}

.banner {
    position: relative;
    border: 30px solid #fafafa;
    border-radius: 4rem;
    overflow: hidden;

    &::after {
        content: "";
        position: absolute;
        top: 1.5rem;
        left: 1.5rem;
        width: 4rem;
        height: 4rem;
        border-radius: 50%;
        background: var(--association-logo-bg, #fff) #fff;
        background-position: top left;
        backdrop-filter: blur(500px);
        scale: 50;
        clip-path: circle(.05rem);
    }

    .bg {
        min-height: 100%;
        max-width: 900px;
        object-fit: cover;
        object-position: bottom;
        aspect-ratio: 4/3;
    }

    .association-logo {
        position: absolute;
        object-fit: contain;
        object-position: center;
        top: 1.5rem;
        left: 1.5rem;
        width: 4rem;
        height: 4rem;
        border-radius: 50%;
        z-index: 1;
    }

    .legend-container {
        position: absolute;
        bottom: 1.5rem;
        left: 1.5rem;
        width: 60%;
        padding: 2rem;
        background: rgba(0, 0, 0, 0.7);
        color: #fff;
        border-radius: 1rem;
        font-size: 1.2rem;

        .glide__slides {
            transition: none !important;
            display: flex;
            align-items: center;
        }

        .glide__slides li {
            opacity: 0;
            transition: all 700ms ease-in-out;
        }

        li.glide__slide--active {
            opacity: 1;
        }
    }
}

.login {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;

    .logo-app {
        height: 4rem;
    }

    form {
        width: 100%;
        padding: 2rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
        accent-color: hsl(198, 100%, 19%);

        &.has-errors {
            gap: 1.5rem;

            .input[data-error]:not([data-error=""]) {
                &::after {
                    content: attr(data-error);
                    width: calc(100% - .4rem);
                    background-color: hsl(0, 75%, 50%);
                    border-bottom-left-radius: .25rem;
                    border-bottom-right-radius: .25rem;
                    color: #fff;
                    font-size: .8rem;
                    position: absolute;
                    top: calc(100% - 2px);
                    left: 0;
                    padding: .2rem;
                    z-index: -1;
                    text-align: left;
                }

                input {
                    border: 1px solid hsl(0, 100%, 50%);
                }
            }
        }
    }

    .input {
        position: relative;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -ms-flex-align: stretch;
        align-items: stretch;
        flex-direction: column;
        width: 100%;
        gap: .25rem;

        input {
            padding: .7rem;
            border: none;
            background-color: hsl(0, 0%, 92%);
            border-radius: .25rem;
            font-size: 1rem;
            width: 100%;
            outline: none;
            transition: all 300ms ease-in-out;

            &:focus {
                box-shadow: rgb(255, 255, 255) 0px 0px 0px 0px inset, hsl(198, 100%, 19%) 0px 0px 0px 1px inset, rgba(0, 0, 0, 0) 0px 0px 0px 0px;
            }
        }

        .show-password {
            position: absolute;
            right: .5rem;
            top: 50%;
            transform: translateY(-50%);
            border: none;
            background: none;
            cursor: pointer;
            padding: .5rem;
            border-radius: .25rem;

            &:hover {
                background-color: hsl(0, 0%, 90%);
            }
        }
    }

    button[type="submit"] {
        padding: .7rem;
        border: none;
        background-color: hsl(198, 100%, 19%);
        border-radius: .25rem;
        font-size: 1.1rem;
        width: 100%;
        outline: none;
        transition: all 300ms ease-in-out;
        cursor: pointer;
        color: #fff;
        font-weight: 600;

        &:hover {
            background-color: hsl(198, 100%, 13%);
        }
    }

    hr {
        width: calc(100% - 6rem);
        border: none;
        height: 1px;
        background-color: hsl(0, 0%, 90%);
    }

    a {
        color: hsl(198, 100%, 19%);
        text-decoration: none;
        font-size: 1rem;
        transition: all 300ms ease-in-out;

        &:hover, &:visited {
            color: hsl(198, 100%, 10%);
        }
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }

    .banner {
        display: none;
    }
}

@media (min-width: 1536px) {
    .container {
        grid-template-columns: 1fr 600px;
    }

    .banner {
        .bg {
            max-width: 1350px;
        }

        &::after {
            width: 6rem;
            height: 6rem;
            scale: 50;
            backdrop-filter: blur(500px);
            clip-path: circle(.065rem);
        }

        .association-logo {
            width: 6rem;
            height: 6rem;
        }
    }
}

@supports (-webkit-font-smoothing: antialiased) {
    .banner::after {
        backdrop-filter: none;
    }
}