:root {
	--black: #000;
	--white: #fff;
	--orange: #ff590b;
	--deep-green: #005344;
	--bright-lilac: #b99fea;
	--deep-red: #95120b;
	--bright-orange: #ff9211;
	--bright-green: #cde966;
	--grey-wash: #f2f2f2;
	--dark-grey: #4a4a4a;
	--soft-black: #262626;
	--font: 'Manrope', sans-serif;
	--transition: 0.4s ease;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	background-color: var(--black);
	color: var(--white);
	font-family: var(--font);
	font-size: 14px;
	margin: 0;
	padding: 0;
}

.btn {
	background-color: var(--btn-bg-color, var(--black));
	border: 1px solid var(--btn-bg-border, var(--black));
	border-radius: 40px;
	color: var(--btn-text-color, var(--white));
	display: inline-block;
	font-family: var(--font);
	font-size: 14px;
	height: 40px;
	line-height: 38px;
	padding: 0 24px;
	position: relative;
	text-decoration: none;
	transition: var(--transition);
	transition-property: background, color;
}

.btn--white {
	--btn-bg-color: transparent;
	--btn-bg-border: var(--white);
	--btn-bg-color-hover: var(--white);
	--btn-text-color-hover: var(--black);
}

.btn--green {
	--btn-bg-color: var(--bright-green);
	--btn-bg-border: var(--bright-green);
	--btn-text-color: var(--black);
	--btn-bg-color-hover: var(--deep-green);
	--btn-text-color-hover: var(--white);
}

.btn:hover {
	background-color: var(--btn-bg-color-hover);
	color: var(--btn-text-color-hover);
}

.has-cover {
	background-position: center center;
	background-repeat: no-repeat;
	background-size: cover;
}

.content {
	bottom: 0;
	display: flex;
	flex-direction: column;
	left: 0;
	justify-content: flex-start;
	position: fixed;
	right: 0;
	top: 0;
	width: 100%;
}

.content--login {
	align-items: center;
	justify-content: center;
}

.wrap {
	margin: 0 auto;
	max-width: 800px;
	padding: 0 24px;
	width: 100%;
}

.header {
	margin-bottom: 8px;
	padding: 56px 0;
	width: 100%;
}

.header__title {
	font-size: 32px;
	font-weight: 200;
	line-height: 1.4;
	margin: 0;
	text-align: center;
}

.scratch {
	margin-bottom: 40px;
	width: 100%;
}

.scratch__inner {
	margin: 0 auto;
	position: relative;
	width: 400px;
}

.scratch__border {
	bottom: 0;
	left: 50%;
	position: absolute;
	transform: translateX(-50%);
	width: 448px;
}

.scratch__box {
	align-items: center;
	border-radius: 20px;
	display: flex;
	height: 400px;
	flex-direction: column;
	gap: 16px;
	justify-content: center;
	opacity: 0;
	overflow: hidden;
	padding: 32px;
	position: relative;
	text-align: center;
	user-select: none;
	width: 400px;
}

.scratch__box::before {
	background-color: rgba(0, 0, 0, 0.48);
	bottom: 0;
	content: '';
	left: 0;
	position: absolute;
	right: 0;
	top: 0;
}

.scratch__text {
	font-size: 40px;
	font-weight: 200;
	margin: 0;
	position: relative;
}

.scratch__button {
	margin-top: auto;
}

.scratch__canvas {
	border: 0;
	cursor: grab;
	left: 0;
	outline: 0;
	position: absolute;
	top: 0;
	transition: var(--transition);
	transition-property: opacity, visibility;
}

.scratch__cover {
	display: none;
}

.disclaimer {
	margin-bottom: 32px;
	width: 100%;
}

.disclaimer__text {
	font-size: 12px;
	margin: 0;
	text-align: center;
}

.footer {
	margin-top: auto;
	text-align: center;
	width: 100%;
}

.footer__inner {
	padding-bottom: 16px;
	width: 100%;
}

.footer__logo {
	display: inline-block;
	width: 72px;
}

.login-page {
	background-color: var(--deep-green);
	bottom: 0;
	display: flex;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
}

.login-page__image-wrap {
	align-items: center;
	display: flex;
	flex-direction: column;
	gap: 24px;
	justify-content: center;
	padding: 32px;
	text-align: center;
	width: 60%;
}

.login-page__description {
	font-size: 48px;
	font-weight: 200;
	margin: 0;
}

.login-page__image {
	border-radius: 24px;
	display: inline-block;
	max-width: 700px;
	width: 100%;
}

