/*
 * Account security: signed-out notice, sign-in note, "choose a new password" screen.
 * Self-contained (token fallbacks) because the notice can appear on any page. Logical properties only.
 */

/* ---------- One-time notice (signed out by another device) ---------- */
.lx-access-notice {
	position: fixed;
	inset-block-start: 16px;
	inset-inline: 16px;
	z-index: 2147483100;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	max-inline-size: 560px;
	margin-inline: auto;
	padding-block: 14px;
	padding-inline: 18px 14px;
	border-radius: 14px;
	background: var(--lx-heading, #1e2053);
	box-shadow: 0 16px 40px rgba(20, 20, 60, 0.28);
	font-family: var(--lx-font, inherit);
	color: #fff;
	animation: lx-access-in 0.35s ease both;
}

.lx-access-notice p {
	margin: 0;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.7;
	color: #fff;
}

body .lx-access-notice .lx-access-notice__close {
	flex: none;
	inline-size: 30px;
	block-size: 30px;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.14) !important;
	box-shadow: none !important;
	font-size: 20px;
	line-height: 1;
	color: #fff !important;
	cursor: pointer;
}

@keyframes lx-access-in {
	from {
		opacity: 0;
		transform: translateY(-12px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.lx-access-notice {
		animation: none;
	}
}

/* ---------- Note under the sign-in button ---------- */
.lx-login-note {
	margin-block: 12px 0;
	font-size: 13px;
	line-height: 1.6;
	text-align: center;
	color: var(--lx-muted, #6b6e86);
}

/* ---------- "Choose a new password" screen ---------- */
body.lx-password-screen {
	margin: 0;
	background: var(--lx-wash, #f5f4fc);
}

/* Only the form: site-wide footer outputs (menus, cart, notices) are not shown on this screen. */
body.lx-password-screen > :not(.lx-pw):not(script):not(style):not(link) {
	display: none !important;
}

.lx-pw {
	display: grid;
	place-items: center;
	min-block-size: 100vh;
	padding: 16px;
	box-sizing: border-box;
}

.lx-pw__card {
	display: grid;
	gap: 14px;
	inline-size: 100%;
	max-inline-size: 440px;
	padding-block: 28px;
	padding-inline: 22px;
	border-radius: var(--lx-radius-lg, 20px);
	background: var(--lx-surface, #fff);
	box-shadow: 0 18px 48px rgba(30, 32, 83, 0.1);
	box-sizing: border-box;
	font-family: var(--lx-font, inherit);
	color: var(--lx-text, #2d2f4a);
}

.lx-pw__logo {
	display: flex;
	justify-content: center;
}

.lx-pw__logo img {
	inline-size: auto;
	max-block-size: 54px;
}

body .lx-pw .lx-pw__title {
	margin: 0;
	font-family: var(--lx-font-heading, inherit) !important;
	font-size: 22px !important;
	font-weight: 800 !important;
	line-height: 1.45 !important;
	text-align: center;
	color: var(--lx-heading, #1e2053) !important;
}

.lx-pw__text,
.lx-pw__hint {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	text-align: center;
	color: var(--lx-muted, #6b6e86);
}

.lx-pw__hint {
	margin-block-start: -4px;
	font-size: 12px;
	text-align: start;
}

.lx-pw__error {
	margin: 0;
	padding-block: 10px;
	padding-inline: 14px;
	border-radius: 10px;
	background: #fdecec;
	font-size: 14px;
	font-weight: 600;
	color: #b42318;
}

.lx-pw__field {
	display: grid;
	gap: 6px;
	font-size: 14px;
	font-weight: 700;
	color: var(--lx-heading, #1e2053);
}

.lx-pw__field input {
	inline-size: 100%;
	block-size: 48px;
	padding-inline: 14px;
	border: 1.5px solid rgba(30, 32, 83, 0.16);
	border-radius: 12px;
	background: #fff;
	box-sizing: border-box;
	font-size: 16px;
	text-align: start;
}

.lx-pw__field input:focus {
	outline: none;
	border-color: var(--lx-accent, #4a45b5);
	box-shadow: 0 0 0 3px rgba(var(--lx-accent-rgb, 74, 69, 181), 0.18);
}

body .lx-pw .lx-pw__submit {
	inline-size: 100%;
	justify-content: center;
	margin-block-start: 4px;
}

.lx-pw__logout {
	justify-self: center;
	font-size: 13px;
	color: var(--lx-muted, #6b6e86) !important;
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (min-width: 600px) {
	.lx-pw__card {
		padding-block: 36px;
		padding-inline: 34px;
	}
}
