/* =========================
   AUTH DRAWER / LOGIN / REGISTER
========================= */

.i-auth-drawer {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	justify-content: flex-end;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .28s ease, visibility .28s ease;
}

.i-auth-drawer.is-open {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.i-auth-overlay {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, .22);
	backdrop-filter: blur(8px);
}

.i-auth-panel {
	position: relative;
	z-index: 2;
	width: min(720px, 100%);
	height: 100vh;
	margin-left: auto;
	background: #fffefa;
	transform: translateX(100%);
	transition: transform .42s cubic-bezier(.77, 0, .18, 1);
	overflow: hidden;
}

.i-auth-drawer.is-open .i-auth-panel {
	transform: translateX(0);
}

.i-auth-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100vh;
	padding: 54px 72px 46px;
	box-sizing: border-box;
}

.i-auth-top {
	display: none;
}

.i-auth-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
	width: 100%;
	max-width: 540px;
	margin: 0 auto;
}

.i-auth-step {
	display: none;
	width: 100%;
}

.i-auth-step.is-active {
	display: block;
}

.i-auth-title {
	margin: 0 0 34px;
	font-size: 60px;
	font-weight: 400;
	line-height: .92;
	letter-spacing: -.065em;
	text-transform: uppercase;
	color: #006B54;
}

.i-auth-subtitle {
	margin: 0 0 30px;
	max-width: 410px;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -.03em;
	color: #2A2A2A;
}

.i-auth-subtitle strong {
	font-weight: 400;
	color: #111;
}

.i-auth-error {
	display: none;
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.35;
	color: #b42318;
}

.i-auth-error.is-visible {
	display: block;
}

.i-auth-field {
	display: flex;
	flex-direction: column;
	width: 100%;
	margin: 10px 0 24px;
}

.i-auth-label {
	display: block;
	margin-bottom: 2px;
	font-size: 11px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.02em;
	color: #22222;
	text-align: left;
}

.i-auth-input {
	width: 100%;
	height: 48px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid rgba(17, 17, 17, .18);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: -.03em;
	color: #111;
	text-align: left;
}

.i-auth-input::placeholder {
	color: #A9A8A6;
}

.i-auth-input:focus {
	border-color: #006B54;
}

