* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Josefin Sans", sans-serif;
}

body {
    min-height: 100dvh;
    background-image: linear-gradient(150deg, #FFF 0%, #FFF4F4 84.51%);
}

header {
    padding: 2rem 0 0 2rem;
}

.logo {
    width: 73px;
    height: 19px;
}

.hero-image-wrapper {
    width: 100%;
    height: auto;
    padding: 2rem 0;
}

.image-hero {
    width: 100%;
    height: auto;
    max-height: 637px;
}

main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.98rem;
}

h1,
h2 {
    text-align: center;
    color: #CE9898;
    font-size: 2.5rem;
    font-style: normal;
    font-weight: 300;
    line-height: 100%;
    letter-spacing: 0.625rem;
    height: 2.625rem;
    align-self: stretch;
}

h2 {
    color: #423A3A;
    font-weight: 600;
    height: 5.25rem;
}

main p {
    color: #CE9898;
    text-align: center;
    font-family: "Josefin Sans";
    font-size: 0.875rem;
    font-style: normal;
    font-weight: 400;
    line-height: 155%;
    padding: 1rem 0 2rem 0;
    align-self: stretch;
}

.form-container {
    position: relative;
    width: 100%;
    max-width: 330px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

input {
    width: 100%;
    padding: 16px 90px 16px 24px;
    border-radius: 50px;
    border: 1px solid #CE9898;
}

input::placeholder {
    color: #CE9898;
    opacity: 0.5;
}

button {
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 72px;
    height: 48px;
    border: none;
    border-radius: 50px;
    background: linear-gradient(135deg, #F8BFBF, #EE8B8B);
    box-shadow: 0 10px 20px rgba(198, 110, 110, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background: linear-gradient(135deg, #F8BFBF, #F8BFBF);
}

.erro {
    background-image: url(./assets/icon-error.svg);
    background-repeat: no-repeat;
    background-position: right 70px center;
}

.mensagem-erro {
    display: none;
    color: #F96464;
    font-size: 0.8125rem;
    font-style: normal;
    font-weight: 400;
    line-height: 215%;
    margin-top: .5rem;
    padding: 0 2rem;
    text-align: left;
}

.arrow {
    width: 14px;
}

footer {
    padding: 2rem 0 .3rem 0;
    color: #423A3A;
    text-align: center;
}

footer a {
    text-decoration: none;
    cursor: pointer;
}

@media screen and (min-width: 768px) and (max-width: 1023px) {

    header {
        padding-left: 4rem;
    }

    .logo {
        width: 100px;
        height: 25px;
    }

    main {
        padding: 0 10.09rem;
    }

    h1 {
        font-size: 4rem;
        letter-spacing: 1rem;
        height: 4rem;
    }

    h2 {
        font-size: 4rem;
        height: 8rem;
        letter-spacing: 1rem;
    }

    main p {
        font-size: 1rem;
        line-height: 215%;
    }

    .form-container {
        max-width: 550px;
    }

    button {
        width: 90px;
    }

    .erro {
        background-position: right 100px center;
    }
}

@media screen and (min-width: 1024px) {
    body {
        background-image: url(./assets/bg-pattern-desktop.svg);
        background-size: 60%;
        background-position: left top;
    }

    .wrapper {
        display: grid;
        grid-template-columns: 60% 40%;
        grid-template-rows: auto auto auto;
    }

    header {
        grid-column: 1 / 2;
        grid-row: 1 / 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin-left: 10rem;
        margin-right: 11rem;
        padding: 0;
    }

    .logo {
        width: 150px;
        height: 30px;
    }

    main {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
        margin-left: 10rem;
        margin-right: 11rem;
        padding: 0;
        justify-content: center;
    }

    h1 {
        font-size: 4rem;
        letter-spacing: 1rem;
        height: 4rem;
        text-align: left;
    }

    h2 {
        font-size: 4rem;
        height: 8rem;
        letter-spacing: 1rem;
        text-align: left;
    }

    main p {
        text-align: left;
        font-size: 1rem;
        line-height: 215%;
    }

    footer {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
        margin-left: 10rem;
        margin-right: 11rem;
        padding-bottom: 0;
        text-align: left;
    }

    .hero-image-wrapper {
        padding: 0;
        grid-column: 2 / 3;
        grid-row: 1 / 4;
    }

    .form-container {
        max-width: 550px;
    }

    button {
        width: 90px;
    }

    .erro {
        background-position: right 105px center;
    }

}