/* 

## Colors

### Primary

- Tomato: hsl(4, 100%, 67%)

### Neutral

- Dark Slate Grey: hsl(234, 29%, 20%)
- Charcoal Grey: hsl(235, 18%, 26%)
- Grey: hsl(231, 7%, 60%)
- White: hsl(0, 0%, 100%)

## Typography

### Body Copy

- Font size (paragraph): 16px

### Font

- Family: [Roboto](https://fonts.google.com/specimen/Roboto)
- Weights: 400, 700

*/

@import url(./assets/fonts/Roboto-Bold.ttf);
@import url(./assets/fonts/Roboto-Regular.ttf);

:root{
    --Roboto-Bold: "Roboto-Bold", sans-serif;
    --Roboto-Regular: "Roboto-Regular", sans-serif;
    --Dark-Slate-Grey: hsl(234, 29%, 20%);
    --Tomato: hsl(4, 100%, 67%);
    --Charcoal-Grey: hsl(235, 18%, 26%);
    --Grey: hsl(231, 7%, 60%);
    --White: hsl(0, 0%, 100%);
    --linear-gradient: hsl(4, 100%, 67%) to hsl(4, 51%, 45%);
}


body{
    background-color: var(--Charcoal-Grey);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 0;
    padding: 0;
    height: 100vh;
}

.sign-up-form{
    border-radius: 2rem;
    width: 70%;
    height: 95%;
    background-color: var(--White);
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    gap: 2rem;
    padding: 2rem;
}

.sign-up-form>div{
    width: 50%;
    height: 100%;
}

.sign-up-form>div:nth-child(1){
    padding: 0 3rem;
    box-sizing: border-box;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1{
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--Roboto-Bold);
    color: var(--Dark-Slate-Grey);
    margin: 1rem 0;
}

.sign-up-form>p{
    font-family: var(--Roboto-Regular);
    font-size: 1.5rem;

}

ul{
    display: contents;
}

li>span>p{
    display: inline;
    margin: .5rem 0;
}

li>span{
    display: flex;
    align-items: center;
    gap: 1rem;
}

form{
    margin: 2rem 0;
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 1rem;
    position: relative;
}

.input-cont{
    display: flex;
    flex-direction: column;
}

input{
    border: solid 1px !important;
    margin-bottom: 1.5rem;
}

/* ARBITRARY CLASS */

.error{
    outline-style: auto;
    outline-color: var(--Tomato);
}

.none{
    display: none;
}

.block{
    display: flex;
}


/* ARBITRARY CLASS */

input, button{
    border-radius: .5rem;
    padding: 1rem;
    border: none;
}

button{
    background-color: var(--Dark-Slate-Grey);
    color: var(--White);
    font-weight: bold;
}

button:hover, input:hover{
    cursor: pointer;
    transition: .3s ease;
}

button:hover{
    background: linear-gradient(to left, var(--Tomato), hsl(4, 51%, 45%));
    box-shadow: 0rem .5rem 1.5rem 0rem var(--Tomato);
}

.errorMsg{
    position: absolute;
    right: 0;
    top: -10%;
    color: var(--Tomato);
    opacity: 0;
}


.sign-up-form>div:nth-child(2){
    display: flex;
    justify-content: end;
}

.sign-up-form>div:nth-child(2)>img{
    width: 100%;
    height: 100%;
    object-position: right;
    object-fit: contain;
}

.success-message{
    display: none;
    width: 30%;
    background-color: var(--White);
    border-radius: 2rem;
    padding: 3.5rem;
    box-sizing: border-box;
}

.success-message>button{
    width: 100%;
}

.mobile{
    display: none;
}

li{
    list-style: none;
}

@media(max-width:1024px){
    .sign-up-form{
        width: 90%;
    }
}

@media (max-width:768px) {

    .sign-up-form{
        gap: 0;
    }

    h1{
        font-weight: 800;
        font-size: 2rem;
    }

    .sign-up-form>div:nth-child(1){
        padding: 0;
        padding-right: 2rem;
    }

}

@media (max-width:425px) {
    
    .sign-up-form{
        flex-direction: column-reverse;
        width: 100%;
        height: auto;
        position: relative;
        top: 25%;
        padding: 0;
        display: none;
    }

    .success-message{
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 0;
        padding: 2rem;
        padding-top: 7.5rem;
    }

    .success-message>button{
        width: 100%;
        /* transform: translateY(400%); */
        transform: translateY(7rem);
    }

    .sign-up-form>div{
        width: 100%;
    }

    .sign-up-form>div:nth-child(1){
        padding: 2rem;
    }

    .sign-up-form>div:nth-child(2){
        display: contents;
    }   

    .mobile{
        display: unset;
    }

    .desktop{
        display: none;
    }
}