select.i-auth-input {
	appearance: none;
	cursor: pointer;
	padding-right: 28px;
	background-image:
		linear-gradient(45deg, transparent 50%, #111 50%),
		linear-gradient(135deg, #111 50%, transparent 50%);
	background-position:
		calc(100% - 16px) 52%,
		calc(100% - 10px) 52%;
	background-size: 6px 6px;
	background-repeat: no-repeat;
}

.i-auth-submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: fit-content;
	min-width: 220px;
	height: 52px;
	padding: 0 34px;
	border: 0;
	border-radius: 999px;
	background: #94B9B1;
	color: #fffefa;
	font-size: 15px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -.025em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background .2s ease, opacity .2s ease;
}

.i-auth-submit:hover {
	background: #006B54;
}

.i-auth-submit:disabled {
	pointer-events: none;
	opacity: .65;
}

.i-auth-bottom {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	max-width: 540px;
	margin: 0 auto;
	padding-top: 36px;
}

.i-auth-bottom span {
	font-size: 16px;
	line-height: 1;
	letter-spacing: -.03em;
	color: #2A2A2A;
}

.i-auth-bottom a {
	display: inline-flex;
	align-items: center;
	height: 38px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	letter-spacing: -.03em;
	color: #006B54;
	text-decoration: none;
}

.i-auth-code {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	max-width: 310px;
	margin: 14px 0 28px;
}

.i-auth-code-input {
	width: 100%;
	height: 56px;
	padding: 0;
	border: 0;
	border-bottom: 1px solid rgba(17, 17, 17, .18);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	outline: none;
	text-align: center;
	font-size: 28px;
	font-weight: 400;
	line-height: 1;
	color: #111;
}

.i-auth-code-input:focus {
	border-color: #006B54;
}

.i-auth-resend {
	margin-bottom: 15px;
	font-size: 16px;
	line-height: 1.35;
	letter-spacing: -.03em;
	color: #222;
	margin-top: 15px;
}

.i-auth-resend a {
	color: #006B54;
	text-decoration: none;
}

.js-auth-resend.is-disabled,
.js-register-resend.is-disabled {
	pointer-events: none;
	opacity: .45;
}

.i-auth-or {
	margin: 12px 0 0;
	font-size: 14px;
	color: #A9A8A6;
}

.i-auth-change {
	display: inline-flex;
	width: fit-content;
	margin-top: 8px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1;
	color: #222;
	text-decoration: none;
}

.i-auth-change:hover {
	color: #006B54;
}


/* AUTH partner form height fix */

.i-auth-panel {
	overflow-y: auto;
}

.i-auth-inner {
	min-height: 100vh;
	height: auto;
}

.i-auth-step-register-partner .i-auth-title {
	font-size: 52px;
}

.i-auth-step-register-partner .i-auth-subtitle {
	margin-bottom: 20px;
}

.i-auth-step-register-partner .i-register-grid {
	row-gap: 12px;
}

.i-auth-step-register-partner .i-auth-input {
	height: 42px;
}

.i-auth-step-register-partner .i-auth-agree {
	margin: 18px 0 18px;
}

.i-auth-step-register-partner .i-auth-submit {
	height: 48px;
}

.i-register-types {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	width: 100%;
	margin-top: 30px;
}

.i-register-type {
	min-height: 124px;
	padding: 22px 20px;
	border: 1px solid rgba(17, 17, 17, .14);
	border-radius: 0;
	background: #fffefa;
	text-align: left;
	cursor: pointer;
	transition: border-color .2s ease, background .2s ease;
}

.i-register-type:hover,
.i-register-type.is-active {
	border-color: #006B54;
	background: rgba(0, 107, 84, .035);
}

.i-register-type-title {
	display: block;
	margin-bottom: 10px;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.05;
	letter-spacing: -.04em;
	color: #111;
}

.i-register-type-text {
	display: block;
	max-width: 210px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -.025em;
	color: rgba(17, 17, 17, .56);
}

.i-register-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	column-gap: 18px;
	row-gap: 18px;
	width: 100%;
}

.i-register-grid-full {
	grid-column: 1 / -1;
}

.i-auth-step-register-partner .i-auth-field,
.i-auth-step-register-client .i-auth-field {
	margin-bottom: 15px;
}

.i-auth-agree {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	width: 100%;
	margin: 22px 0 24px;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.35;
	letter-spacing: -.025em;
	color: #22222;
	cursor: pointer;
}

.i-auth-agree input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #006B54;
}

body.i-auth-locked {
	overflow: hidden;
}

/* TABLET / FULLSCREEN AUTH */

@media (max-width: 1200px) {
	.i-auth-drawer {
		justify-content: center;
		background: #fffefa;
	}

	.i-auth-overlay {
		display: none;
	}

	.i-auth-panel {
		width: 100%;
		max-width: none;
		min-width: 0;
		height: 100vh;
		transform: translateX(0);
		background: #fffefa;
	}

	.i-auth-inner {
		align-items: center;
		padding: 34px 32px 34px;
	}

	.i-auth-top {
		display: block;
		width: 100%;
		text-align: center;
	}

	.i-auth-logo {
		display: flex;
		justify-content: center;
		margin-bottom: 30px;
	}

	.i-auth-logo img {
		width: 142px;
		height: auto;
	}

	.i-auth-back {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		margin: 0 auto;
		font-size: 16px;
		line-height: 1;
		color: #222;
		text-decoration: none;
	}

	.i-auth-body {
		max-width: 684px;
		justify-content: center;
	}

	.i-auth-step {
		max-width: 684px;
		margin: 0 auto;
	}

	.i-auth-title {
		text-align: center;
		font-size: 72px;
	}

	.i-auth-subtitle {
		max-width: 430px;
		margin-left: auto;
		margin-right: auto;
		text-align: center;
		font-size: 16px;
	}

	.i-auth-submit {
		margin-left: auto;
		margin-right: auto;
	}

	.i-auth-bottom {
		justify-content: center;
		max-width: 684px;
	}

	.i-register-types,
	.i-register-grid {
		max-width: 684px;
		margin-left: auto;
		margin-right: auto;
	}
}

