@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/fontawesome.min.css');

/**
 * Formulaire de connexion / création de compte
 */
.connect, .connect * { box-sizing:border-box; }

.connect {
    width: 50%;
    margin: 4rem auto;
    padding: 3rem 2rem 2rem 2rem;
    background: #fafafa;
    border: 1px solid #ebebeb;
    box-shadow: rgba(0,0,0,0.14902) 0 1px 1px 0,rgba(0,0,0,0.09804) 0 1px 2px 0;
}

.connect__title {
    color: #7F80A1;
    position: relative;
    margin-bottom: 32px;
    padding-bottom: 12px
}

.connect__title:after {
    content: '';
    display: block;
    background: #840415;
    width: 4rem;
    height: 3px;
    position: absolute;
    top: 100%;
    left: 50%;
    -webkit-transform: translatex(-50%);
    transform: translatex(-50%)
}

.connect .group {
    position: relative;
    margin-bottom: 45px;
}

.connect input[type="text"], .connect input[type="email"], .connect input[type="password"] {
    font-size: 18px;
    padding: 10px 10px 10px 5px;
    -webkit-appearance: none;
    display: block;
    background: #fafafa;
    color: #636363;
    width: 100%;
    border: none;
    border-radius: 0;
    border-bottom: 1px solid #757575;
}

.connect select {
    font-size: 18px;
    padding: 10px 10px 10px 5px;
    -webkit-appearance: none;
    display: block;
    background: #fafafa;
    color: #636363;
    width: 100%;
    border-radius: 0;
    border: 1px solid #757575;
}

.connect input:focus { outline: none; }


/* Label */

.connect label {
    color: #999;
    font-size: 18px;
    font-weight: normal;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 10px;
    transition: all 0.2s ease;
}


/* active */

.connect input:focus ~ label, .connect input.used ~ label {
    top: -20px;
    transform: scale(.75); left: -2px;
    /* font-size: 14px; */
    color: #840415;
}

/* Underline */

.connect .bar {
    position: relative;
    display: block;
    width: 100%;
}

.connect .bar:before, .connect .bar:after {
    content: '';
    height: 2px;
    width: 0;
    bottom: 1px;
    position: absolute;
    background: #840415;
    transition: all 0.2s ease;
}

.connect .bar:before { left: 50%; }

.connect .bar:after { right: 50%; }


/* active */

.connect input:focus ~ .bar:before, .connect input:focus ~ .bar:after { width: 50%; }


/* Highlight */

.connect .highlight {
    position: absolute;
    height: 60%;
    width: 100px;
    top: 25%;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}


/* active */

/* Animations */
@keyframes inputHighlighter {
    from { background: #4a89dc; }
    to 	{ width: 0; background: transparent; }
}

.connect input:focus ~ .highlight {
    animation: inputHighlighter 0.3s ease;
}

/* Lien mot de passe oublié */
.connect__reset {
    margin-top: 0.5rem
}

.connect .forgot-link {
    margin-top: 0.8rem;
    display: block;
    border: none;
    background: none;
    padding: 0;
    outline: none;
    text-decoration: none;
    color: #333333;
    font-size: 1rem;
    transition: all ease 200ms;
}

.connect .forgot-link:hover {
    cursor: pointer;
    color: #840415;
}

.connect .forgot-link:focus {
    color: #840415;
}

/* Séparateur */
.connect .separator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 2rem auto;
}

.connect .separator:before,
.connect .separator:after {
    content: '';
    height: 1px;
    background: #840415;
    width: auto;
    flex: 1;
}

.connect .separator span {
    border-radius: 99em;
    font-size: 0.875rem;
    height: 38px;
    width: 38px;
    border: 1px solid #840415;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 1rem;
}

/* Boutons */
.bpe-button {
    background: none;
    outline: none;
    background: #760312;
    font-size: 1rem;
    border: 2px solid transparent;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    padding: 0.625rem 1.375rem;
    vertical-align: middle;
    font-weight: 600;
    text-decoration: none;
    text-align: left;
    /*line-height: 24px;*/
    transition: all ease 300ms;
    -webkit-appearance: none;
}

.bpe-button:hover {
    background: #840415;
    color: #ffffff;
}

.bpe-button:focus {
    outline: none;
    background: #840415;
    box-shadow: 0 1px 5px 0 rgba(85, 79, 82, 0.6);
    color: #ffffff;
}

.bpe-button::-moz-focus-inner {
    border: 0;
}

.bpe-button:active {
    background: #840415;
}

.bpe-button:disabled,
.bpe-button.is-disabled {
    background-color: #e6ccd0;
    cursor: default;
}

button.bpe-button--full {
    width: 100%;
    text-align: center;
}

a.bpe-button--full:not(.bpe-button--logout) {
    display: block;
    text-align: center;
}

a.bpe-button--full.bpe-button--logout {
    text-align: center;
    font-weight: normal;
    padding: 0.425rem 0.850rem;
}

.bpe-button--full .bpe-button__icon:not(.bpe-hidden) {
    float: none;
    display: inline-block;
}

.bpe-button--secondary {
    background: #ffffff;
    border-color: #7F80A1;
    color: #7F80A1;
}

.bpe-button--secondary .bpe-button__icon {
    fill: #760312;
}

.bpe-button--secondary:hover {
    border-color: #840415;
    color: #840415;
    background: #ffffff;
}

.bpe-button--secondary:hover .bpe-button__icon {
    fill: #840415;
}

.bpe-button--secondary:focus {
    color: #840415;
    background: #ffffff;
}

.bpe-button--secondary:active {
    border-color: #840415;
    color: #840415;
    background: #ffffff;
}

.bpe-button--secondary:active .bpe-button__icon {
    fill: #840415;
}

.bpe-button--secondary:disabled {
    border-color: #e6ccd0;
    color: #e6ccd0;
    background: #ffffff;
    cursor: default;
}


/* Affichage des icones de conformité ou de non conformité */
.connect .login-error {
    transition: color .3s;
}
.connect .login-error:not(.login-password-error)::before {
    display: inline-block;
    width: 20px;
    content: "\f071";
    font-family: FontAwesome,sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1em;
}
.connect .login-error.login-password-error span::before {
    display: inline-block;
    width: 20px;
    content: "\f071";
    font-family: FontAwesome,sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1em;
}
.connect .login-error.login-password-error ul li::before {
    display: inline-block;
    width: 20px;
    content: "\f071";
    font-family: FontAwesome,sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1em;
}

.connect .login-conform {
    transition: color .3s;
}
.connect .login-conform::before {
    display: inline-block;
    width: 20px;
    content: "\f058";
    font-family: FontAwesome,sans-serif;
    font-weight: normal;
    font-style: normal;
    font-size: 1em;
}

.connect .login-proposition-password{
    margin-top: 0.8rem;
    display: block;
    border: none;
    background: none;
    padding: 0;
    outline: none;
    text-decoration: none;
    transition: all ease 200ms;
}