/*********************** Sign Up & Login ************************/
.sign_up {
    height: 100vh;
    height: calc(var(--mobile_vh, 1vh) * 100);
    width: 100%;
    min-height: 700px;
    display: flex;
    flex-direction: row-reverse;
}

.grey_sign_up {
    position: relative;
    background-color: var(--light-grey);
    border: 2px solid var(--border-grey);
    height: calc(100vh - 192px);
    height: calc((var(--mobile_vh, 1vh) * 100) - 192px);
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    min-height: max-content;
}

.sign_up .notice {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
}

.password_change {
    height: 100%;
    min-height: calc(100vh - 126px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.password_change .form_panel {
    height: auto !important;
}

.half_width {
    width: 50%;
    margin-left: 50%;
    transition: none;
}

.sign_up .image_panel {
    height: 100%;
    width: calc((100% - 96px) / 2);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
  
.sign_up .image_panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    background-color: var(--gold);
}

.sign_up .form_panel {
    height: calc(100% - 192px);
    width: calc((100% - 96px) / 2);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: auto;
    margin-top: 96px;
    border: 2px solid var(--border-grey);
    background-color: var(--light-grey);
    box-sizing: border-box;
}

.sign_up form h1,
.sign_up .notice h1 {
    text-align: center;
}

.wider_heading {
    width: 120%;
    margin-left: -10%;
}

.sign_up .full_width_form_panel {
    width: 100%;
    margin-left: 0;
    padding-top: 0;
}

.sign_up .form_panel form,
.sign_up .notice .content {
    width: 400px;
}

.sign_up .form_panel form h1,
.sign_up .notice .content h1 {
    margin-bottom: 20px;
}

.sign_up .form_panel form .button,
.sign_up .form_panel form input[type="submit"] {
    margin: 25px auto 0;
}

.sign_up .notice .content .button {
    margin: 30px auto 0;
}

.sign_up_label {
    margin-top: 25px;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--black);
}

.sign_up_field,
#id_email,
#id_new_password1,
#id_new_password2,
#id_old_password {
    color: var(--form-grey);
    background-color: transparent;
    border: solid 2px var(--form-grey);
    height: 46px;
    width: 100%;
    padding-left: 15px;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
    font-family: 'Roboto', sans-serif !important;
}

.sign_up_field::placeholder {
    color: var(--form-grey);
}

.sign_up_field:focus,
.sign_up_field:active,
#id_email:focus,
#id_email:active,
#id_new_password1:focus,
#id_new_password1:active,
#id_new_password2:focus,
#id_new_password2:active,
#id_old_password:focus,
#id_old_password:active {
    outline: none;
}

.sign_up form a p,
.extra_details {
    margin: 1em 0 0 0;
    color: var(--black);
    font-weight: 700;
}

.sign_up_terms {
    padding-top: 5px;
    padding-left: 5px;
    color: var(--black);
    font-weight: 700;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-animation: autofill 0s forwards;
    animation: autofill 0s forwards;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-background-clip: text;
  -webkit-box-shadow: 0 0 0px 1000px var(--light-grey) inset !important;
  transition: background-color 5000s ease-in-out 0s;
  -webkit-text-fill-color: var(--form-grey) !important;
}

@keyframes autofill {
    100% {
        background: transparent;
        color: var(--form-grey);
    }
}

@-webkit-keyframes autofill {
    100% {
        background: transparent;
        color: var(--form-grey);
    }
}

.full_width {
    width: 100% !important;
}

.email_icon {
    width: 80px;
    height: 80px;
    border: 5px solid var(--gold);
    background-color: var(--gold);
    border-radius: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
}

.email_icon i {
    font-size: 24px;
    color: var(--white);
}

.toggle_password {
    margin-left: 10px;
    cursor: pointer;
}

.errorlist {
    text-align: center;
    color: var(--red);
    font-weight: 700;
}

.account_message {
    display: flex;
    flex-grow: 1;
    align-items: center;
    text-align: center;
    margin: 25px auto 20px;
    color: var(--form-grey)
}

hr {
    flex-grow: 1;
    height: 2px;
    background-color: var(--form-grey);
    border: none;
}

.account_message p {
    margin: 0;
    padding: 0 15px;
}

.account_link {
    width: 100%;
}

.account_link h4 {
    margin: 0 auto;
    width: 100%;
    text-align: center;
    font-size: 18px;
    color: var(--black);
    text-decoration: underline;
    transition: 0.1s all ease-in-out;
}