/* MOBILE */

@media (max-width: 640px) {
	.i-auth-inner {
		padding: 28px 25px 26px;
	}

	.i-auth-logo {
		margin-bottom: 32px;
	}

	.i-auth-logo img {
		width: 96px;
	}

	.i-auth-back {
		font-size: 15px;
	}

	.i-auth-body {
		max-width: 100%;
	}

	.i-auth-title {
		margin-bottom: 12px;
		font-size: 46px;
		line-height: .95;
		letter-spacing: -.06em;
	}

	.i-auth-subtitle {
		margin-bottom: 30px;
		font-size: 14px;
		line-height: 1.4;
	}

	.i-auth-field {
		max-width: 320px;
		margin-left: auto;
		margin-right: auto;
	}



	.i-auth-submit {
		width: 100%;
		max-width: 320px;
		height: 50px;
		margin-left: auto;
		margin-right: auto;
		font-size: 16px;
	}

	.i-auth-bottom {
		justify-content: center;
		gap: 8px;
		padding-top: 28px;
	}

	.i-auth-bottom span,
	.i-auth-bottom a {
		font-size: 14px;
	}

	.i-auth-code {
		max-width: 280px;
		margin-left: auto;
		margin-right: auto;
		gap: 14px;
	}

	.i-auth-code-input {
		height: 52px;
		font-size: 24px;
	}

	.i-auth-resend,
	.i-auth-or,
	.i-auth-change {
		text-align: center;
		margin-left: auto;
		margin-right: auto;
	}

	.i-register-types, .i-auth-payer-types {
		grid-template-columns: 1fr;
		gap: 12px;
		max-width: 320px;
		margin: 26px auto 40px!important;
	}

	.i-register-type {
		min-height: 108px;
		padding: 18px 18px;
	}

	.i-register-type-title {
		font-size: 20px;
	}

	.i-register-type-text {
		font-size: 13px;
	}

	.i-register-grid {
		grid-template-columns: 1fr;
		gap: 14px;
		max-width: 320px;
		margin: 0 auto;
	}

	.i-register-grid-full {
		grid-column: auto;
	}

	.i-auth-agree {
		max-width: 320px;
		margin: 18px auto 22px!important;
		font-size: 14px;
		text-align: left;
	}

	.i-auth-step-register-partner .i-auth-submit,
	.i-auth-step-register-client .i-auth-submit {
		width: 100%;
	}
}


.i-auth-back {
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}


.i-auth-error.is-visible {
	display: block;
	margin-bottom: 18px;
	color: #b42318;
	font-size: 13px;
	line-height: 1.35;
}

.i-auth-input:-webkit-autofill {
	-webkit-box-shadow: 0 0 0 1000px #fffefa inset;
	-webkit-text-fill-color: #111;
}


@media (max-width: 1200px) {
	.i-auth-back {
		margin-bottom: 82px;
	}
}

@media (max-width: 640px) {
	.i-auth-back {
		margin-bottom: 76px;
	}
	
	.i-auth-step{
	    text-align: center;
	}
}


.i-auth-step-register-client .i-register-types,
.i-auth-step-register-partner .i-register-types {
	margin: 0 0 32px;
}

.i-register-type.is-active {
	border-color: #006B54;
}

@media (max-width: 640px) {
	.i-auth-step-register-client .i-register-types,
	.i-auth-step-register-partner .i-register-types {
		margin-bottom: 28px;
	}
}