
:root {
	--modal-width: 478px;
	--modal-height: auto;
}

.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	background: rgba(0, 0, 0, .5);
	z-index: 9999;
}

.modal__container {
	display: flex;
	flex-direction: column;
	width: var(--modal-width);
	height: var(--modal-height);
	background-color: #fefefe;
	border-radius: 16px;
}

.modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 25px;
	height: 64px;
	box-shadow: 0 -7px 35px rgba(64, 91, 131, .1);
}

.modal__heading {
	font-weight: 700;
	font-size: 24px;
	padding: 0;
	margin: 0;
}

.modal__heading .back {
	display: inline-block;
	height: 12px;
	width: 8px;
	margin-right: 16px;
	background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iOCIgaGVpZ2h0PSIxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNNy40MSAxLjQxTDYgMCAwIDZsNiA2IDEuNDEtMS40MUwyLjgzIDZsNC41OC00LjU5eiIgZmlsbD0iIzJFMzIzMyIvPjwvc3ZnPg==");
	background-repeat: no-repeat;
	background-position: 0 0;
	cursor: pointer;
}

.modal__heading .back.nitro-lazy {
	background-image: none !important;
}

.modal-error__close:before, .modal__close:before {
	content: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTMiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0uNTIxIDEuMDIxQS45Ni45NiAwIDAxMS44MTguOTY1bC4wNi4wNTZMNiA1LjE0Mmw0LjEyMS00LjEyYS45Ni45NiAwIDAxMS40MTQgMS4yOTZsLS4wNTYuMDZMNy4zNTggNi41bDQuMTIgNC4xMjFhLjk2Ljk2IDAgMDEuMDU3IDEuMjk3bC0uMDU2LjA2YS45Ni45NiAwIDAxLTEuMjk3LjA1N2wtLjA2LS4wNTZMNiA3Ljg1OGwtNC4xMjEgNC4xMi0uMDYxLjA1N2EuOTYuOTYgMCAwMS0xLjIzNiAwbC0uMDYtLjA1Ni0uMDU3LS4wNjFhLjk2Ljk2IDAgMDEwLTEuMjM2bC4wNTYtLjA2TDQuNjQyIDYuNS41MjIgMi4zNzlsLS4wNTctLjA2MUEuOTYuOTYgMCAwMS41MjEgMS4wMnoiIGZpbGw9IiMwMDAiLz48L3N2Zz4=");
	width: 200px;
	height: 200px;
	cursor: pointer;
}

.modal-error__close:focus, .modal-error__close:hover, .modal__close:focus, .modal__close:hover {
	color: #000;
	text-decoration: none;
	cursor: pointer;
}

.modal-error__close:before {
	filter: invert(1);
}

.modal__form {
	width: 100%;
	display: flex;
	flex-direction: column;
	padding: 24px 54px 16px;
}

.modal__form-field {
	margin-bottom: 8px;
}

.modal__form-field:last-of-type {
	padding-bottom: 20px;
}

.modal__form-input.invalid {
	border-color: #fa5;
}

.modal__form-label {
	display: inline-block;
	margin-bottom: 8px;
	font-weight: 400;
}

.modal__form-error {
	font-size: 14px;
	font-weight: 700;
	color: #fa5;
	visibility: hidden;
	height: 0;
	margin: 8px 0;
}

.modal__form-button {
	width: 100%;
	position: relative;
}

.modal__form-button:disabled {
	background: #b899ff;
	color: #e7ddff;
}

.modal__form-button:not(:disabled) {
	color: #fff;
	background-color: #85f;
}

.modal__form-button--loading .button__text {
	visibility: hidden;
	opacity: 0;
}

.modal__form-button--loading {
	opacity: .7;
}

.modal__form-button--loading:disabled {
	cursor: not-allowed;
}

.modal__form-button--loading:active, .modal__form-button--loading:focus, .modal__form-button--loading:hover {
	background: linear-gradient(266.79deg, #7664ff 4.24%, #e36fc9 146.52%) !important;
}

.modal__form-button--loading:after {
	content: "";
	position: absolute;
	width: 24px;
	height: 24px;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	border: 2px solid transparent;
	border-top-color: #fff;
	border-radius: 50%;
	animation: button-loading-spinner 1s ease infinite;
}

.modal__footer {
	color: #8592ad;
	text-align: center;
	font-size: 16px;
}

.modal__message {
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 14px;
	padding: 44px 54px 0 44px;
}

.modal__message svg {
	margin-bottom: 1.5rem;
}

.modal__message p {
	margin-bottom: 2rem;
}

.modal__error {
	display: none;
	justify-content: space-between;
	background-color: #fa5;
	color: #fff;
	border-radius: 12px;
	margin: 20px 54px 0;
	padding: 12px;
}

.modal .button--close {
	width: fit-content;
	align-self: center;
	display: none;
}

.modal__privacy-disclaimer {
	margin: 10px auto 6px;
	width: 240px;
	text-align: center;
	font-size: 14px;
	color: #919899;
}

.modal-switch {
	margin: 32px auto 0;
	background-color: #ddd;
	border-radius: 40px;
	display: flex;
	height: 32px;
	width: 210px;
	padding: 4px;
}

.modal-switch__login, .modal-switch__register {
	display: block;
	font-size: 12px;
	font-weight: 700;
	line-height: 24px;
	text-align: center;
	color: #8592ad;
	width: 101px;
	background-color: transparent;
	border-radius: 40px;
	cursor: pointer;
}

.modal-switch__login.disabled, .modal-switch__register.disabled {
	cursor: default;
	background-color: #fff;
	color: #29303d;
}

.form-step--2 {
	display: none;
}

@keyframes button-loading-spinner {
	0% {
		transform: rotate(0turn);
	}
	
	to {
		transform: rotate(1turn);
	}
}

#loginModal .modal__footer {
	margin-bottom: 32px;
}

#registerFormStep1 {
	padding-bottom: 3px;
}

#recoverPasswordModal .modal__container {
	padding-bottom: 54px;
}

.modal__sso {
	display: none;
	margin-bottom: .8rem;
}

.sso__button {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 1px solid #a3adc2;
	border-radius: 45px;
	padding: .4rem .8rem;
	width: 100%;
	text-align: center;
	font-size: .8rem;
	cursor: pointer;
	text-decoration: none;
	font-weight: bolder;
	line-height: 20px;
	height: 44px;
}

.sso__button-text {
	margin: 0 0 0 .4rem;
}

.sso__button--apple .sso__button-text {
	margin-top: .2rem;
}

.sso__button:not(:last-of-type) {
	margin-bottom: .4rem;
}

.sso__divider {
	margin: .5rem 0;
	font-size: .8rem;
}

.sso__divider, .sso__message {
	text-align: center;
	color: #919899;
}

.sso__message {
	display: none;
	font-size: 16px;
	width: 300px;
	margin: 10px auto;
}
