#login-container {
    height: 100vh;
    min-height: 900px;
    background-size: cover;
    min-width: 1000px;
    background: url(/static/img/home/login/background.jpg) -200px 0;
}

#login-container::before {
    content: ' ';
    background: url(/static/img/home/login/foreground.png);
    background-size: cover;
    height: 100vh;
    min-height: 900px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

#login-container::after {
    content: ' ';
    background: url(/static/img/home/login/foreground2.png);
    background-size: cover;
    height: 100vh;
    min-height: 900px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 4;
}

/* Formulaire de connexion */
#login-form {
    width: 44%;
    height: 100vh;
    min-height: 900px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 5;
}

#login-form-background {
    background: url(/static/img/home/login/form-background.png) no-repeat;
    background-size: cover;
    width: 44%;
    height: 100vh;
    min-height: 900px;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 3;
}

#login-form-inner {
    width: 48%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#login-form-inner::after {
    content: ' ';
    background: url(/static/img/home/register/register-origins.png);
    width: 153px;
    height: 170px;
    position: absolute;
    top: -40px;
    z-index: 4;
    right: -110px;
}

#login-logo {
    display: block;
    margin: 0 auto 18px;
}

#login-form-inner p.big {
    color: #646262;
    font-family: "Alegreya Sans SC", sans-serif;
    font-size: 45px;
    font-weight: 800;
    line-height: 60px;
}

#login-form-inner p.link {
    color: #b7b1b1;
    font-family: "Alegreya Sans SC", sans-serif;
    font-size: 26px;
    font-weight: 800;
    line-height: 24px;
}

#login-form-inner p.link a {
    color: #b7b1b1;
    text-decoration: none;
    transition: color ease-in-out 80ms;
}

#login-form-inner p.link a:hover {
    color: #3ef5d7;
}

/* Inputs du formulaire */
#login-inputs {
    margin-top: 30px;
}

#login-inputs label {
    display: block;
    color: #646262;
    font-family: "Alegreya Sans SC", sans-serif;
    font-size: 25px;
    line-height: 25px;
    text-transform: lowercase;
}

#login-inputs input {
    display: block;
    /*margin-bottom: 26px;*/
    border: none;
    border-bottom: 1px solid #646262;
    outline: none;
    width: 100%;
    height: 22px;
}

#login-inputs .form-error {
    margin-top: 8px;
    margin-bottom: 26px;
    color: #FD6565;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 16px;
    line-height: 16px;
    min-height: 34px;
}

/* Checkboxes du formulaire */
#login-checkboxes {
    margin-top: 28px;
    margin-bottom: 30px;
    text-align: left;
    width: 100%;
}

#login-checkboxes div {
    display: inline-block;
    width: 49%;
    box-sizing: border-box;
}

#login-checkboxes div:last-of-type {
    color: #646262;
    font-family: "Alegreya Sans SC", sans-serif;
    font-size: 20px;
    line-height: 16px;
    text-align: right;
}

#login-checkboxes div:last-of-type #forgot-password-link {
    color: #646262;
    text-decoration: none;
    cursor: pointer;
}

#login-checkboxes div:last-of-type #forgot-password-link:hover {
    font-weight: bold;
}

#login-checkboxes input[type=checkbox] {
    height: 20px;
    width: 22px;
    vertical-align: middle;
}

#login-checkboxes label {
    line-height: 20px;
    color: #646262;
    font-family: "Alegreya Sans SC", sans-serif;
    font-size: 20px;
    vertical-align: middle;
    cursor: pointer;
}

/* Checkboxes custom */
#login-checkboxes label {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#login-checkboxes input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

#login-checkboxes .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 16px;
    width: 18px;
    border-radius: 4px;
    background-color: transparent;
    border: 2px solid #9A9A9A;
}

#login-checkboxes label:hover input ~ .checkmark {
    background-color: #ccc;
}

#login-checkboxes label input:checked ~ .checkmark {
    background-color: #39e5c5;
}

