*{
    margin: 0;
    padding: 0;
    border: 0;
    font-family: Helvetica, Arial;
    --darkest: #381f12;
    --darkest-second: #907a6b;
    --lightest-second: #c3ac99;
    --lightest: #ebddd1;
}

main{
    display: flex;
    flex-direction: row;
    height: 100vh;
    height: 100svh;
}

#left{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(425px, 40%, 1024px);
}

#left>img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#left>h1{
    color: var(--lightest);
    text-shadow: .1em .1em var(--darkest);
    position: absolute;
    top: 50px;
}

#left>#cred{
    position: absolute;
    bottom: 2px;
}
#right{
    display: flex;
    background-color: var(--lightest);
    height: 100%;
    display: flex;
    flex-direction: column;
    width: clamp(425px, 60%, 1500px);
    flex-grow: 1;
}

#right>#header{
    background-color: var(--lightest-second);
    color: var(--darkest);
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5rem;
}

#signup{
    padding: 1rem 5rem;
}

#sign-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1rem 3rem;
    width: clamp(320px, 80%, 1080px);
    margin: 1rem 0;
}

#signup>h2{
    color: var(--darkest);
}

#signup .field{
    display: flex;
    flex-direction: column;
    min-width: 300px;
}

.field input{
    background-color: var(--lightest);
    color: var(--darkest);
    height: 2rem;
    border: solid 1px grey;
    border-radius: .3em;
    box-shadow: 2px 2px var(--darkest);
}

ul li{
    list-style: none;
}

#signup button{
    background-color: var(--darkest);
    color: var(--lightest);
    font-weight: bold;
    padding: 1rem;
    border-radius: .4em;
}

a:link,
a:visited{
    text-decoration: none;
    color: var(--darkest)
}


#pw-conditions>li{
    color: var(--darkest-second);
}

input{
    border: solid 1px var(--darkest-second);
}

input:not(:focus):not(:placeholder-shown):invalid{
    border: 1px solid red;
}

input:not(:focus):not(:placeholder-shown):valid{
    border: 1px solid green;
} 

/*
#pw-conditions>li {
    color: red;
}*/

#pw-confirmation-txt {
    color: red
}


/* mobile width */
@media (max-width: 425px){
    main{
        flex-wrap: wrap;
    }
    #left{
        width: 100%;
    }
    
    #left>img{
        width: 100%;
        
    }
    #right{
        width: 100%;
    }

    #left>#cred{
        position: relative;
        bottom: 2px;
    }

}