@import url('https://fonts.googleapis.com/css2?family=Caesar+Dressing&display=swap');

:root{
    --dark-green: rgb(89, 109, 72);
    --light-green: rgb(143, 161, 128);
    --off-white: rgb(250, 250, 250);
    --error: rgb(204, 75, 75);
    --success: rgb(88, 204, 88);
}

#wrapper {
    display: flex;  
    flex-flow: row;
    height: 100vh;
    margin: 0px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

header {
    display: flex;
    flex: 0 0 30%;
    flex-direction: column; 
    color: var(--off-white);
    font-size: 2.7rem;
    background-image: url("media/vickholius-nugroho-jt6QxZwSOCQ-unsplash.jpg");
    background-size: cover;
    padding: 0px;
}
#branding {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50%;
    background-color: rgba(0, 0, 0, 0.3);
    font-family: 'Caesar Dressing', cursive;
}
.logo {
    max-height: 100px;
}
.photo-credit {
    margin-top: auto;
    text-align: center;
    font-size: 1rem;
}
.photo-credit a {
    color: var(--off-white);
}

main {
    display: flex;
    flex: 1 1;
    flex-direction: column;
    align-content: center;
    justify-content: center;
    background-color: rgb(215, 228, 215);
}
.form-container {
    display: flex 1;
    flex-direction: column;
    padding: 10%;
    background-color: var(--off-white);
    box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
}
.sign-up-form {
    display: flex;
    align-content: center;
    flex-wrap: wrap;
}
.form-group {
    display: flex;
    flex-direction: column;
    flex: 50%;
}
label {
    font-size: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color:rgba(0, 0, 0, 0.5)
}
input {
    height: 3rem;
    padding: 2%;
    margin: .3rem .3rem .3rem 0rem;
    border: 1px solid rgb(229, 231, 235);
    border-radius: 4px;
    box-sizing: border-box;
}

.form-container .submit {
    display: flex;
    flex-direction: row;
    margin-top: 2rem;
}
button {
    padding: 2% 10%;
    margin-right: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.25rem;
    font-weight: 400;
    text-transform: uppercase;
    color:var(--off-white);
    background-color: var(--dark-green);
    border: none;
    border-radius: 4px;
}
button:hover {
    background-color: var(--light-green);
    border: none;
}
.submit a {
    color: var(--dark-green);
    font-weight: 600;
    text-decoration: none;
}
a:hover {
    color: var(--light-green);
}

.error{
    border: 2px solid var(--error);
}
.error-text{
    color: var(--error);
    margin-top: 0px;
    font-size: .9rem;
}
.success{
    border: 2px solid var(--success);
}

@media only screen and (max-width: 960px) {
    #wrapper, main, header {
       flex-direction: column;
       flex: 1;
    }
    #branding, .photo-credit{
        margin: 5% 0%;
    }
    .form-container, .sign-up-form, .form-container .submit {
        flex-direction: column;
     }
     .sign-up-form{
         align-content: stretch;
     }
     button{
         padding: 5%;
     }
}