@font-face {
	font-family: 'Involve';
	src: url('/static/fonts/involve/Involve-Regular.ttf') format('truetype');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Involve';
	src: url('/static/fonts/involve/Involve-Oblique.ttf') format('truetype');
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Involve';
	src: url('/static/fonts/involve/Involve-Medium.ttf') format('truetype');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Involve';
	src: url('/static/fonts/involve/Involve-MediumOblique.ttf') format('truetype');
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Involve';
	src: url('/static/fonts/involve/Involve-SemiBold.ttf') format('truetype');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Involve';
	src: url('/static/fonts/involve/Involve-SemiBoldOblique.ttf') format('truetype');
	font-weight: 600;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: 'Involve';
	src: url('/static/fonts/involve/Involve-Bold.ttf') format('truetype');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'Involve';
	src: url('/static/fonts/involve/Involve-BoldOblique.ttf') format('truetype');
	font-weight: 700;
	font-style: italic;
	font-display: swap;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Involve', Arial, sans-serif;
}

body {
	background-color: #ffffff;
	color: #333;
	min-height: 120vh;
	display: flex;
	flex-direction: column;
}

.container {
	width: 1196px;
	margin: 0 auto;
}

/* Header */
.header {
	background-color: #2aa034;
	padding: 16px 0;
	position: sticky;
	top: 0;
	z-index: 1000;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo-image {
	height: 33px;
	width: 187px;
}
.logo{
	max-height: 33px;
}

.btn-white {
	background-color: white;
	color: rgba(20, 20, 20, 1);
	padding: 15px 28px 13px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	display: inline-block;
	transition: background-color 0.3s;
}

.btn-white:hover {
	background-color: #ebebeb;
}

.btn-white:active {
	background-color: #e0e0e0;
}

.register-form {
	padding-top: 40px;
	text-align: center;
	flex: auto;
}

.register-form h2 {
	font-size: 36px; /* Увеличен размер шрифта */
	margin-bottom: 28px;
	font-weight: 600;
	max-width: 70%; /* Ширина заголовка 70% от полей ввода */
	margin-left: auto;
	margin-right: auto;
}

.register-form form {
	max-width: 590px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

/* Общие стили для полей ввода */
.register-form input,
.register-form select {
	padding: 15px;
	border: 2px solid transparent;
	border-radius: 8px;
	font-size: 16px;
	width: 100%;
	background-color: #f5f5f5; /* Изменено: цвет полей ввода */
	color: #333;
	font-weight: 600;
	transition: border-color 0.2s ease;
	background-color: #f5f5f5;
	height: 52px;
}

.register-form input:focus,
.register-form select:focus {
	outline: none;
	border-color: #000;
}

.register-form input::placeholder {
	color: #c2c2c2;
	font-size: 16px;
	font-weight: 400;
}

/* Стили для выпадающего списка предметов */
.subject-container {
	position: relative;
	width: 100%;
}

@media (min-width: 1280px) {
	.register-form .container {
		height: 650px;
	}
}

.subject-selector {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px;
	border: 2px solid transparent;
	border-radius: 10px;
	background-color: #f5f5f5;
	cursor: pointer;
	font-weight: 600;
	font-size: 16px;
	color: #333;
	transition: border-color 0.2s ease;
	height: 52px;
}

.subject-selector.active,
.subject-selector:focus {
	outline: none;
	border-color: #000;
}

.subject-selector .placeholder {
	color: #c2c2c2;
	font-weight: 400;
}

.subject-selector .arrow {
	font-size: 10px;
	color: #333;
}
.subject-selector img {
	transition: transform 0.3s ease; /* Плавная анимация поворота */
}

.subject-selector.active img {
	transform: rotate(
		180deg
	); /* Поворот на 180 градусов при активном состоянии */
}
.subject-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background-color: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	display: none;
	margin-top: 5px;
	overflow: hidden;
}

.subject-dropdown.show {
	display: block;
}

.subject-option {
	padding: 15px;
	cursor: pointer;
	transition: background-color 0.2s;
	background-color: #fff;
	font-weight: 600;
	text-align: left;
}

.subject-option.selected {
	background-color: #ebebeb;
}

.subject-option:hover {
	background-color: #ebebeb;
}

/* Стили для телефонного поля */
.phone-input-container {
	display: flex;
	width: 100%;
	border: 2px solid transparent;
	border-radius: 8px;
	background-color: #e0e0e0; /* Изменено: цвет поля телефона */
	overflow: visible;
	transition: border-color 0.2s ease;
	background-color: #f5f5f5;
	height: 52px;
}

.phone-input-container:focus-within,
.phone-input-container.active {
	border-color: #000;
}

.country-selector {
	background-color: #f5f5f5;
	position: relative;
	height: 50px;
	min-width: 30px;
	align-items: center;
}
.country-selector::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 60%; /* Высота линии (можно настроить) */
	width: 1px;
	background-color: #a0a0a0;
}
.selected-country {
	gap: 8px;
	display: flex;
	align-items: center;
	padding: 0 10px;
	cursor: pointer;
	height: 43px;
	font-weight: 600;
}

