@font-face {
    font-family: Karla;
    src: url(../ms/fonts/KarlaRegular.ttf);
}

@font-face {
    font-family: Karla-bold;
    src: url(../ms/fonts/KarlaBold.ttf);
}

@font-face {
    font-family: Gloriola;
    src: url(../ms/fonts/MSGloriolaIIStdReg.ttf);
}

@font-face {
    font-family: Gloriola-light;
    src: url(../ms/fonts/MSGloriolaIIStdLight.ttf);
}

html {
    height: 100%;
    font-family: Karla;
    font-size: 14px;
}

body {
    height: 100%;
    margin: 0;
    background: url(../ms/assets/background.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

*, *:before, *:after {
    box-sizing: border-box;
  }

h3 {
    font-family: Gloriola-light;
    font-size: 30px;
    color: #333333;
    font-weight: normal;
}

p {
    margin: 0;
    letter-spacing: normal;
}

.btn {
    width: 100%;
    height: 48px;
    border-radius: 24px;
    padding: 12px 40px;
    font-size: 16px;
    cursor: pointer;
}

.btn-primary {
    background-color: #187aba;
    color: #fff;
    font-family: Karla-bold;
    font-size: 16px;
    border: none;
}

.btn-primary:hover, .btn-primary:focus {
    background-color: #002b51;
}

.btn-primary:active {
    box-shadow: 0 0 0 4px rgba(24, 122, 186, 0.4);
}

.btn-primary:disabled {
    background-color: #dadada;
}

.btn-secondary {
    background-color: #fff;
    color: #187aba;
    font-family: Karla-bold;
    font-size: 16px;
    border: 1px solid #187aba;
}

.btn-secondary:hover, .btn-secondary:focus {
    background-color: #005c90;
    color: #fff;
    border: 1px solid #005c90;
}

.btn-secondary:active {
    background-color: #005c90;
    color: #fff;
    border: 1px solid #005c90;
    box-shadow: 0 0 0 4px rgba(24, 122, 186, 0.4);
}

.container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.background-image {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.background-image-terms {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    position: relative;
    padding-bottom: 40px;
}

.brand-logo {
    position: absolute;
    top: 80px;
    left: 80px;
}

.ms-mobile-logo {
    display: none;
}

.form-content-mfa {
    width: 430px;
    min-height: 560px;
    max-height: 600px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 40px 0 0;
    padding: 80px 60px 40px 60px;
}

.lang-dropdown {
    position: absolute;
    top: 20px;
    right: 15px;
}

.dropdown-menu {
    border: none;
    text-transform: capitalize;
    font-family: Karla-bold;
    font-size: 14px;
    color: #187aba;
    cursor: pointer;
}

.form-title {
    text-align: center;
    margin-bottom: 40px;
}

.form-title > h3 {
    margin-bottom: 40px;
}

.form-title > p {
    font-size: 16px;
}

.card-body {
    width: 100%;
}

.input-group:focus-within label {
    color: #187aba;
}

.form-group:focus-within label {
    color: #187aba;
}

.form-group {
    margin-bottom: 32px;
}

.form-group button:not(:last-of-type) {
    margin-bottom: 16px;
}

.form-control {
    display: block;
    width: 100%;
    height: 40px;
    padding: 6px 12px 6px 0px;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.5;
    color: #333333;
    background-color: #fff;
    background-clip: padding-box;
    border: none;
    border-bottom: 1px solid #333333;
    border-radius: 0px;
    transition: border-color 0.15s ease-in-out;
    outline: none;
}

.form-control:focus {
    background-color: #fff;
    border-bottom: 1px solid #187aba;
}

.form-control#Password {
    padding: 6px 55px 6px 0px;
}

.input-password {
    position: relative;
}

.hide-password-toggle, .show-password-toggle {
    position: absolute;
    right: 10px;
    top: 30px;
    font-size: 16px;
    color: #187aba;
    cursor: pointer;
}

.input-validation-error {
    background-color: #fcf7f7;
    color: #aa0000;
    border-bottom: 2px solid #aa0000;
}

a {
    color: #187aba;
    font-family: Karla-bold;
    line-height: 1.57;
    cursor: pointer;
    text-decoration: none;
}

a:hover {
    color: #002b51;
}

.retrieve-credentials-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px 0;
    white-space: nowrap;
}

.retrieve-credentials-links a:not(:last-of-type) {
    margin-bottom: 16px;
}

.container-terms {
    width: 1120px;
    height: 864px;
    margin: auto 0;
    background-color: #ffffff;
}

.terms-header {
    height: 78px;
    font-family: Karla-bold;
    font-weight: bold;
    font-size: 20px;
    padding: 24px 0px;
    text-align: center;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
}

.terms-footer {
    height: 112px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 32px 64px;
    box-shadow: 0 -1px 2px 0 rgba(0, 0, 0, 0.1);

}

.scroll-down {
	text-align: center;
	position: relative;
	bottom: 12px;
	font-weight: bold;
}

.scroll-down-img {
	vertical-align: middle;
}

/* Error state */

.validation-summary-errors {
    display: flex;
}

.validation-summary-errors ul {
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.validation-summary-errors::before {
    content: url(../ms/assets/icons-alerts-error.svg);
    margin-right: 5px;
}

.alert {
    width: 310px;
    height: auto;
    padding: 16px;
    font-size: 16px;
    border: 1px solid #aa0000;
    margin-bottom: 24px;
}

.error {
    color: #aa0000 !important;
}

.field-validation-error::before {
	content: url(../ms/assets/icons-alerts-error.svg);
	margin-right: 5px;
	position: relative;
	top: 5px;
}

.warning-notification {
	display: none;
	justify-content: space-between;
	width: 310px;
	height: 56px;
	padding: 8px 16px 16px;
	font-size: 16px;
	border: 1px solid #bb831b;
	margin-bottom: 24px;
}

.warning-notification span::before {
	content: url(../ms/assets/IconsAlertsErrorInlineOutline.svg);
	margin-right: 10px;
	position: relative;
	top: 5px;
}

.dismiss-capsLock {
	padding-top: 8px;
}

/* The Modal (background) */
.modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgb(0,0,0);
	background-color: rgba(0,0,0,0.4);
}

/* Modal Content/Box */
.modal-content {
	background-color: #fff;
	margin: 15% auto;
	padding: 20px;
	border: 1px solid #888;
	width: 450px;
	color: #333333;
}

.modal-title {
	font-size: 20px;
	font-weight: bold;
	text-align: center;
	margin-bottom: 46px;
}

.modal-block {
	font-size: 14px;
	margin-bottom: 27px;
	color: #333333;
	white-space: nowrap;
}

.modal-block p {
	line-height: 22px;	
}

.modal-icon {
	position: relative;
	top: 8px;
	padding-right: 10px;
}

/* The Close Button */
.close {
	color: #333333;
	float: right;
	font-size: 28px;
	font-weight: bold;
	position: relative;
	bottom: 5px;
}

.close:hover,
.close:focus {
	color: black;
	text-decoration: none;
	cursor: pointer;
}

/* Hide Cookie Consent */
.cc-window {
	display: none !important;
}

::-ms-reveal {
    display: none !important;
}

@media screen and (min-width:360px) and (max-width:1000px) {
    .background-image {
        background-image: none;
    }

    .background-image-terms {
        background-image: none;
        position: fixed;
        padding-bottom: 0px;
    }

    .brand-logo {
        display: none;
    }

    .form-content {
        width: 100%;
        height: 100%;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        margin: 0;
        padding: 80px 60px 40px 60px;
    }

    footer {
        height: 100%;
        background-color: #002b51;
        margin-top: auto;
    }
    
    .footer-content {
        height: 100%;
        display: flex;
        flex-direction: column;
        color: #fff;
    }

    .footer-content div:last-of-type {
        text-align: center;
    }

    form >div:last-of-type {
        margin-bottom: 24px;
    }

    .contact-us {
        text-align: center;
    }
    
    .footer-external-ressources {
        height: inherit;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 16px;
    }
    
    .footer-documents {
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-documents a {
        font-size: 14px;
        font-family: Karla-bold;
        color: #fff;
        margin-bottom: 16px; 
    }
    
    .certifications {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .certifications a img {
        margin-bottom: 16px;
    }
    
    .footer-copyright {
        font-size: 12px;
        color: #fff;
    }

	.modal-content {
		width: 100%;
		margin: 50% auto;
	}

    .container-terms {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
    }
    
    .terms-header {
        height: 32px;
        font-family: Karla-bold;
        font-size: 16px;
        padding: 24px 0px;
        text-align: center;
        box-shadow: none;
    }

    .terms-content {
        height: 100%;
    }

    .terms-footer {
        height: 190px;
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
        align-items: center;
        padding: 24px 16px;
        box-shadow: 0 -1px 4px 0 rgba(0, 0, 0, 0.12);
    }
    
    .terms-footer div {
        width: 100%;
    }
    .terms-footer > div:first-of-type {
        margin-top: 16px;
    }

    iframe {
        width: 100%;
        height: 100%;
    }

    .ms-mobile-logo {
        display: block;
        position: absolute;
        top: 10px;
        left: 15px;
    }

    .update-agreement-container {
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0px;
        left: 0px;
        z-index: 1;
        background-color: #FFFF;
    }
    
    .update-agreement-header {
        height: 62px;
        align-self: stretch;
        flex-grow: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0px 16px 0px;
    }
    
    .update-agreement-title {
        height: 30px;
        flex-grow: 1;
        font-family: Karla;
        font-size: 16px;
        font-weight: bold;
        font-stretch: normal;
        font-style: normal;
        line-height: 1.5;
        letter-spacing: normal;
        text-align: center;
    }
    
    .update-agreement-content {
        height: 119px;
        align-self: stretch;
        flex-grow: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 16px;
        padding: 0px 24px 8px;
    }
    
    .update-agreement-body {
        height: 96px;
        flex-grow: 1;
        font-family: Karla;
        font-size: 16px;
        font-weight: normal;
        font-stretch: normal;
        font-style: normal;
        line-height: 1.5;
        letter-spacing: normal;
        text-align: left;
    }
    
    .update-agreement-footer {
        height: 102px;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 55px 24px 35px;
        margin-top: auto;
    }
    
    .update-agreement-button-container {
        width: 100%;
        height: 48px;
    }
    
    .update-agreement-button {
        width: 100%;
        height: 48px;
        flex-grow: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 12px 40px;
        border-radius: 24px;
        background-color: #187aba;
    }
    
    .update-agreement-button-label {
        width: 168px;
        height: 19px;
        flex-grow: 0;
        font-family: Karla;
        font-size: 16px;
        font-weight: bold;
        font-stretch: normal;
        font-style: normal;
        line-height: 1.5;
        letter-spacing: normal;
        text-align: center;
        color: #ffff;
    }

    .btn {
        padding: 12px 10px;
    }
}

@media screen and (min-width:1000px) {
    .background-image {
        margin-bottom: auto;
        padding-bottom: 40px;
    }

    .background-image-terms {
        margin-top: auto;
    }
    .form-content {
        width: 430px;
        background-color: #fff;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        margin: 40px 40px auto 0;
        padding: 80px 60px 40px 60px;
    }

    .contact-us {
        margin-top: 40px;
        text-align: center;
    }
    
    footer {
        height: 60px;
        background-color: #002b51;
        margin-top: auto;
    }
    
    .footer-content {
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        color: #fff;
        padding: 0 80px;
    }
    
    .footer-external-ressources {
        display: flex;
        height: 60px;
        align-items: center;
    }
    
    .footer-documents {
        height: 100%;
        display: flex;
        align-items: center;
    }

    .footer-documents a {
        font-size: 12px;
        font-family: Karla-bold;
        color: #fff;
        margin-right: 8px;
    }
    
    .certifications {
        display: flex;
    }
    
    .certifications a img {
        margin-right: 10px;
        vertical-align: middle;
    }
    
    .footer-copyright {
        font-size: 12px;
        color: #fff;
    }

    iframe {
        width: 1120px;
        height: 674px;
    }

    .update-agreement-container {
        width: 570px;
        height: 302px;
        background-color: #FFFF;
        margin: auto;
    }
    
    .update-agreement-header {
        height: 62px;
        align-self: stretch;
        flex-grow: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0px 16px 0px;
    }
    
    .update-agreement-title {
        height: 30px;
        flex-grow: 1;
        font-family: Karla;
        font-size: 20px;
        font-weight: bold;
        font-stretch: normal;
        font-style: normal;
        line-height: 1.5;
        letter-spacing: normal;
        text-align: center;
    }
    
    .update-agreement-content {
        height: 119px;
        align-self: stretch;
        flex-grow: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: stretch;
        gap: 16px;
        padding: 0px 24px 8px;
    }
    
    .update-agreement-body {
        height: 96px;
        flex-grow: 1;
        font-family: Karla;
        font-size: 16px;
        font-weight: normal;
        font-stretch: normal;
        font-style: normal;
        line-height: 1.5;
        letter-spacing: normal;
        text-align: left;
    }
    
    .update-agreement-footer {
        height: 102px;
        align-self: stretch;
        flex-grow: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 55px 24px 35px;
    }
    
    .update-agreement-button-container {
        width: 183px;
        height: 48px;
        flex-grow: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 12px 40px;
        border-radius: 24px;
    }
    
    .update-agreement-button {
        width: 248px;
        height: 48px;
        flex-grow: 0;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 8px;
        padding: 12px 40px;
        border-radius: 24px;
        background-color: #187aba;
    }
    
    .update-agreement-button-label {
        width: 168px;
        height: 19px;
        flex-grow: 0;
        font-family: Karla;
        font-size: 16px;
        font-weight: bold;
        font-stretch: normal;
        font-style: normal;
        line-height: 1.5;
        letter-spacing: normal;
        text-align: center;
        color: #ffff;
    }
}

