
/* Кнопки авторизации в шапке */

.header-auth {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
}

.header-auth button,
.header-auth a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 9px 17px;
	border: 1px solid var(--color-accent);
	border-radius: 30px;
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: .2s ease;
}

.header-auth__login,
.header-auth__profile {
	background: transparent;
	color: var(--color-accent-dark);
}

.header-auth__register {
	background: var(--color-accent);
	color: #fff;
}

.header-auth__logout {
	background: var(--color-soft);
	color: var(--color-accent-dark);
}

.header-auth button:hover,
.header-auth a:hover {
	background: var(--color-accent-dark);
	border-color: var(--color-accent-dark);
	color: #fff;
}

/* Всплывающее окно */

.lc-auth-modal[hidden],
.lc-auth-modal__panel[hidden] {
	display: none !important;
}

.lc-auth-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	overflow-y: auto;
}

.lc-auth-modal__backdrop {
	position: fixed;
	inset: 0;
	background: rgba(45, 32, 39, .58);
	backdrop-filter: blur(3px);
}

.lc-auth-modal__dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	padding: 36px;
	overflow-y: auto;
	background: var(--color-surface);
	border: 1px solid var(--color-line);
	border-radius: var(--radius);
	box-shadow: 0 20px 70px rgba(40, 25, 33, .2);
	outline: none;
}

.lc-auth-modal__close {
	position: absolute;
	top: 12px;
	right: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--color-soft);
	color: var(--color-text);
	font-size: 25px;
	line-height: 1;
	cursor: pointer;
	transition: .2s ease;
}

.lc-auth-modal__close:hover {
	background: var(--color-accent);
	color: #fff;
}

/* Переключение между входом и регистрацией */

.lc-auth-modal__switch {
	display: flex;
	gap: 8px;
	margin: 0 25px 26px 0;
	padding: 5px;
	background: var(--color-soft);
	border-radius: 30px;
}

.lc-auth-modal__switch button {
	flex: 1;
	padding: 11px 14px;
	border: 0;
	border-radius: 25px;
	background: transparent;
	color: var(--color-muted);
	font: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: .2s ease;
}

.lc-auth-modal__switch button.is-active {
	background: #fff;
	color: var(--color-accent-dark);
	box-shadow: 0 3px 12px rgba(78, 52, 63, .08);
}

.lc-auth-modal__panel h2 {
	margin: 0 0 24px;
	color: var(--color-text);
	font-size: 25px;
	line-height: 1.25;
}

/* Поля форм */

.lc-auth-modal .lc-registration,
.lc-auth-modal .lc-login {
	width: 100%;
}

.lc-auth-modal form p {
	margin: 0 0 17px;
}

.lc-auth-modal form label {
	display: block;
	margin-bottom: 7px;
	color: var(--color-text);
	font-size: 14px;
	font-weight: 600;
}

.lc-auth-modal form input[type="text"],
.lc-auth-modal form input[type="email"],
.lc-auth-modal form input[type="password"] {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 11px 14px;
	border: 1px solid var(--color-line);
	border-radius: 12px;
	background: #fff;
	color: var(--color-text);
	font: inherit;
	font-size: 15px;
	box-sizing: border-box;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.lc-auth-modal form input:focus {
	border-color: var(--color-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(184, 121, 148, .13);
}

.lc-auth-modal form input[type="checkbox"] {
	accent-color: var(--color-accent);
}

.lc-auth-modal .lc-login-remember label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 400;
	cursor: pointer;
}

.lc-auth-modal form button[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	padding: 12px 20px;
	border: 0;
	border-radius: 30px;
	background: var(--color-accent);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease;
}

.lc-auth-modal form button[type="submit"]:hover {
	background: var(--color-accent-dark);
	transform: translateY(-1px);
}

.lc-auth-modal form a {
	color: var(--color-accent-dark);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.lc-auth-modal form a:hover {
	color: var(--color-text);
}

/* Сообщения об ошибках */

.lc-auth-modal .lc-message {
	margin-bottom: 18px;
	padding: 12px 15px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.5;
}

.lc-auth-modal .lc-message--error {
	background: #f9e9e9;
	color: #9b4141;
}

/* Ссылка на альтернативное действие */

.lc-auth-modal__bottom {
	margin: 22px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--color-line);
	color: var(--color-muted);
	font-size: 14px;
	text-align: center;
}

.lc-auth-modal__bottom button {
	padding: 0;
	border: 0;
	background: none;
	color: var(--color-accent-dark);
	font: inherit;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.lc-auth-modal__bottom button:hover {
	color: var(--color-text);
}

/* Блокировка прокрутки страницы */

body.lc-auth-modal-open {
	overflow: hidden;
}

/* Мобильная версия */

@media (max-width: 600px) {
	.header-auth {
		gap: 6px;
	}

	.header-auth button,
	.header-auth a {
		min-height: 36px;
		padding: 8px 11px;
		font-size: 12px;
	}

	.lc-auth-modal {
		align-items: flex-start;
		padding: 12px;
	}

	.lc-auth-modal__dialog {
		margin: auto 0;
		padding: 30px 22px 24px;
		border-radius: 18px;
	}

	.lc-auth-modal__panel h2 {
		font-size: 22px;
	}

	.lc-auth-modal__switch button {
		padding: 10px 8px;
		font-size: 13px;
	}
}

/* Бегущая строка для неавторизованных посетителей */

.guest-notice {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding: 11px 0;
	background: linear-gradient(90deg, #ead5de, #f5e8ed, #ead5de);
	border-bottom: 1px solid #dfc2ce;
	color: #70475b;
}

.guest-notice::before,
.guest-notice::after {
	position: absolute;
	top: 0;
	z-index: 2;
	width: 45px;
	height: 100%;
	content: "";
	pointer-events: none;
}

.guest-notice::before {
	left: 0;
	background: linear-gradient(90deg, #ead5de, transparent);
}

.guest-notice::after {
	right: 0;
	background: linear-gradient(270deg, #ead5de, transparent);
}

.guest-notice__track {
	display: flex;
	width: max-content;
	align-items: center;
	animation: ladnaja-notice-scroll 35s linear infinite;
}

.guest-notice__track span {
	display: block;
	flex-shrink: 0;
	padding: 0 45px;
	font-size: 14px;
	font-weight: 600;
	letter-spacing: .2px;
	white-space: nowrap;
}

@keyframes ladnaja-notice-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-50%);
	}
}

.guest-notice:hover .guest-notice__track {
	animation-play-state: paused;
}

@media (max-width: 600px) {
	.guest-notice {
		padding: 10px 0;
	}

	.guest-notice__track span {
		padding: 0 25px;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.guest-notice__track {
		animation: none;
	}
}

