* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --red: hsl(0, 100%, 74%); 
    --green: hsl(154, 59%, 51%);
    --purple: hsl(248, 32%, 49%);
    --gray: hsl(249, 10%, 26%);
    --light-purple: hsl(246, 25%, 77%);
    font-size: 16px;
}

body{
    font-family: "Poppins", sans-serif;
    background-color: var(--red);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    place-content: center;
    place-items: center;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 4rem 3rem;
    box-sizing: border-box;
    gap: 3rem;
}

.bg{
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    position:absolute;
    background-image: url("./images/bg-intro-desktop.png");
    background-size: cover;
    z-index: -1;
}

.intro{
    width: min(35rem, 100%);
    display: grid;
    gap: 2rem;
    justify-self: end;
}

.intro h1{
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 4rem;
}

.intro p{
    font-weight: 400;
    color:white;
    line-height: 1.5rem;
}

.signup_form{
    width: min(37rem, 100%);
    justify-self: start;
    display: grid;
    gap: 2rem;
}

.membership{
    width: 100%;
    border-radius: 0.7rem;
    place-items: center;
    padding: 1rem;
    background-color: var(--purple);
    box-shadow: 0 0.4rem 0.1rem rgba(0,0,0,0.3);
    transition: transform 0.15s ease;
    transform-origin: center;
}

.membership:hover{
    transform: scale(1.01);
}

.membership h3{
    color: white;
    font-weight: 700;
}

.membership span{
    font-weight: 500;
}

.signup_box{
    width: 100%;
    border-radius: 0.7rem;
    background-color: white;
    display: grid;
    gap: 1rem;
    padding: 2.5rem 3rem;
    box-shadow: 0 0.6rem 0.1rem rgba(0,0,0,0.3);
}

.first_name,
.last_name,
.email,
.password {
    width: 100%;
    padding: 1rem;
    border-radius: 0.3rem;
    border: 1.5px solid #ccc;
    font-size: 1.1rem;
    font-weight: 500;
}

.first_name:focus-visible,
.last_name:focus-visible,
.email:focus-visible,
.password:focus-visible {
  border-color: var(--purple);
  outline: none;
}

.input_form input.error_active{
    background-image: url(./images/icon-error.svg);
    background-repeat: no-repeat;
    background-position: right 1rem center;
    border-color: var(--red);
}

.input_form p{
    display: none;
    color: var(--red);
    font-style: italic;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: end;
}

.free_trial_button{
    width: 100%;
    border-radius: 0.4rem;
    padding: 1rem;
    place-items: center;
    border: none;
    background-color: var(--green);
    color: white;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.15s ease;
    transform-origin: center;
    box-shadow: 0 0.1rem 0 rgba(0, 0, 0, 0.3);
}

.free_trial_button:hover{
    transform: scale(1.02);
}

.ending_para{
    font-size: 0.7rem;
    text-align: center;
    color: var(--light-purple);
    font-weight: 500;
}

.ending_para span{
    color: var(--red);
    font-weight: 600;
}


@media screen and (max-width: 375px) {
    .bg{
        background-image: url("./images/bg-intro-mobile.png");
    }

    .intro h1{
        font-size: 2.5rem;
        line-height: 2.5rem;
    }
}

@media (max-width:60rem){
    body{
        grid-template-columns: 1fr;
        place-items: center;
    }

    .intro{
        text-align: center;
    }

    .intro{
        justify-self: center;
    }

    .signup_form{
        justify-self: center;
    }
}

@media (max-width:70rem){
    .intro h1{
        font-size: 3rem;
        line-height: 3rem;
    }
    .membership{
        font-size: 0.9rem;
    }
}