
:root{
    /*Primary*/
    --red: hsl(4, 100%, 67%);

    /* Neutral */
    --blue800: hsl(234, 29%, 20%);
    --blue700: hsl(235, 18%, 26%);
    --grey: hsl(0, 0%,58%);
    --white: hsl(0, 0%, 100%);
}

*{
    box-sizing: border-box;
}

@font-face {
    font-family: "Roboto-Bold";
    src: url(assets/fonts/Roboto-Bold.ttf);
}

@font-face {
    font-family: "Roboto-Regular";
    src: url(assets/fonts/Roboto-Regular.ttf);
}

body{
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    background: var(--blue800);
}

.signup-card{
    background-color: var(--white);
    border-radius: 1.5rem;
    padding: 1rem;
    display : flex;
    gap: 2rem;
    max-width: 63rem;
}

.details{
    padding: 2rem;
    place-content: center;
    h1{
        font-size: 3.3rem;
    }
    
    ul li{
        margin: 1.2rem 0;
        font-size: 0.97rem;
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .form{
        margin-top: 2.2rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        
        label{
            font-size: 0.8rem;
            font-weight: 700;
        }
        
        .email-input{
            margin-bottom: 1.5rem;
            padding: 1rem;
            border-radius: 0.56rem;
        }
        
        .email-input:hover{
            outline-color: black;
        }
    }
}

#submit-btn{
    background: var(--blue700);
    padding: 1.3rem;
    border: none;
    border-radius: 0.6rem;
    color: white;
    font-size: 1rem;
}

#submit-btn:hover{
    opacity: 0.8;
    cursor: pointer;
}

#submit-btn:active, #submit-btn:focus{
    background: linear-gradient(to right,  hsla(340, 92%, 47%, 1), hsla(21, 100%, 50%, 1));
}

.intro{
    font-family: "Roboto-Regular", sans-serif;
    font-size: 0.89rem;
}

ul{
    list-style: none;
    padding: 0;
}

li:before{
    content: "";
    flex-shrink: 0;
    width: 1.3215rem;
    height: 1.3215rem;
    background: url(assets/images/icon-list.svg) no-repeat center;
    background-size: contain;
} 

.success-message{
    display : none;
    position: absolute;
    align-self: center;
    background: var(--white);
    padding: 4rem;
    max-width: 38.25rem;
    height: auto;
    border-radius: 2rem;
    h1{
        font-family: "Roboto-Bold", sans-serif;
        font-size: 4rem;
    }
    .success-info{
        font-family: "Roboto-Regular", sans-serif;
        font-size: 1rem;
    }
    
    .dismiss-btn{
        width: 100%;
        padding: 1.5rem;
        border: none;
        border-radius: 0.9rem;
        background: var(--blue700);
        color: white;
        font-size: 1rem;
    }
    
    .dismiss-btn:hover, .dismiss-btn:focus{
        background: linear-gradient(to right,  hsla(340, 92%, 47%, 1), hsla(21, 100%, 50%, 1));
    }
    
    .email-success{
        font-weight: 700;
    }
}

.form-headers{
        display: flex;
    }
    
.error-message{
        display: none;
        margin-left: auto;
        font-size: 0.8rem;
        font-weight: 700;
        color: var(--red);
    }

.error{
    border: 0.1rem solid hsla(360, 100%, 50%, 1);
    background: hsla(360, 100%, 88%, 1);
    color: hsla(0, 100%, 28%, 1);
}

.email-input:focus{
    cursor: pointer;
}

@media (max-width: 61.25rem) {
    body{
        padding: 0;
        background: white;
    }
    .signup-card{
        flex-direction: column-reverse;
        border-radius: 0.5rem;
        margin: 0;
        padding: 0;
    }
    .details{
        padding: 1.2rem;
        h1{
            font-size: 2rem;
        }
    }
    
    #submit-btn{
        font-size: 0.76rem;
        font-weight: 700;
    }
    
    picture img{
        object-fit: cover;
        width: 100%;
    }
    
    .success-message{
        width: 90%;
        min-height: 100vh;
        padding: 1rem;
        display: none;
        flex-direction: column;
        place-content: center;
        
        h1{
            font-size: 2.3rem;
        }
        
        .dismiss-btn{
            position: absolute;
            bottom: 1rem;
            padding: 0.9rem;
        }
    }
}