.account_link h4:hover {
    color: var(--black);
    transition: 0.1s all ease-in-out;
}

.password_rules {
    color: var(--light-blue);
    margin-top: 15px;
    margin-bottom: -5px;
}

.password_rules li i {
    margin-right: 8px;
    margin-left: 15px;
}

.organisation_signup {
    height: max-content;
}

.organisation_signup .image_panel {
    position: sticky;
    top: 96px;
    height: calc(100vh - 192px);
    height: calc((var(--mobile_vh, 1vh) * 100) - 192px);
}

.organisation_spacer {
    height: 96px;
}

.organisation_form {
    box-sizing: border-box;
    height: max-content !important;
    padding-top: 80px !important;
    padding-bottom: 96px !important;
}

#id_date_of_birth {
    text-transform: uppercase;
}

/*********************** Edit Profile Form ************************/
.edit_profile_form {
    width: 100%;
    margin-bottom: 96px !important;
}

.edit_profile_form .button {
    width: 100%;
    margin-top: 30px;
}

.form_error {
    text-align: center;
    color: var(--red);
    font-weight: 700;
}

@media (max-width: 1350px) {
    .sign_up {
        margin: 0 25px;
        width: calc(100% - 50px);
    }

    .sign_up .form_panel,
    .sign_up .image_panel {
        width: calc((100% - 25px) / 2);
    }
}

@media (max-width: 1000px) {
    .sign_up {
        width: 100%;
        margin: 0;
    }

    .half_width {
        width: 100%;
        margin-left: 0;
        transition: none;
    }

    .sign_up .image_panel {
        display: none;
    }

    .sign_up .form_panel {
        width: 100%;
        margin: 0;
        border: none;
        border-top: 2px solid var(--border-grey);
        border-bottom: 2px solid var(--border-grey);
        height: calc(100% - 192px);
        margin-top: 96px;
    }
}

@media (max-width: 800px) {
    .edit_profile_form {
        margin-bottom: 20px !important;
    }

    .sign_up .form_panel {
        height: calc(100% - 172px);
        margin-top: 86px;
    }

    .grey_sign_up {
        height: calc(100vh - 172px);
        height: calc((var(--mobile_vh, 1vh) * 100) - 172px);
    }   
}

@media (max-width: 600px) {
    .sign_up .form_panel form {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: 100%;
    }

    .sign_up .form_top,
    .sign_up .mobile_fixed {
        width: calc(100% - 40px);
    }

    .sign_up .form_top {
        margin-top: 80px;
    }

    .organisation_signup .form_panel {
        height: max-content;
        min-height: calc(100vh - 182px);
    }

    .organisation_signup .form_top {
        margin-top: 0;
    }

    .sign_up .mobile_fixed {
        margin-bottom: 20px;
    }

    .sign_up .notice .content {
        width: calc(100% - 40px);
        margin: 0 auto;
    }

    .sign_up .form_panel form,
    .edit_profile_form {
        width: 100%;
    }

    .wider_heading {
        width: 100%;
        margin-left: 0;
    }

    .organisation_signup .organisation_form {
        padding-bottom: 30px !important;
        padding-top: 50px !important;
    }
}

.grey_sign_up .footer_background_logo {
    top: 96px;
    width: 600px;
    z-index: 0;
}

.grey_sign_up .footer_background_logo .fill_colour {
    fill: var(--white);
}

@media (max-width: 1350px) {
    .grey_sign_up .footer_background_logo {
        top: 25px;
        left: 25px;
    }
}

@media (max-width: 800px) {
    .grey_sign_up .footer_background_logo {
        left: 50%;
        margin-left: -300px;
        right: unset;
    }
}

@media (max-width: 800px) and (max-height: 890px) {
    .sign_up .sign_up_form_top {
        margin-top: 20px;
    }
}

@media (max-width: 800px) and (max-height: 730px) {
    .sign_up .form_top {
        margin-top: 20px;
    }
}

@media (max-width: 800px) and (max-height: 820px) {
    .sign_up .sign_up_form_panel {
        min-height: calc((var(--mobile_vh, 1vh) * 100) - 174px);
        height: max-content;
        padding-bottom: 86px;
    }
}

@media (max-width: 800px) and (max-height: 685px) {
    .sign_up .form_panel {
        min-height: calc((var(--mobile_vh, 1vh) * 100) - 174px);
        height: max-content;
        padding-bottom: 86px;
    }
}