

* {
    box-sizing: border-box;
}

html {
    /* Set the font globally */
    font-family: var(--sans-font);
    font-size: var(--base-fontsize);
}

/* Make the body a nice central block */
body {
    color: var(--black);
    background: var(--white);
    font-size: var(--base-fontsize);
    line-height: var(--line-height);
    margin: 0;
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-lightest);
}

main {
    width: 100%;
    height: 100%;
    display: flex;
    flex-flow: row nowrap;
    align-items: stretch;
    background-color: var(--white);
}

section {
    width: 40%;
    padding: 5rem 7rem 1.0rem;
                margin: auto;
    background-color: var(--white);
    overflow-y: auto;
    overflow-x: hidden;
}

#login-image {
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
    display: block;
    height: 100vh;
    width: 60%;
}

form, #div_id_username, #div_id_password, input {
    width: 100%;
}

form {
    display: block;
}

input {
    display: block;
}

input[type="text"],
input[type="password"] {
    height: 3rem;
    border: solid 2px var(--primary-light);
    border-radius: .25rem;
    padding: .5rem .75rem;
    transition: outline .1s;
}

input[type="text"]:hover,
input[type="password"]:hover,
input[type="text"]:focus,
input[type="password"]:focus {
    outline: solid 2px var(--primary);
}

h2 {
    font-size: 1.45rem;
    font-weight: bold;
}

label {
    display: block;
    margin-top: 1.25rem;
    margin-bottom: 0.3rem;
}

hr {
    border: none;
    border-top: solid 1px var(--gray-lightest);
    margin: 0;
    padding: 0;
}

p a,
p a:link,
p a:visited {
    color: var(--primary);
    text-decoration: none;
}

p a:hover,
p a:focus {
    text-decoration: underline;
}

.cto {
    background-color: var(--primary);
    border: none;
    padding: .5rem .75rem;
    border-radius: .25rem;
    color: var(--white);
    font-size: var(--base-fontsize);
    font-weight: bold;
    text-decoration: none;
    width: auto;
    margin: 1.75rem 0;
    cursor: pointer;
    transition: background-color .3s;
}

.cto:hover,
.cto:focus {
                background-color: var(--gray-darker);
}

.cto.contact {
    margin-top: 3rem;
    float: right;
}

.muted {
    color: var(--gray-darker);
}

.alert {
                background-color: var(--gray-lightest);
                padding: 1rem;
}

.alert ul {
                margin: 0;
                padding: 1.5rem;
}
@media screen and (max-width: 120rem) {
                :root {
                        --base-fontsize: 0.9rem;
                }
        }

@media screen and (max-width: 70rem) {
                    body {
                            background-color: var(--white);
                    }
                    main {
                            justify-content: center;
                    }
                    section {
                            width: 100%;
                            max-width: 40rem;
                            overflow: visible;
                    }
                    .photo {
                            display: none;
                    }
            }

        @media screen and (max-width: 30rem) {
                section {
                        padding: 4rem;
                }
        }