/* Bouton de validation du formulaire */
#login-form #login-btn.disabled {
    filter: grayscale(1);
    cursor: not-allowed;
}

#login-form input {
    background: none !important;
}

#login-form input:-webkit-autofill,
#login-form input:-webkit-autofill,
#login-form input:-webkit-autofill:hover,
#login-form input:-webkit-autofill:focus,
#login-form input:-webkit-autofill:active {
    background: none !important;
    -webkit-box-shadow: 0 0 0 30px white inset !important;
}

#login-form .password-input-outer {
    position: relative;
}

#login-form .password-input-outer .password-helper {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 23px;
    height: 13px;
    background: url(/static/img/home/login/eye-close.png);
    cursor: pointer;
}

#login-form .password-input-outer .password-helper:hover,
#login-form .password-input-outer .password-helper.active {
    background: url(/static/img/home/login/eye-open.png);
}

#facebook-login-button {
    background: url(/static/img/home/fb-button-bg.png);
    background-size: cover;
    color: #fff;
    outline: none;
    border: none;
    width: 324px;
    height: 67px;
    font-family: "Alegreya Sans SC", sans-serif;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    margin-left: -20px;
    margin-top: 14px;
    transition: font-weight ease-in-out 100ms;
}

#facebook-login-button:hover {
    font-weight: 800;
}

#facebook-login-button:hover span::after {
    width: 28px;
    height: 28px;
    top: -6px;
    left: -3px;
}

#facebook-login-button span {
    position: relative;
    display: inline-block;
    padding-left: 30px
}

#facebook-login-button span::after {
    content: ' ';
    position: absolute;
    top: -5px;
    left: 0;
    background: url(/static/img/home/fb.png);
    background-size: cover;
    width: 23px;
    height: 23px;
    transition: width ease-in-out 100ms, height ease-in-out 100ms, top ease-in-out 100ms, left ease-in-out 100ms;
}

/* Ecran mot de passe oublié */
#forgot-password-form {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity ease-in-out 600ms;
}

#forgot-password-form.active {
    visibility: visible;
    opacity: 1;
}

.forgot-password h1 {
    background-image: none !important;
    height: initial !important;
    line-height: 36px !important;
    color: #646262 !important;
    font-family: "Alegreya Sans SC", sans-serif !important;
    font-size: 45px !important;
    font-weight: 800;
    text-align: left;
    text-transform: none !important;
    margin-left: initial !important;
    padding: 0 !important;
}

.forgot-password p {
    color: #646262;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 25px;
    line-height: 25px;
    text-align: justify;
    text-align-last: left;
    margin: 32px auto;
}

#forgot-password-form input {
    width: 100%;
    box-sizing: border-box;
    outline: none;
    border: none;
    height: 55px;
    box-shadow: inset 0 0 6px rgba(60, 60, 60, 0.21);
    padding-left: 20px;
    color: #646262;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 15px;
    opacity: 0.65;
}

#forgot-password-form button {
    border: none;
    outline: none;
    height: 66px;
    box-sizing: border-box;
    background-color: #fff;
    background: linear-gradient(211deg, #00D0FF 0%, #00FFD3 100%);
    box-shadow: inset 0 0 27px rgba(9, 191, 198, 0.55);
    padding: 0 62px;
    border-radius: 38px;
    color: #FFFFFF;
    font-family: "Alegreya Sans SC", sans-serif;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: 4px;
    line-height: 23px;
    text-align: center;
    text-transform: none;
    display: block;
    cursor: pointer;
    transition: background ease-in-out 400ms;
    margin: 34px auto 0;
}

#forgot-password-form button:hover {
    background: linear-gradient(211deg, #01a6cb 0%, #01e0b9 100%);
}

#forgot-password-form span {
    display: inline-block;
    opacity: 0.6;
    color: #646262;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 20px;
    text-align: center;
    margin-top: 16px;
    cursor: pointer;
}

