:root{
    --color-red: hsl(0, 100%, 74%);
    --color-green: hsl(154, 59%, 51%);
    --color-light-green: #9AE5C4;
    --color-blue: hsl(248, 32%, 49%);
    --color-dark-blue: hsl(249,10%,26%);
    --color-grayish-blue: hsl(246, 25%, 77%);
    --font-body: "Poppins", 'segoe ui', 'araial', 'helvetica', 'sans-serif';
}

body{
    background-image: url(images/bg-intro-mobile.png);
    background-color: var(--color-red);
    color: white;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.leftWrapper{
    text-align: center;
    margin-top: 0;
    margin-bottom: 1rem;
    width: 21.875rem;
}

.leftWrapper > p{
    font-size: 1rem;
}

.mainContainer{
    background-color: white;
    width: 21.875rem;
    border-radius: 0.5rem;
    box-shadow: 0.125rem 0.125rem 0.5rem black;
}

.submit{
    margin-top: 0.625rem;
    background-color: var(--color-green);
    font-family: var(--font-body);
    font-weight: 500;
    text-transform: uppercase;
    width: 20rem;
    height: 3.125rem;
    border: .1rem solid var(--color-green);
    border-radius: 0.5rem;
    color: white;
    letter-spacing: 0.125rem;
}

.submit:hover{
    cursor: pointer;
    background-color: var(--color-light-green);
}

form{
    margin: 0 auto;
    width: 20em;
    padding: 1em;
    padding-bottom: 0em;
}

input[type=text],
input[type=email],
input[type=password]{
    margin: 0.625rem 0 0.25rem 0;
    width: 15.625rem;
    height: 1.25rem;
    padding: 1rem 2rem;
    border-radius: .625rem;
    font: var(--font-body);
    font-weight:600;
}

.formGroup{
    position: relative;
}

.errIcon{
    position: absolute;
    right:7%;
    top:35%;
    display: none;
}

.error{
    color: var(--color-red);
    text-align: right;
    font-style: italic;
    font-size: .7rem;
    font-weight: 500;
    display: none;
}

::placeholder{
    font-family: var(--font-body);
    font-weight: 700;
}

.trial{
    background: var(--color-blue);
    color: white;
    font-size: 1rem;
    width: 20.625rem;
    padding: 0.625rem;
    text-align: center;
    font-weight: 400;
    border-radius: .313rem;
    margin-bottom: 2rem;
    box-shadow: 0.125rem 0.125rem 0.625rem black;
}

.legal{
    color: grey;
    font-size: 0.688rem;
    font-weight: 400;
    text-align: center;
    margin: auto;
    width: 15.625rem;
    padding-bottom: 1rem;
}

p > a{
    color: var(--color-red);
    text-decoration: none;
    font-weight: 700;
}

span{
    font-size: 0.688rem;
    margin: auto;
    text-align: center;
    display: block;
    padding: 1rem;
}

span a {
    color: hsl(228, 45%, 44%);
}

.invalid{
    border: 0.063rem solid var(--color-red);
    color: var(--color-red);
}

.valid{
    border: 0.063rem solid var(--color-grayish-blue);
}

@media (min-width: 31.25rem)
{
    body {
        background-image: url(images/bg-intro-desktop.png);
        margin: auto;
    }

    .main{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        height: 100vh;
    }

    .leftWrapper{
        margin: auto;
        text-align: left;
        width: 33.75rem;
        margin-right: 2rem;
    }

    .mainContainer{
        width: 33.75rem;
    }

    .trial{
        width: 32.5rem;
        height: 2.5rem;
        line-height: 2.5rem;
    }

    form{
        margin: 0;
    }

    input[type=text],
    input[type=email],
    input[type=password]{
        width: 130%;
        justify-self: left;
        margin: 1rem;
    }

    .submit{
        width: 30rem;
        margin-left: 1rem;
    }

    .legal{
        width: 30rem;
    }

    .error{
        width: 31rem;
    }

    .errIcon{
        right: -10rem;
    }
} 
/* Formatting stuff so i don't have to jump back and forth
 Font Weights: 400, 500, 600, 700
 Font Size: 16px (body)
RG is primary, U is accent, dark U & G are neutral
*/