*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body{
    width: clamp(100%, 1440px);
    background-color: hsl(234, 29%, 20%);
}

h1{
    font-size: 3.7rem;
    font-weight: 700;
    color: hsl(235, 18%, 26%);
}

p{
    font-size: 1rem;
    font-weight: 400;
    color: hsl(235, 18%, 26%);
}

.mobile-img{
    display: none;
}

.sign-up, .success{
    width: 70%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-inline: auto;
}

.container, .container2{
    display: flex;
    gap: 2em;
    justify-content: center;
    background-color: hsl(0, 0%, 100%);
    padding: 2rem;
    border-radius: 18px;
}

.container > *:nth-child(1){
    flex: 1 1 60%;
}

.container > *:nth-child(2){
    flex: 1 1 40%;
}


/* Signup form */

 .left{
    padding-left: 2rem;
}

.left h1{
    margin: 4rem 0 2rem;
}

.left p{
    margin-bottom: 1.5rem;
}

.list div{
    display: flex;
    align-items: center;
    gap: 0.8em;
    font-weight: 400;
    font-size: 1rem;
    color: hsl(235, 18%, 26%);
    margin-bottom: 0.8rem;
}

.list > *:nth-child(3){
    margin-bottom: 4rem;
}

.list img{
    width: 5%;
}


/* form styles */

form{
    position: relative;
    width: 90%;
}

form input, button{
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
}

form input{
    border: 1px solid hsl(231, 7%, 60%);
    margin-bottom: 1.5rem;
    color: hsl(235, 18%, 26%);
    padding-left: 1.5rem;
}

form input:focus{
    outline: none;
}

form input::placeholder{
    color: hsl(231, 7%, 60%);
}

form input.error{
    border-color: hsl(4, 100%, 67%);
    background-color: hsl(4, 100%, 87%);
    color: hsl(4, 100%, 67%);
}


form label, #message{
    font-size: 0.8rem;
    font-weight: 700;
    color: hsl(235, 18%, 26%);
    position: absolute;
    top: -25px;
}

#message{
    right: 0;
    color: hsl(4, 100%, 67%);
    /* visibility: hidden; */
}

form button{
    background-color: hsl(234, 29%, 20%);
    color: hsl(0, 0%, 100%);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
}

form button:hover{
    background: linear-gradient(to right, hsl(4, 100%, 67%), hsl(4, 100%, 73%));
    box-shadow: 0px 5px 15px rgba(255, 98, 87, 0.5);
}



/* Success message */

.success{
    display: none;
}

.container2{
    display: block;
    width: 50%;
    padding: 3rem;
    border-radius: 35px;
}

.container2 img{
    margin-bottom: 1.5rem;
}

.container2 h1{
    line-height: 4rem;
    margin-bottom: 1.5rem;
}

.container2 a{
    color: hsl(235, 18%, 26%);
    font-weight: 700;
    text-decoration: none;
}

.container2 a:hover{
    background-image: linear-gradient(to right, hsl(4, 100%, 67%), hsl(4, 100%, 73%));
    background-clip: text;
    -webkit-background-clip: text;
    -moz-background-clip: text;
    -ms-background-clip: text;
    -o-background-clip: text;
    color: transparent;
}

.container2 p{
    line-height: 1.3rem;
    color: hsl(235, 18%, 26%);
    margin-bottom: 2rem;
}

.container2 button{
    background-color: hsl(234, 29%, 20%);
    color: hsl(0, 0%, 100%);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 1rem;
}

.container2 button:hover{
    background: linear-gradient(to right, hsl(4, 100%, 67%), hsl(4, 100%, 73%));
}



/* mediaquerry */

@media screen and (max-width: 1080px) {
    .sign-up{
        height: auto;
    }

    .container{
        flex-direction: column-reverse;
        height: auto;
        margin: 0;
        padding: 0;
        border-radius: 0;
        padding-bottom: 4rem;
    }

    .right{
        align-self: center;
    }

    .desktop-img{
        display: none;
    }

    .mobile-img{
        display: block;
    }
    
    .container h1{
        font-size: 2.3rem;
        margin: 1.5rem 0;
    }

    .container p{
        font-size: 0.925rem;
    }

    .list div{
        font-size: 0.925rem;
    }


    /* Success message */
    .success{
        width: 100%;
        height: initial;
        display: none;
    }

    .container2{
        display: block;
        width: 100%;
        height: auto;
        border-radius: 0;
        padding: 10rem 2rem;
    }

    .container2 img{
        width: 65px;
        margin-bottom: 1rem;
    }

    .container2 h1{
        font-size: 2.3rem;
        margin: 1.5rem 0;
        line-height: 2.5rem;
    }

    .attribution {
        margin-top: 2rem;
    }

}

