:root {
	--color-bg: #fbfaf6;
	--color-line: #e3e2de;
	--color-dark: #282b30;
}

#modal-registration .new_template {
	background: var(--color-bg);
	padding: 10px 0;
}
#modal-registration .new_template a {
	text-decoration-skip-ink: none;
}
.modal-block:has(.new_template) {
	border-radius: 30px;
	overflow: hidden;
	cursor: default;
}
.modal-block:has(.new_template) .fancybox-close-small {
	background: transparent;
	width: 40px;
	height: 40px;
}
.modal-block:has(.new_template) .fancybox-close-small svg {
	width: 20px;
	height: 20px;
	display: block;
}
#modal-registration .new_template .auth_form {
	display: grid;
	grid-template-columns: 45% 55%; 
	grid-template-areas:
		"logo inputs_list"
		"auth_tabs inputs_list"
		"social_list inputs_list"
		"reg reg";
}
#modal-registration .new_template .btn {
	width: 100%;
	padding: 7px 40px;
}
#modal-registration .new_template .btn[name=register_submit_button] {
	margin-top: 10px
}
#modal-registration .new_template .auth_form > div {
	display: flex;
	margin: 0 30px;
}
#modal-registration .new_template .auth_form .logo {
	grid-area: logo;
	margin-bottom: 40px;
}
#modal-registration .new_template .auth_form .inputs_list {
	grid-area: inputs_list;
	border-left: 1px solid var(--color-line);
	padding: 10px 0 10px 30px;
	display: block;
}
#modal-registration .new_template .auth_form .auth_tabs {
	grid-area: auth_tabs;
	flex-direction: column;
	align-items: center;

}
#modal-registration .new_template .auth_form .social_list {
	grid-area: social_list;
	flex-direction: column;
	align-items: center;
	position: relative
}
#modal-registration .new_template .auth_form .reg,
#modal-registration .new_template .auth_form .auth {
	grid-area: reg;
	border-top: 1px solid var(--color-line);
	text-align: center;
	margin: 0;
	padding: 20px;
	display: block;
}

