@font-face {
    font-family: "HACK";
    src: url("fonts/Hack-Regular.ttf");
}

:root {
    --logo-color: #4db6d2;
}

* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: "HACK", sans-serif;
}

body {
    display: flex;
    justify-content: center;
    width: 100vw;
}

a:any-link {
    text-decoration: none;
    color: var(--logo-color);
}

a:hover {
    color: white;
}
/* ==================================================== */
/* Left Side */
.image-section {
    position: relative;
    width: 40vw;
    min-width: 345px;
    height: 100vh;

    background: url(images/joshua-woroniecki-lzh3hPtJz9c-unsplash.jpg);
    background-size: 100% 100%;
    background-repeat: no-repeat;

    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.site-logo {
    width: 100%;
    background-color: black;
    display: flex;
    justify-content: center;    
    align-items: center;
    position: relative;
    line-height: 2rem;
}

.site-logo > img {
    width: 5rem;
    padding: 10px;
}

.image-credit {
    text-align: center;
    position: relative;
    bottom: 10px;
    visibility: visible;
}
/* ==================================================== */
/* Right Side */
.form-section {
    display: flex;
    width: 60vw;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    background-color: black;
    color: white;
}

.description-section, .submit-section {
    padding: 3vh 2vw;
}

/* Form */
.sign-up-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-transform: capitalize;
    color: black;
    background-color: white;
    font-size: 1rem;
    padding: 2rem 0;
    box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.123);
}

.accessibility-note {
    margin-top: 10px;
    color:rgba(0, 0, 0, 0.5);
}

form {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 60vw;
    flex-flow: row wrap;
    gap: 1rem;
    font-size: 1rem;
}

.input {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 15rem;
    margin-bottom: 15px;
}

input {
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #E5E7EB;
    font-size: .9rem;
    margin-top: 3px;
}

input:focus {
    box-shadow: 4px 4px 5px rgba(0, 0, 0, 0.5);
    outline: none;
}

input:focus:invalid {
    border: 2px solid red;    
}

input:focus:valid {
    border: 2px solid var(--logo-color);    
}

.error {
    font-size: .6rem;
    color: red;
    margin-top: 8px;
    width: 15rem;
    margin-left: .8rem;
}

/* Submit Section */
.submit-button {
   padding: .8rem;
   font-size: 1rem;
   border-radius: 5px;
   border: 2px solid var(--logo-color); 
}

.submit-button:hover {
    background-color: var(--logo-color);
    color: white;
    cursor: pointer;
}

.submit-section p {
    margin-top: .8rem;
}

/* Mobile/Smaller Screens */
@media screen and (max-width: 850px) {
    body {
        flex-direction: column;
    }

    .image-section{
        width: 100vw;
        height: 20rem;
    }

    .description-section, .sign-up-section, .submit-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .form-section, form, .submit-section{
        width: 100vw;
        justify-content: center;
    }
}

@media screen and (max-width: 510px) {
    .image-section{
        width: 100vw;
        height: 3rem;
    }

    .image-credit {
        visibility: hidden;
    }

    .input {
        width: 20rem;
        margin-bottom: 10px;
    }
}