@font-face {
    font-family: 'AvenirLTStd';
    src: url('/fonts/AvenirLTStd-Medium.woff2') format('woff2'),
      url('/fonts/AvenirLTStd-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'AvenirLTStd';
    src: url('/fonts/AvenirLTStd-Light.woff2') format('woff2'),
      url('/fonts/AvenirLTStd-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'AvenirLTStd';
    src: url('/fonts/AvenirLTStd-Roman.woff2') format('woff2'),
      url('/fonts/AvenirLTStd-Roman.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary-invert: #fff;
    --accent-color: #00a997;
    --alternate-hover-color: #e68d00;
    --button-secondary-color: var(--accent-color);
    --button-secondary-color-hover: #00887a;
    --default-color: #494949;
}

* {
    box-sizing: border-box;
    outline-width: 0px;
    outline-color: var(--accent-color);
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: auto;
    font-family: AvenirLTStd;
    text-rendering: geometricPrecision;
    color: var(--default-color);
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1 {
    color: #00a997;
    font-weight: 500;
    font-size: 40px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}

h2 {
    color: #494949;
    text-align: center;
    width: 100%;
    font-size: 17px;
    line-height: 1.375rem;
    font-weight: 300;
    margin-top: 0;
    margin-bottom: 15px;
}

hr {
    margin: 30px 0 30px 0;
    border-top: 1px solid #cecece;
    border-bottom: none;
    border-left: none;
    border-right: none;
    width: 100%;
}

p {
    color: #494949;
    font-size: 1rem;
    font-weight: 300;
}

/* --- */
/* --- --- */
/* PAGE, CONTENT CONTAINER & CARD */
/* --- --- */
/* --- */

.page {
    height: 100%;
    background: url(../media/connexion/ecran_de_connexion.png) repeat-x;
    background-size: cover;
}

@media (max-width: 1360px) {
    .content--container {
      width: 100%;
      margin-left: auto;
      margin-right: auto;
    }
}

.card {
    margin: 0 auto;
    flex-direction: column;
    padding: 40px 65px;
    max-width: 645px;
    position: relative;
    width: 100%;
    border-radius: 12px;
    background-color: #ffffff;
    -webkit-transition: all cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    transition: all cubic-bezier(0.4, 0, 0.2, 1) 300ms;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    box-shadow: 0 20px 46px 0 rgba(0, 0, 0, 0.12);
}

@media (max-width: 284px) {
    .card {
      padding: 20px 10px;
    }
}

/* --- */
/* --- --- */
/* INPUTS */
/* --- --- */
/* --- */

.custom--input {
    width: 100%;
    flex: 0 0 auto;
    position: relative;
    z-index: 1;
    margin-bottom: 13px;
}

.custom--input input {
    width: 100%;
    border: 1px solid #cecece;
    border-radius: 73px;
    height: 50px;
    font-size: 16px;
    line-height: 22px;
    color: #494949;
    padding: 14px 25px;
}

.custom--input input:focus {
    border-color: var(--accent-color);
}

.custom--input input::placeholder {
    color: #8F8F8F;
}

.input--wrapper {
    width: 100%;
    display: flex;
    align-items: center;
    font-size: 11px;
}

.input--error {
    border-color: red !important;
}

.text--error {
    color: red;
    font-size: 0.8rem;
    margin-left: 0.8rem;
}

.password--display {
    background-image: url('../media/icons/password-display-icon.svg');
    background-repeat: no-repeat;
    background-size: 30px 22px;
    height: 22px;
    width: 30px;
    padding-right: 10px;
    position: relative;
    right: 40px;
    cursor: pointer;
}

/* --- */
/* --- --- */
/* BLOCKS */
/* --- --- */
/* --- */

.block {
    flex-direction: row;
    display: flex;
    width: 100%;
    -webkit-box-pack: justify;
    justify-content: space-around;
    flex-wrap: wrap;
    margin-left: auto;
    margin-right: auto;
    align-items: flex-end;
}

.block--60 {
    width: 60%;
}

.block--80 {
    width: 80%;
}

@media (max-width: 500px) {
    .block--80,
    .block--60 {
        width: 100%;
        display: inline-block;
        text-align: center;
    }
}

.info--block {
    background-color: #e7f6f4;
    padding: 1rem;
    margin-top: 1rem;
}

.bolded {
    font-weight: bold;
    color: #01a997;
}

/* --- */
/* --- --- */
/* BUTTONS LINKS AND CONTAINERS */
/* --- --- */
/* --- */

.button {
    font-size: 16px;
    height: 55px;
    min-width: 187px;
    border-radius: 30px;
    border: transparent;
    padding: 0 30px;
    box-shadow: 0 14px 28px 0 rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 900;
    cursor: pointer;
    margin-top: 1rem;
    font-family: AvenirLTStd;
    transition: background-color 0.3s ease-in-out;
    background-color: var(--button-secondary-color);
    color: var(--primary-invert);
}

.button:disabled {
    opacity: 0.5;
}

.button:hover {
    background-color: var(--button-secondary-color-hover);
}

.container--links {
    display: flex;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    flex-direction: column;
    align-items: flex-start;
}

.button--link {
    color: #00a997;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    margin-top: 10px;
}

.button--link:before {
    content: '> ';
}

@media (max-width: 284px) {
    .button {
        width: 100%;
    }
}

/* --- */
/* --- --- */
/* CUSTOMER CARE BANNER*/
/* --- --- */
/* --- */

.banner--container {
    position: relative;
    cursor: pointer;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    width: 100%;
    height: 50px;
    background-color: #00a997;
    color: white;
    -webkit-box-pack: space-between;
    -webkit-justify-content: space-between;
    -ms-flex-pack: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 0px 20px;
}

@media (max-width: 1280px) {
    .banner--container {
        display: none;
    }
}

.banner--content {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-align-items: flex-end;
    -webkit-box-align: flex-end;
    -ms-flex-align: flex-end;
    align-items: flex-end;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -ms-flex-pack: center;
    justify-content: center;
    font-size: 14px;
    flex: 1;
}

.banner--phone--text {
    font-size: 16px;
    -webkit-text-decoration: underline;
    text-decoration: underline;
    margin: 0 10px;
    color: white;
}

/* --- */
/* --- --- */
/* STYLE SPECIFIC TO PAGE */
/* --- --- */
/* --- */

.ECPageConnexion {
    margin-top: 50px;
}

.connexion--submit {
    margin-top: 10px auto 0 auto;
}

.password--input {
    overflow: hidden;
    width: calc(100% + 28px);
}

.ECForgottenPassword {
    margin-top: 20px;
}

.margin--top--8{
    margin-top: 8px;
}

.subtitle {
    margin: 8px;
    font-weight: 500;
    color: #494949;
    text-align: center;
}

.separator {
    flex-direction: row;
    display: flex;
    width: 100%;
    -webkit-box-pack: justify;
    justify-content: space-between;
    align-items: center;
}

.or {
    color: #00A997;
    font-weight: 500;
    padding-left: 5px;
    padding-right: 5px;
}

.d-none {
    display: none;
}

.loader:before{
    background-image: url(../media/gif/ajax-loader.gif);
    width: 2.8rem;
    height: 2.8rem;
    background-size: 100%;
    content: '';
    position: relative;
    left: 0;
    top: 0;
    display: block;
    margin: auto auto auto;
}