#modal-registration .new_template .auth_form .logo img {
	max-width: 200px;
}
#modal-registration .new_template .auth_form .auth_tabs .ttl {
	font-size: 20pt;
	font-weight: bold;
	margin-bottom: 10px;
}
#modal-registration .new_template .auth_form .auth_tabs .desc {
	font-size: 8pt;
	margin-bottom: 15px;
	text-align: center;
}
#modal-registration .new_template .auth_form .auth_tabs .tabs {
	font-size: 8pt;
	margin-bottom: 15px;
	border: 1px solid var(--color-line);
	border-radius: 10px;
	background: #fff;
	padding: 2px;
	display: flex;
	width: 100%;
	margin: 0 10px 10px 10px;
	max-width: 300px;
}
#modal-registration .new_template .auth_form .auth_tabs .tabs > a {
	font-size: 10pt;
	width: 50%;
	border-radius: 10px;
	color: #000;
	text-align: center;
	padding: 10px 0;
	transition: all 0.3s ease;
	display: flex;
	justify-content: center;
	align-items: center;
}
#modal-registration .new_template .auth_form .auth_tabs .tabs > a:before {
	display: inline-block;
	content: '';
	width: 24px;
	height: 24px;
	background: 50% 50% no-repeat;
}
#modal-registration .new_template  #tabs-modal_2 .auth_form .auth_tabs .tabs > a:before {
	display: none;
}
#modal-registration .new_template .auth_form .auth_tabs .tabs > a[data-tabs="mail"]:before {
	background-image: url(img/email-gray.svg);
}
#modal-registration .new_template .auth_form .auth_tabs .tabs > a[data-tabs="sms"]:before {
	background-image: url(img/phone-gray.svg);
}
#modal-registration .new_template .auth_form .auth_tabs .tabs > a.active[data-tabs="mail"]:before {
	background-image: url(img/email-white.svg);
}
#modal-registration .new_template .auth_form .auth_tabs .tabs > a.active[data-tabs="sms"]:before {
	background-image: url(img/phone-white.svg);
}
#modal-registration .new_template .auth_form .auth_tabs .tabs > a:not(.active) {
	cursor: pointer;
}
#modal-registration .new_template .auth_form .auth_tabs .tabs > a.active {
	background: var(--color-dark);
	color: #fff;
}
#modal-registration .new_template .auth_form .social_list .or_ttl {
	font-size: 8pt;
	width: 100%;
	text-align: center;
	position: relative;
	max-width: 300px;
	margin-top: 20px;
}
#modal-registration .new_template .auth_form .social_list .or_ttl:before,
#modal-registration .new_template .auth_form .social_list .or_ttl:after {
	content: '';
	width: 40%;
	height: 1px;
	background: var(--color-line);
	left: 0;
	position: absolute;
	display: block;
	top: 50%;
}
#modal-registration .new_template .auth_form .social_list .or_ttl:after {
	right: 0;
	left: initial;
}
#modal-registration .new_template .auth_form .social_list ul {
	padding: 10px 0 30px;
	display: flex;
	justify-content: space-between;
	gap: 10px;
	width: 90%;
}
#modal-registration .new_template .auth_form .social_list ul > li {
	width: 48%;
}
#modal-registration .new_template .auth_form .social_list ul a {
	display: flex;
	border-radius: 10px;
	border: 1px solid var(--color-line);
	color: #000;
	align-items: center;
	padding: 10px;
	justify-content: center;
	background: #fff;
}
#modal-registration .new_template .auth_form .social_list ul a span {
	padding-left: 6px;
	font-size: 13px;
}
#modal-registration .new_template .auth_form .social_list ul > li img {
	max-width: 22px;
	max-height: 22px;
	border-radius: 6px;
}
#modal-registration .new_template .auth_form .reg .desc,
#modal-registration .new_template .auth_form .auth .desc {
	font-size: 8pt;
}
#modal-registration .new_template .auth_form .reg a,
#modal-registration .new_template .auth_form .auth a {
	font-size: 10pt;
	color: #000;
	text-decoration: underline;
	cursor: pointer;
	display: inline;
}
#modal-registration .new_template .auth_form .reg a:hover,
#modal-registration .new_template .auth_form .auth a:hover {
	text-decoration: none;
}
#modal-registration .new_template .auth_form .form-data {
	display: flex;
	flex-direction: column;
	height: 100%;
	justify-content: center;
}
#modal-registration .new_template .auth_form .form-data .input-block {
	padding: 5px 5px 0;
	margin: 0 0 7px;
}
#modal-registration .new_template .auth_form .form-data .checkbox {
	padding: 5px 5px 0;
	margin: 0;
}
#modal-registration .new_template .auth_form .form-data .checkbox span {
	font-size: 10px;
}
#modal-registration .new_template .auth_form .form-data .checkbox span a {
	text-decoration:underline;
	color: #000;
}
#modal-registration .new_template .auth_form .form-data .checkbox span a:hover {
	text-decoration: none;
}
#modal-registration .new_template .auth_form .form-data .input-block input {
	padding: 10px;
	height: 48px;
}
#modal-registration .new_template .auth_form .form-data .input-block .input-block__text {
	font-size: 10px;
	top: 5px!important;
}
#modal-registration .new_template .auth_form .inputs_list .form {
	height: 100%;
	display: none;
	opacity: 0;
	transition: opacity 0.5s ease, display 0.5s ease;
}
#modal-registration .new_template .auth_form .inputs_list .form.active {
	height: 100%;
	display: block;
	opacity: 1;
}
#modal-registration .new_template .auth_form .inputs_list .position {
	padding: 5px;
}
#modal-registration .new_template .auth_form .inputs_list .position input {
	border: 1px solid var(--color-line);
	border-radius: 4px;
	padding: 10px;
	width: 100%;
}
#modal-registration .new_template .auth_form .inputs_list .position label {
	padding-bottom: 4px;
	font-size: 9pt;
}
#modal-registration .new_template .auth_form .inputs_list .align_right {
	text-align: right;
}
#modal-registration .new_template .auth_form .inputs_list .forgot {
	color: #000;
	margin-top: 5px;
	text-decoration: underline;
	display: inline-block;
}
#modal-registration .new_template .auth_form .inputs_list .forgot:hover {
	text-decoration: none;
}
#modal-registration .auth_sms {
	margin: 0;
	height: 100%;
	font-size: 10pt;
}
#modal-registration .new_template .auth_form .auth_sms.go .form-data.start,
#modal-registration .new_template .auth_form .auth_sms .form-data.code {
	display: none;
}
#modal-registration .new_template .auth_form .auth_sms .form-data.code .message {
	padding-bottom: 10px;
}
#modal-registration .new_template .auth_form .auth_sms .form-data.code .message span {
	display: block;
}
#modal-registration .new_template .auth_form .auth_sms.go .form-data.code {
	display: flex
}
.tab-modal__pane .captcha {
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
#modal-registration .new_template .auth_form .form-data .input-block input[name='captcha_word'] {
	height: 42px;
}
#modal-registration .new_template .auth_form .form-data .captcha .capcha {
	margin: 0;
}
#modal-registration .new_template .auth_form .form-data .captcha .input-block {
	margin: 0;
}
#modal-registration #tabs-modal_2:has(.tabs .active[data-tabs="cosm"]) .social_list {
	visibility: hidden;
}

@media only screen and (max-width : 700px) {
	
	#modal-registration .new_template .auth_form {
		grid-template-columns: 100%; 
		grid-template-areas:
			"logo"
			"auth_tabs"
			"inputs_list"
			"social_list"
			"reg";
	}
	#modal-registration #tabs-modal_2:has(.tabs .active[data-tabs="cosm"]) .social_list {
		display: none;
	}
	#modal-registration .new_template .auth_form .inputs_list {
		border-left: 0;
		padding-left: 0;
		padding-top: 0;
	}
	#modal-registration .new_template .auth_form .social_list {
		margin: 0;
	}
	#modal-registration .new_template .auth_form .social_list .or_ttl {
		max-width: initial;
	}
	#modal-registration .new_template .auth_form .inputs_list .form,
	#modal-registration .new_template .auth_form .inputs_list .form.active {
		height: initial;
	}
	.modal-block:has(.new_template) {
		max-width: 100%;
	}
	#modal-registration .new_template .auth_form .logo {
		margin-bottom: 15px;
	}
	#modal-registration .new_template .auth_form > div {
		margin: 0 15px;
	}
	#modal-registration .auth_form .error {
		padding-bottom: 5px;
	}
	.tab-modal {
		padding-top: 0;
	}
	#modal-registration .new_template .auth_form .social_list ul {
		padding: 0 0 10px;
	}
	#modal-registration .new_template .auth_form .reg,
	#modal-registration .new_template .auth_form .auth {
		padding: 10px;
	}
	#modal-registration .new_template .auth_form .auth_tabs .ttl {
		font-size: 16pt;
		margin-bottom: 5px;
	}
	#modal-registration .input-block input {
		font-size: 14px;
	}
}