.login {
	align-items: center;
	background-color: var(--white);
	border-radius: 24px;
	color: var(--black);
	display: flex;
	flex-direction: column;
	justify-content: center;
	margin: 32px 32px 32px 0;
	padding: 32px;
	transition: padding var(--transition);
	width: calc(40% - 32px);
}

.login__inner {
	max-width: 400px;
	width: 100%;
}

.login__logo {
	margin-bottom: 16px;
	text-align: center;
	width: 100%;
}

.login__logo-img {
	display: inline-block;
	width: 96px;
}

.login__title {
	font-size: 24px;
	font-weight: 200;
	line-height: 1.4;
	margin: 0 0 8px;
	text-align: center;
}

.alert {
	background-color: var(--deep-red);
	border-radius: 8px;
	color: var(--white);
	font-size: 14px;
	line-height: 1.4;
	margin: 16px 0;
	padding: 12px 16px;
	text-align: center;
}

.form {
	width: 100%;
}

.form__row {
	width: 100%;
}

.form__row--error .form__input {
	border-color: var(--deep-red);
	color: var(--deep-red);
}

.form__row--error .form__error-message {
	display: block;
}

.form__row:not(:last-child) {
	margin-bottom: 8px;
}

.form__label {
	color: var(--soft-black);
	display: block;
	margin-bottom: 4px;
}

.form__input {
	background-color: var(--white);
	border: 1px solid var(--black);
	border-radius: 40px;
	box-shadow: none;
	font-family: var(--font);
	font-size: 14px;
	height: 40px;
	padding: 0 24px;
	width: 100%;
}

.form__input:focus,
.form__input:focus-visible {
	outline: none;
}

.form__error-message {
	color: var(--deep-red);
	display: none;
	font-size: 13px;
	margin-top: 2px;
}

.form__checkbox {
	position: relative;
}

.form__checkbox-input {
	height: 1px;
	left: 0;
	opacity: 0;
	position: absolute;
	top: 0;
	width: 1px;
}

.form__checkbox-input:checked ~ .form__checkbox-label::before {
	background-color: var(--black);
}

.form__checkbox-input:checked ~ .form__checkbox-label::after {
	opacity: 1;
}

.form__checkbox-label {
	cursor: pointer;
	line-height: 1.4;
	padding-left: 24px;
	position: relative;
}

.form__checkbox-label::before {
	border: 1px solid var(--black);
	border-radius: 2px;
	content: '';
	height: 16px;
	left: 0;
	position: absolute;
	top: 1px;
	transition: background var(--transition);
	width: 16px;
}

.form__checkbox-label::after {
	background: url(/images/ico-check.svg) left top no-repeat;
	background-size: 12px auto;
	content: '';
	height: 11px;
	left: 2px;
	position: absolute;
	top: 3px;
	width: 12px;
}

.form__actions {
	align-items: center;
	display: flex;
	justify-content: center;
	padding-top: 8px;
	width: 100%;
}

.form__submit {
	cursor: pointer;
}

.modal-overlay {
	align-items: center;
	background-color: rgba(0, 0, 0, 0.7);
	bottom: 0;
	display: flex;
	justify-content: center;
	left: 0;
	position: fixed;
	right: 0;
	top: 0;
	z-index: 9999;
}

.modal {
	animation: modalFadeIn 0.3s ease;
	max-width: 500px;
	padding: 24px;
	width: 90%;
}

@keyframes modalFadeIn {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.modal__content {
	background-color: var(--white);
	border-radius: 16px;
	padding: 32px;
	text-align: center;
}

.modal__content--success {
	border: 3px solid var(--black);
}

.modal__content--error {
	border: 3px solid var(--deep-red);
}

.modal__message {
	color: var(--black);
	font-size: 18px;
	line-height: 1.5;
	margin: 0 0 24px;
}

.modal__close {
	cursor: pointer;
}

.modal__close.btn:hover {
	color: var(--black);
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
	.login-page__image-wrap {
		width: 50%;
	}
	.login-page__description {
		font-size: 32px;
	}
	.login {
		width: calc(50% - 32px);
	}
}

@media only screen and (max-width: 767px) {
	.wrap {
		padding: 0 16px;
	}
	.header {
		margin-bottom: 4px;
		padding: 32px 0;
	}
	.header__title {
		font-size: 20px;
	}
	.scratch__inner {
		width: 270px;
	}
	.scratch__border {
		width: 300px;
	}
	.scratch__box {
		border-radius: 16px;
		height: 270px;
		width: 270px;
	}
	.scratch__text {
		font-size: 24px;
	}
	.login-page {
		flex-direction: column;
		padding: 16px;
	}
	.login-page__image-wrap {
		display: none;
	}
	.login {
		margin: auto;
		max-width: 400px;
		padding: 24px;
		width: 100%;
	}
}