body {
    font-family: 'Lato', Helvetica, sans-serif;
}

.btn {
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    font-family: 'Lato', Helvetica, sans-serif;
    color: #fff;
    font-size: 20px;
    background: #000000;
    padding: 10px 20px 10px 20px;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #333333;
    text-decoration: none;
}

input.btn {
    display: block;
}

.container {
    padding: 10px 90px;
}

.text-center {
    text-align: center;
}

#loginform {
    margin: 5% auto;
    max-width: 300px;
    padding: 30px 20px;
    background-color: #ffdd00;
}

.login-grid-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(212px, 1fr) minmax(0, 1fr);
    align-items: center;
    grid-gap: 16px 0px;
}

form.login-grid-container {
    /* Gap between grids */
    padding-bottom: 16px;
}

.login-grid-container input {
    grid-column: 2;
}

#loginform input[type='text'],
#loginform input[type='email'],
#loginform input[type='password'] {
    padding: 5px;
    border: solid 1px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

#loginform input#id_username:read-only {
    background-color: rgba(239, 239, 239, 0.3);
}

#loginform .login-back-button {
    grid-column: 1;

    text-decoration: none;
    justify-self: end;
    margin: 10px;
}

#loginform input {
    min-height: 20px;
}

#loginform .btn {
    font-size: 16px;
    border-radius: 4px;
}

.login-separator {
    grid-column: 2;

    border-top: 1px solid;
    margin-top: 12px;
}

.login-separator span {
    margin-top: -12px;
    margin-left: auto;
    margin-right: auto;
    display: block;
    text-align: center;
    background: #ffdd00;
    width: 35px;
}

.third-party-logins {
    grid-column: 2;

    margin-top: 5px;
}

.third-party-logins .login-logo {
    display: flex;
    border-radius: 4px;
    box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.14),
        0 1px 10px 0 rgba(0, 0, 0, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    align-items: center;
    justify-content: space-around;
    padding: 4px;
    margin-bottom: 10px;
    text-align: center;
}

.third-party-logins .login-logo img {
    height: 32px;
    margin-right: 4px;
}

.logo {
    display: block;
    height: 85px;
    margin: auto;
    background-image: url('/static/images/logo.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

#loginerror {
    display: block;
    color: red;
    margin: auto;
    text-align: center;
    font-weight: lighter;
}

.pageform {
    font-weight: lighter;
    margin: 5% auto;
    width: 300px;
    padding: 30px 20px;
    background-color: #ffdd00;
    font-family: 'Lato', Helvetica, sans-serif;
    font-size: 14px;
}

.pageform input {
    margin-left: auto;
    margin-right: auto;
    min-height: 20px;
    font-family: 'Lato', Helvetica, sans-serif;
}

.pageform input[type='email'],
.pageform input[type='text'],
.pageform input[type='tel'],
.pageform input[type='password'],
select {
    padding: 5px 0px;
    margin-top: 5px;
    margin-bottom: 10px;
    width: 100%;
    border: solid 1px rgba(0, 0, 0, 0.1);
    font-size: 14px;
}

body > div.iti.iti--container {
    /* Fixes full screen overlay on mobile devices */
    width: calc(100% - 60px);
    height: unset;
}

.pageform .iti {
    color: #000;
    margin-top: 5px;
    margin-bottom: 10px;
    width: calc(100% + 1px);
    height: unset;
}

.pageform .iti input {
    width: calc(100% + 1px);
    min-height: 32px;
}

.pageform .help-block {
    margin-top: 0px;
}

.pageform .form-error input {
    border-color: red;
}

.pageform #div_id_accepted_gdpr {
    margin-bottom: 15px;
}

.errorlist {
    list-style: none;
    color: red;
    font-size: 0.7em;
    margin: 0;
    padding: 0;
}

.pageform .infotext {
    text-align: center;
    margin: 10px auto 16px;
}

.pageform .infotext h3 {
    font-size: 1.1em;
    margin-bottom: 1.5%;
}

.pageform-preamble {
    text-align: center;
}

.password-reset-link {
    grid-column: 2;

    text-align: center;
    font-size: 0.8em;
}

.password-reset-link a {
    color: black;
    text-decoration: none;
}

.activation-login-button {
    width: 50px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.registration-form input[type='submit'] {
    width: 100%;
}

.registration-form .login-separator {
    width: 100%;
    font-size: 18px;
    margin-top: 20px;
}

.registration-form .login-separator span {
    margin-top: -13px;
}

.registration-form .login-logo {
    width: 225px;
    margin-left: auto;
    margin-right: auto;
}

.registration-form .third-party-logins {
    margin-top: 15px;
}

.third-party-disclaimer {
    text-align: center;
    font-size: 12px;
    margin-top: 10px;
}

.registration-form .legal-disclaimer {
    text-align: center;
    font-size: 12px;
    margin-top: 5px;
}

.registration-form #div_id_accepted_terms {
    margin-bottom: 12px;
}

.registration-form #div_id_accepted_terms label {
    line-height: 20px;
}

.registration-form #id_accepted_terms {
    min-height: unset;
    margin-right: 4px;
}

.new-user-bounce {
    width: 370px;
}

.new-user-bounce b {
    font-size: 18px;
}