#forgot-password-form .error {
    margin-top: 8px;
    margin-bottom: 8px;
    color: #FD6565;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 16px;
    line-height: 16px;
}

/* Ecran de validation de la réinitialisation de mot de passe */
#post-forgot-password-form {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity ease-in-out 800ms;
}

#post-forgot-password-form.active {
    opacity: 1;
    visibility: visible;
}

#post-forgot-password-form p {
    opacity: 0;
    visibility: hidden;
}

#post-forgot-password-form.active p:first-of-type {
    animation: show-hidden-element ease-in-out 600ms forwards;
    animation-delay: 1200ms;
}

#post-forgot-password-form.active p:last-of-type {
    animation: show-hidden-element ease-in-out 600ms forwards;
    animation-delay: 1900ms;
}

#post-forgot-password-form p:last-of-type {
    opacity: 0.6;
    color: #646262;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 18px;
}

/* Icone de confirmation de la réinitialisation */
#post-forgot-password-form #reset-icon {
    width: 48px;
    height: 48px;
    display: inline-block;
    margin-top: 32px;
    position: relative;
    border-radius: 100%;
}

/* Checkmark de l'icone de confirmation */
#post-forgot-password-form #reset-icon .check {
    display: none;
    position: absolute;
    left: 10px;
    top: 5px;
    z-index: 3;
}

#post-forgot-password-form #reset-icon .check.draw:after {
    animation: checkmark ease 800ms forwards;
    animation-delay: 1400ms;
    opacity: 0;
    transform: scaleX(-1) rotate(135deg);
}

#post-forgot-password-form #reset-icon .check:after {
    opacity: 1;
    height: 21px;
    width: 12px;
    transform-origin: left top;
    border-right: 3px solid #fff;
    border-top: 3px solid #fff;
    content: '';
    left: 0;
    top: 21px;
    position: absolute;
}

/* Bordure de l'icone de confirmation */
#post-forgot-password-form #reset-icon::after {
    content: ' ';
    border: 2px solid #00D0FF;
    background: none;
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    box-sizing: border-box;
    transform: scale(0);
    border-radius: 100%;
}

#post-forgot-password-form.active #reset-icon:after {
    animation: icon-border ease-in-out 500ms forwards;
    animation-delay: 400ms;
}

/* Contenu de l'icone de confirmation */
#post-forgot-password-form #reset-icon::before {
    content: ' ';
    background: linear-gradient(211deg, #00D0FF 0%, #00FFD3 100%);
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    width: 48px;
    height: 48px;
    border-radius: 100%;
    transform: scale(0);
}

#post-forgot-password-form.active #reset-icon::before {
    animation: icon-content ease-in-out 600ms forwards;
    animation-delay: 700ms;
}

/* Animations */
@keyframes checkmark {
    0% {
        height: 0;
        width: 0;
        opacity: 1;
    }
    20% {
        height: 0;
        width: 12px;
        opacity: 1;
    }
    40% {
        height: 21px;
        width: 12px;
        opacity: 1;
    }
    100% {
        height: 21px;
        width: 12px;
        opacity: 1;
    }
}

@keyframes icon-border {
    0% {
        transform: scale(0);
    }
    80% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.1);
    }
}

@keyframes icon-content {
    0% {
        transform: scale(0);
    }
    80% {
        transform: scale(1.3);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes show-hidden-element {
    0% {
        visibility: visible;
        opacity: 0;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}

/* Responsive tablettes/laptops */
@media (min-width: 993px) and (max-width: 1500px) {
    #login-form {
        width: 60%;
    }

    #login-form-background {
        width: 60%;
    }

    #login-logo {
        width: 300px;
    }

    #login-form-inner {
        width: 60%;
        left: 60%;
    }

    #login-form-inner::after {
        background: url(/static/img/home/register/register-origins.png);
        background-size: cover;
        width: 100px;
        height: 111px;
        top: -40px;
        z-index: 4;
        right: -60px;
    }
}

.g-recaptcha {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}