@charset "UTF-8";

.cover{
	display: flex;
	position: fixed;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 70%;
}

#logon-message {
	font-family: var(--bs-font-sans-serif);
	font-weight: 300;
	padding: 10px 0 0 0;
	color: #fff700;
}

#logon-message:empty {
	padding: 0;
}

#remember-container {
	float: left;
	width: 100%;
	display: flex;
}

#remember-container div {
	width: 16px;
}

body {
	background-color: var(--background);

	overflow: hidden;
	
}

#selector-form{
	width:300px;
	margin: 60px auto;
}

/* Основной контейнер содержимого */
.content {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	width: 100%;
	height: 100%;
}

/* Форма */
.form {
	width: 400px;
	margin-top: 5%;
	display: flex;
	flex-direction: column;
	align-items: center;
	color: #fff;
	font-weight: 300;
	position: relative;
	/* для позиционирования элементов внутри */
}

/* Заголовок формы */
.form #title {
	font-family: BebasNeueBook;
}

/* Внутренние поля ввода */
.form input {
	width: 100%;
	border: none;
	border-radius: 0;
	padding: 10px;
	color: rgb(135, 135, 135);
	box-sizing: border-box;
	/* margin-bottom: 10px; */
}

/* Вторая строка ввода (например, пароль) */
.form input:nth-child(2) {
	padding: 10px;
}

.form [type="submit"] {
	font-weight: 300;
	background: var(--button-background);
	color: var(--button-color);
	padding: 8px 10px;
	border: 0 !important;
	border-radius: 5px;
	min-width: 110px;
	margin: 0 5px 0 0;
}

/* Блок кнопки — неактивная (при invalid) */
.form:has(input:invalid) [type="submit"] {
	pointer-events: none;
	font-weight: 300;
}

/* Иконка для активных кнопок */
.form:has(input:valid) [type="submit"]:before {
	content: "\f577";
	font-family: 'Font Awesome 5 Pro';
	font-weight: 300;
	margin-right: 10px;
}

/* Иконка для неактивных кнопок */
.form:has(input:invalid) [type="submit"]:before {
	content: "\f05e";
	/* иконка для неактивной формы */
	font-family: 'Font Awesome 5 Pro';
	font-weight: 300;
	margin-right: 10px;
}

/* Элемент для показа/скрытия пароля */
.form .show {
	display: none;
	position: absolute;
	right: 10px;
	cursor: pointer;
	color: #0e2844;
	font-family: 'Font Awesome 5 Pro';
	font-weight: 100;
}

/* Показывать элемент при валидном input */
.group:has(input:valid) .show {
	display: inherit;
}

/* Группа элементов (например, для пароля и глазика) */
.form .group {
	position: sticky;
	display: flex;
	align-items: center;
	width: 100%;
	margin-bottom: 10px;
}

/* Иконка для скрытия/показа пароля */
.form .group:has([type=password]) .show:after {
	content: "\f06e";
	/* иконка закрытого глаза */
}

/* Иконка для отключения/включения текста */
.form .group:has([type=text]) .show:after {
	content: "\f070";
	/* иконка открытого глаза/текста */
}
#footer{
	position: fixed;
	bottom: 0;
	display: flex;
	width: 100%;
	justify-content: space-between;
	padding: 0 5px;
	color: var(--color);
}


/* Мобильная адаптация */
@media (max-width: 767px) {
	html, body {
		align-items: center;
		/* выравнивание по вертикали */
		display: flex;
		height: 100%;
		width: 100%;
		justify-content: center;
	}

	.form {
		width: 80%;
		/* ширина формы на мобильных устройствах */
		margin-top: 20px;
		/* отступ сверху */
		align-items: center;
		/* центрирование содержимого */
		display: flex;
		margin-bottom: 90px;
	}

	/* Минимальная ширина кнопки */
	.form button {
		width: auto;
		min-width: 50%;
		/* минимальная ширина кнопки */
		font-size: 1rem;
	}

	/* Можно дополнительно добавить стили для элементов внутри формы при необходимости */
}
