*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-size: 14px;
}

body, input, button {
    font-family: 'Barlow', sans-serif;
    outline: none;
    -webkit-appearance: none;
    border-radius: 0;
    margin: 0;
}

button, input[type="checkbox"] + label {
    cursor: pointer;
}

a {
    color: #000;
    text-decoration: none;
}

p {
    margin: 0 0 15px 0;
    padding: 0;
}

#wrap {
    display: flex;
    min-height: 100%;
}

#left {
    width: 50%;
    display: flex;
    background-color: #fff;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    background-image: url('../bliksem.png');
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-size: contain;
    position: relative;
}

#right {
    width: 50%;
    background-color: #eee;
    background-image: var(--image);
    background-size: cover;
    background-position: 50% 50%;
}

#login {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: calc(100% - 40px);
    max-width: 350px;
    margin: 20px 0;
}

#login h1 {
    width: 100%;
    margin: 0 0 50px 0;
}

#login h1 a {
    display: block;
    font-size: 0;
    color: transparent;
    width: 100%;
    height: 150px;
    background-image: var(--logo);
    background-size: contain;
    background-position: 50% 50%;
    background-repeat: no-repeat;
}

#loginform,
#lostpasswordform {
    width: 100%;
}

#lostpasswordform > p,
#loginform > p {
    display: flex;
    flex-direction: column;
}

#login input {
    font-size: 14px;
    line-height: 17px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 5px;
}

#login label {
    margin-bottom: 10px;
}

#login input:not([type=submit]),
#login button {
    outline: none;
    border: 1px solid #cdcdcd;
    background-color: #fff;
    padding: 20px;
}

#loginform > p.remember-me {
    position: relative;
    justify-content: center;
    line-height: 21px;
}

.remember-me input {
    display: none;
}

.remember-me input + label {
    display: flex;
}

.remember-me input + label:before {
    content: '';
    display: block;
    width: 19px;
    height: 19px;
    border: 1px solid #cdcdcd;
    background-color: #fff;
    margin-right: 15px;
    border-radius: 5px;
}
.remember-me input + label:after {
    content: '';
    display: block;
    position: absolute;
    border-radius: 2px;
    width: 19px;
    height: 19px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18.71,7.21a1,1,0,0,0-1.42,0L9.84,14.67,6.71,11.53A1,1,0,1,0,5.29,13l3.84,3.84a1,1,0,0,0,1.42,0l8.16-8.16A1,1,0,0,0,18.71,7.21Z'/%3E%3C/svg%3E");
    transition: all 250ms ease-in-out;
}
.remember-me input:not(:checked) + label:after {
    opacity: 0;
    transform: scale(0.01);
}

#login input[type=submit] {
    padding: 15px;
    background-color: var(--color);
    color: var(--text);
    line-height: 19px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    box-shadow: 0 10px 30px 0 var(--shadow);
    cursor: pointer;
}

#nav {
    margin-top: 20px;
}

#login_error {
    padding: 20px;
    border-radius: 5px;
    background: #ffd3d3;
    width: 100%;
    margin-bottom: 20px;
}


@media only screen and (max-width: 700px) {
    #left {
        width: 100%;
        order: 1;
    }
    #wrap {
        flex-direction: column;
    }
    #right {
        height: 30vh;
        width: 100%;
    }
    #login h1 a {
        height: 75px;
    }
    #login h1 {
        padding: 10px;
        background-color: #fff;
        border-radius: 20px;
        margin-top: -70px;
        box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.15);
    }
}

.back-to-site {
    text-align: center;
    color: #444;
    display: block;
    margin-top: 20px;
}
