body {
    background-image: url("../images/brew-monk-illustration.svg");
    background-position: -42vh 12vh;
    background-color: var(--color-medium-grey);
    background-size: 108vh;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
div#login_container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
section#login {
    height: fit-content;
    width: 30%;
    max-width: 500px;
    border-radius: 5px;
    box-shadow: var(--box-shadow);
    background-color: white;
    position: relative;
}
section#login h1 {
    font-size: 2.5rem;
    margin-top: 35px;
    margin-bottom: 10px;
    text-transform: uppercase;
}
section#login form {
    --small-font-size: 0.9rem;
}
section#login form:not(.LanguageSelector form), section#login div.Content {
    --padding-x: 80px;
    margin-top: -20px;
    padding: 0px var(--padding-x) 50px var(--padding-x);
}
img#login_logo {
    width: 41%;
    margin: 0 auto;
    display: block;
    padding-top: 50px;
    padding-bottom: 30px;
}
section#login form label {
    display: block;
    text-transform: initial;
    padding: 5px 0;
    font-size: 1.5625rem;
    font-family: var(--font-family-bold);
    margin-bottom: 5px;
}
section#login .form-check-input[type="checkbox"] {
    margin-left: 0;
}
section#login form input[type="text"], section#login form input[type="password"], section#login form input[type="email"] {
    border: 0;
    border-bottom: 1px solid var(--color-dark-grey);
    width: 100%;
    padding: 5px 0 8px 0;
    background-color: white !important;
    outline: none;
    appearance: none;
    background-clip: padding-box;
    font-size: 1.0625rem;
    border-radius: 0;
}
section#login form button.Submit.Button {
    width: 100%;
    margin: 40px 0;
    padding: 17px 0;
    box-shadow: var(--box-shadow);
}
section#login form div.FormRow {
    margin-bottom: 15px;
}
section#login form div.Remember {
    display: flex;
    align-items: center;
    font-size: var(--small-font-size);
}
section#login form div.Remember label {
    font-size: var(--small-font-size);
    display: inline;
    text-transform: none;
    font-weight: normal;
    margin-bottom: 0;
}
section#login form div.Remember a {
    margin-left: auto;
    text-align: right;
}

section#login form div.SignUp {
    text-align: center;
    font-size: var(--small-font-size);
}

polygon#desktop_variant {
    display: initial;
}
polygon#mobile_variant {
    display: none;
}

.BrewMonkText {
    --offset: 2vw;
    position: fixed;
    right: var(--offset);
    bottom: var(--offset);
    text-align: right;
    z-index: -1;
}
.BrewMonkText h2 {
    font-size: 2.2vw;
    margin: 0;
    padding: 0;
    text-transform: uppercase;
    font-family: var(--font-family);
    font-weight: normal;
}
.BrewMonkText h1 {
    margin: 0;
    padding: 0;
    font-size: 5vw;
    line-height: 0.9;
    text-transform: uppercase;
}
.BrewMonkText img {
    width: 6vw;
    margin-top: 0.6vw;
}
div#YellowBackground {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}
div#YellowBackground polygon {
    fill: var(--color-yellow);
}

.FormRow.Relative {
    position: relative;
}
span.TogglePassword {
    position: absolute;
    right: 0;
    width: 40px;
    height: 35px;
}
span.TogglePassword:hover {
    cursor: pointer;
}

input#id_username, input#id_email {
    background-image: none;
}
input.TogglePassword, input#id_password {
    background-repeat: no-repeat;
    background-position: 98% 50%;
    background-image: url("../icons/show-password-icon.svg");
    background-size: 25px;
}
input.TogglePassword.PlainText, input.PlainText#id_password {
    background-image: url("../icons/hide-password-icon.svg");
}

footer {
    text-align: center;
    position: fixed;
    height: 30px;
    padding-top: 10px;
    width: 100%;
    left: 0;
    bottom: 0;
    font-size: 80%;
    z-index: -1;
}

/* Smartphones (portrait and landscape) */
@media only screen 
    and (min-device-width : 320px) 
    and (max-device-width : 480px) {
  body {
    background-position: -48vh 4vh;
    background-size: 100vh;
  }
  section#login {
    width: 90%;
    margin-top: 35px;
  }
  section#login h1 {
    font-size: 1.5rem;
  }
  section#login form label {
    font-size: 1.1rem;
  }
  section#login form div.Remember label {
    font-family: var(--font-family);
  }
  section#login form div.Remember label, section#login form div.Remember a {
    font-size: 0.87rem;
  }

  img#login_logo {
    width: 50%;
  }
  section#login form:not(.LanguageSelector form) {
    --padding-x: 2rem;
  }
  section#login form div.SignUp {
    font-size: 0.87rem;
  }
  section#login form button.Submit.Button {
    font-size: 1.0rem;
  }
  
    polygon#desktop_variant {
        display: none;
    }
    polygon#mobile_variant {
        display: initial;
    }

    footer {
        font-size: 70%;
    }

    .BrewMonkText h1 {
        font-size: 6vw;
    }
    .BrewMonkText h2 {
        font-size: 3.2vw;
    }
}