.selected-country img {
	margin-right: 5px;
}

.country-code-text {
	margin-right: 5px;
	color: #333;
	font-weight: 600;
}

.arrow {
	margin-left: 5px;
	font-size: 10px;
	color: #333;
}

.country-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	background-color: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 0 0 10px 10px; /* только нижние углы скруглены */
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	z-index: 1000;
	display: none;
	margin-top: 5px; /* Добавлен отступ сверху */
	overflow: hidden;
}

.country-dropdown.show {
	display: block;
}

.country-option {
	display: flex;
	align-items: center;
	padding: 15px;
	cursor: pointer;
	transition: background-color 0.2s;
	background-color: #f5f5f5;
	font-weight: 600;
}

.country-option.selected {
	background-color: #ebebeb;
}

.country-option:hover {
	background-color: #ebebeb;
}

.country-option img {
	margin-right: 10px;
}

.country-selector {
	background-color: #f5f5f5;
	position: relative;
	height: 100%;
	min-width: 120px; /* Увеличиваем минимальную ширину */
	display: flex;
	align-items: center;
	padding-right: 15px; /* Добавляем отступ справа */
}

.country-selector::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 60%;
	width: 1px;
	background-color: #a0a0a0;
}

.selected-country {
	display: flex;
	align-items: center;
	padding: 0 10px;
	height: 100%;
	cursor: pointer;
	font-weight: 600;
	width: 100%; /* Занимает всю доступную ширину */
	justify-content: space-between; /* Распределяет содержимое равномерно */
}

/* Стили для флага и кода страны */
.selected-country img:first-child {
	margin-right: 8px; /* Отступ между флагом и кодом */
}

/* Стили для стрелки */
.selected-country img:last-child {
	margin-left: auto; /* Прижимает стрелку к правому краю */
	transition: transform 0.3s ease; /* Для анимации поворота */
}

/* Поворот стрелки при активном состоянии */
.country-selector.active img:last-child {
	transform: rotate(180deg);
}

/* Обновляем стили для поля ввода телефона */
.phone-input-container input {
	border: none;
	flex: 1;
	padding: 15px;
	background-color: #f5f5f5;
	color: #333;
	font-weight: 600;
	height: 100%; /* Высота 100% от контейнера */
	padding-left: 15px; /* Добавляем отступ слева */
}
.phone-input-container input {
	border: none;
	flex: 1;
	padding: 15px;
	background-color: #f5f5f5;
	color: #333;
	font-weight: 600;
	height: 45px;
}

.phone-input-container input::placeholder {
	color: #c2c2c2;
	font-weight: 400;
}

/* Стили для поля пароля */
.password-container {
	position: relative;
	width: 100%;
}

.password-container input {
	padding-right: 40px;
}

.password-container img {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #333;
	font-size: 20px;
}

/* Стили для чекбокса */
.checkbox-container {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 16px;
	color: #141414;
	text-align: left;
	height: auto;
	font-weight: 600;
}

/* Обновленные стили для чекбокса */
.checkbox-container input[type='checkbox'] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	width: 20px;
	height: 20px;
	border: 1px solid #c2c2c2; /* Светло-серая граница */
	border-radius: 4px; /* Скругленные углы */
	background-color: #f5f5f5; /* Белый фон */
	cursor: pointer;
	position: relative;
	margin-top: 2px;
	outline: none;
	padding: 0;
}

.checkbox-container input[type='checkbox']:hover {
	background-color: #ebebeb;
}

.checkbox-container input[type='checkbox']:active {
	background-color: #e0e0e0;
}

/* Стиль для отмеченного чекбокса */
.checkbox-container input[type='checkbox']:checked {
	background-color: #2aa034; /* Зеленый фон при отмеченном состоянии */
	border-color: #2aa034;
}

.checkbox-container input[type='checkbox']:checked:hover {
	background-color: #6cb66c; /* Зеленый фон при отмеченном состоянии */
	border-color: #6cb66c;
}

.checkbox-container input[type='checkbox']:checked:active {
	background-color: #008411; /* Зеленый фон при отмеченном состоянии */
	border-color: #008411;
}

/* Добавляем галочку для отмеченного состояния */
.checkbox-container input[type='checkbox']:checked::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.checkbox-container label {
	font-size: 16px;
	color: #141414;
}

.checkbox-container a {
	color: #28a745;
	text-decoration: none;
}

