/* Форма входа (php_fns/user_autorize.php) — редизайн 2026-09-03,
   приведена к общей палитре сайта (#4B1E00, Roboto/PT Serif Caption),
   раньше была отдельным чужеродным стилем (белый бокс без тени,
   красная кнопка #C5203E/Oswald, без крестика закрытия). */
.window {
	box-sizing: border-box;
	display: flex;
	justify-content: center;
	align-items: center;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease;
	background: #fff;
	width: min(90vw, 340px);
	height: auto;
	border-radius: 10px;
	padding: 32px 26px 26px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

#boxes form {
	width: 100%;
	text-align: center;
	position: relative;
}

.window-title {
	margin: 0 0 18px;
	font-family: 'PT Serif Caption', serif;
	color: #4B1E00;
	font-size: 19px;
	text-align: center;
}

#boxes .close {
	position: absolute;
	top: -18px;
	right: -16px;
	width: 30px;
	height: 30px;
	border: none;
	background: transparent;
	color: #4B1E00;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
}
#boxes .close:hover { color: #B1B1B1; }

.window-msg {
	background: #fdf4e7;
	border: 1px solid #f0dcb8;
	color: #a35b00;
	border-radius: 6px;
	padding: 10px 12px;
	margin: 0 0 14px;
	font-size: 13px;
	line-height: 1.4;
}

#boxes .type {
	box-sizing: border-box;
	border: solid 1px rgba(158, 158, 158, 0.20);
	border-radius: 4px;
	height: 44px;
	margin: 0 0 12px 0;
	width: 100%;
	padding: 0 12px;
	background: #eee;
	color: #4B1E00;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	transition: border-color .2s;
}
#boxes .type:focus {
	outline: none;
	border-color: #4B1E00;
	background: #fff;
}
#boxes .type::placeholder { color: #8a8a8a; }

#boxes .submit_btn {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 6px;
	padding: 12px 10px;
	background: #4B1E00;
	border: solid 1px #4B1E00;
	color: #fff;
	font-family: 'Roboto', sans-serif;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: .03em;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: all .2s;
}
#boxes .submit_btn:hover {
	background: #fff;
	color: #4B1E00;
}

#boxes .forgot-link {
	display: block;
	margin-top: 14px;
	color: #4B1E00;
	font-family: 'Roboto', sans-serif;
	font-size: 12px;
	text-decoration: underline;
	text-align: center;
}
#boxes .forgot-link:hover { color: #8a8a8a; }

/* Заглушка на страницах личного кабинета (user_edit/user_list/user_order/
   users_collection), пока пользователь не вошёл — раньше был либо голый
   текстовый линк "Sign In", либо (user_order.php) вообще ничего не
   выводилось. Все 4 страницы уже noindex, здесь только контент. */
.auth-required {
	text-align: center;
	padding: 50px 20px;
	max-width: 420px;
	margin: 0 auto;
}
.auth-required h3 {
	/* Глобальный h3{text-align:left;width:100%;max-width:1200px} в main.css
	   бьёт центрирование родителя — явных text-align/width здесь не было,
	   а без него общее правило для h3 всё равно побеждает по каскаду. */
	text-align: center;
	width: auto;
	max-width: none;
	font-family: 'PT Serif Caption', serif;
	color: #4B1E00;
	margin: 0 0 12px;
}
.auth-required p {
	color: #6E645E;
	font-family: 'Roboto', sans-serif;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 22px;
}
.auth-required .btn_block {
	justify-content: center;
	margin: 0;
}
