/* ============================================================
   Общий стиль страниц авторизации (system.auth.*)
   Подключается из шаблонов custom: восстановление и смена пароля.
   Логин-форма (system.auth.authorize/templates/custom) пока
   держит собственную копию этих правил в своём style.css.
   ============================================================ */
.bx-auth-page {
	position: relative;
	min-height: 100vh;
}

/* Спокойная градиент-подложка (монохром, не пёстрая) — на весь вьюпорт */
.bx-auth-page::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(160deg, #faf8f3 0%, #f3eee3 55%, #efe9db 100%);
}

/* Слой с анимацией частиц — на весь вьюпорт */
.bx-auth-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
}
.bx-auth-particles {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}
.bx-auth-particles canvas {
	display: block;
}

/* ============================================================
   Стеклянная карточка (glassmorphism)
   ============================================================ */
.bx-auth-card {
	position: relative;
	z-index: 1;
	background-color: rgba(255, 255, 255, .72);
	backdrop-filter: blur(20px) saturate(160%);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	border: 1px solid rgba(255, 255, 255, .7);
	border-radius: 1.75rem;
	box-shadow:
		0 30px 60px -18px rgba(24, 39, 75, .2),
		0 12px 28px -12px rgba(24, 39, 75, .12);
	padding: 2.75rem 2.75rem 2.25rem;
	animation: bx-card-in .7s cubic-bezier(.21, 1, .29, 1) both;
}
@keyframes bx-card-in {
	from { opacity: 0; transform: translateY(24px) scale(.97); }
	to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (max-width: 575.98px) {
	.bx-auth-card {
		padding: 1.75rem 1.5rem;
		border-radius: 1.25rem;
	}
}

/* ============================================================
   Тёмная тема
   ============================================================ */
[data-bs-theme="dark"] .bx-auth-page::before {
	background: linear-gradient(160deg, #0b1020 0%, #0e1430 55%, #0a1124 100%);
}
[data-bs-theme="dark"] .bx-auth-card {
	background-color: rgba(28, 30, 45, .55);
	border-color: rgba(255, 255, 255, .08);
	box-shadow:
		0 30px 60px -18px rgba(0, 0, 0, .55),
		0 12px 28px -12px rgba(0, 0, 0, .4);
}

/* ============================================================
   Уважение к настройке «уменьшить движение»
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	.bx-auth-card {
		animation: none !important;
	}
}