.checkbox-container a:hover {
	text-decoration: underline;
}

/* Кнопка регистрации */
.btn-orange {
	background-color: #ff7a06;
	color: white;
	padding: 15px 25px;
	border: none;
	border-radius: 8px;
	text-decoration: none;
	font-size: 16px;
	display: inline-block;
	text-transform: uppercase;
	transition: background-color 0.3s;
	font-weight: 600;
}

.btn-orange:hover {
	background-color: #ff9c37;
}

.btn-orange:active {
	background-color: #f06306;
}

.or-divider {
	margin: 12px 0;
	text-align: center;
	color: #666;
}

.social-buttons {
	display: flex;
	justify-content: center;
	gap: 15px;
}

.social-button {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 0 13px;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	background-color: #fff;
	cursor: pointer;
	font-size: 16px;
	line-height: 24px;
	transition: background-color 0.3s;
	width: 100%;
	font-weight: 600;
	max-width: 290px;
	text-decoration: none;
	color: #333;
}

.social-button:hover {
	background-color: rgba(235, 235, 235, 1);
}

.social-button:active {
	background-color: rgba(224, 224, 224, 1);
}

.social-button img {
	width: 24px;
	height: 24px;
}

/* Footer */
.footer {
	background-color: #313131;
	color: #fff;
	padding: 20px 0;
	font-size: 20px;
	width: 100%;
}

.footer-content {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.footer-left {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-contacts p {
	margin: 5px 0;
}

.footer-contacts p a {
	cursor: pointer;
	color: white;
	text-decoration: none;
}

.footer-email a {
	color: #2aa034;
	text-decoration: none;
	display: block;
	margin-top: 10px;
}

.footer-email a:hover {
	text-decoration: underline;
}

.footer-copyright .highlight {
	color: #2aa034;
	font-weight: 400;
}

.footer-copyright {
	text-align: right;
}
.footer-contacts p,
.footer-copyright p {
	font-weight: normal; /* Нормальная (не жирная) толщина шрифта */
}

.footer-email{
	font-weight: 4	00;
}

.login-popup {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	justify-content: center;
	align-items: center;
}

.login-popup.active {
	display: flex;
}

.popup-content {
	background: #fff;
	padding: 20px;
	border-radius: 10px;
	position: relative;
	width: 300px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	text-align: center;
}

.popup-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #333;
}

.popup-form {
	display: none;
}

.popup-form.active {
	display: block;
}

.popup-form h2 {
	font-size: 24px;
	margin-bottom: 20px;
	color: #333;
	font-weight: 600;
}

.popup-form form {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.popup-form input {
	padding: 10px;
	font-size: 16px;
	border: 1px solid #ddd;
	border-radius: 5px;
	outline: none;
}

.popup-form .forgot-password {
	font-size: 14px;
	color: #27ae60;
	text-align: right;
	cursor: pointer;
	margin-bottom: 5px;
}

.popup-form .back-to-login {
	font-size: 14px;
	color: #27ae60;
	text-align: right;
	cursor: pointer;
	margin-bottom: 5px;
}

.popup-form .success-message {
	color: green;
	font-size: 14px;
	margin-bottom: 10px;
}

.popup-form .btn-orange {
	padding: 12px;
	font-size: 16px;
	border: none;
	border-radius: 5px;
	width: 100%;
	margin-top: 10px;
	font-weight: 600;
}

@media (min-width: 768px) and (max-width: 1279px) {
	.header {
		padding: 12px 0;
	}

	.container {
		width: 728px;
	}

	.logo-image {
		width: 168px;
		height: 30px;
	}
	.logo{
	max-height: 30px;
}

	.social-buttons {
		margin-bottom: 80px;
	}
}

@media (max-width: 767px) {
	.header {
		padding: 8px 0;
	}

	.container {
		width: 335px;
	}

	.btn-white {
		padding: 11px 28px 9px;
	}

	.logo-image {
		width: 90px;
		height: 16px;
	}
	.logo{
	max-height: 16px;
}
	.register-form {
		padding-top: 15px;
	}
	.register-form h2 {
		font-size: 20px;
		text-align: left;
		width: 100%;
		margin: 0;
		max-width: 100%;
		padding-bottom: 15px;
	}

	.checkbox-container input[type='checkbox'] {
		width: 26px;
	}

	.footer-content {
		flex-direction: column;
		font-size: 16px;
		gap: 16px;
	}

	.footer-copyright {
		text-align: left;
		order: 1;
	}

	.footer-left {
		order: 2;
		gap: 8px;
	}

	.social-buttons {
		margin-bottom: 25px;
	}
	.popup-content{
		width: 100%;
	}

}
.is-invalid {
	border: 2px solid red !important;
}

