/* Login Popup — override the variables below in your theme to restyle. */
.lp {
	--lp-bg: #fff;
	--lp-text: #1e1e1e;
	--lp-muted: #646970;
	--lp-border: #c3c4c7;
	--lp-accent: #2271b1;
	--lp-accent-text: #fff;
	--lp-error: #d63638;
	--lp-error-bg: #fcf0f1;
	--lp-info: #00a32a;
	--lp-info-bg: #edfaef;
	--lp-radius: 8px;
	--lp-width: 400px;
	--lp-backdrop: rgba(0, 0, 0, .55);

	box-sizing: border-box;
	width: min(var(--lp-width), calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	margin: auto;
	padding: 0;
	border: 0;
	border-radius: var(--lp-radius);
	background: var(--lp-bg);
	color: var(--lp-text);
	box-shadow: 0 20px 50px rgba(0, 0, 0, .3);
	overflow: auto;
	font-size: 15px;
	line-height: 1.5;
}

.lp *,
.lp *::before,
.lp *::after {
	box-sizing: inherit;
}

.lp[hidden],
.lp [hidden] {
	display: none !important;
}

/* Fallback for browsers without <dialog>. */
.lp:not([open]) {
	display: none;
}
.lp[open] {
	display: block;
	position: fixed;
	inset: 0;
	height: fit-content;
	z-index: 100000;
}

.lp::backdrop {
	background: var(--lp-backdrop);
}

html.lp-is-open {
	overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
	.lp[open] {
		animation: lp-in .18s ease-out;
	}
	@keyframes lp-in {
		from { opacity: 0; transform: translateY(8px) scale(.98); }
		to { opacity: 1; transform: none; }
	}
}

.lp__inner {
	position: relative;
	padding: 28px 24px 20px;
}

.lp__sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.lp__close {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--lp-muted);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
}
.lp__close:hover,
.lp__close:focus-visible {
	background: rgba(0, 0, 0, .06);
	color: var(--lp-text);
}

.lp__tabs {
	display: flex;
	gap: 4px;
	margin: 0 32px 20px 0;
	border-bottom: 1px solid var(--lp-border);
}

.lp__tab {
	flex: 1;
	margin: 0 0 -1px;
	padding: 10px 8px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: none;
	color: var(--lp-muted);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}
.lp__tab[aria-selected="true"] {
	border-bottom-color: var(--lp-accent);
	color: var(--lp-text);
}

.lp__title {
	margin: 0 32px 16px 0;
	font-size: 1.3em;
	line-height: 1.3;
}

.lp__form p {
	margin: 0 0 14px;
}

.lp__field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 500;
}

.lp__input {
	display: block;
	width: 100%;
	min-height: 42px;
	padding: 8px 12px;
	border: 1px solid var(--lp-border);
	border-radius: calc(var(--lp-radius) / 2);
	background: var(--lp-bg);
	color: var(--lp-text);
	font: inherit;
}
.lp__input:focus {
	border-color: var(--lp-accent);
	outline: 2px solid transparent;
	box-shadow: 0 0 0 1px var(--lp-accent);
}
.lp__input[aria-invalid="true"] {
	border-color: var(--lp-error);
}

.lp__password {
	position: relative;
	display: block;
}
.lp__password .lp__input {
	padding-right: 44px;
}

.lp__toggle-pass {
	position: absolute;
	top: 0;
	right: 0;
	width: 42px;
	height: 100%;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--lp-muted);
	cursor: pointer;
}
.lp__toggle-pass:hover,
.lp__toggle-pass:focus-visible {
	color: var(--lp-accent);
}

/* Eye icon drawn with CSS so no icon font is required. */
.lp__eye {
	position: relative;
	display: inline-block;
	width: 18px;
	height: 11px;
	border: 2px solid currentColor;
	border-radius: 75% 15%;
	transform: rotate(45deg);
	vertical-align: middle;
}
.lp__eye::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 5px;
	height: 5px;
	margin: -2.5px 0 0 -2.5px;
	border-radius: 50%;
	background: currentColor;
}
.lp__toggle-pass.is-visible .lp__eye::after {
	content: "";
	position: absolute;
	top: 50%;
	left: -5px;
	width: 26px;
	height: 2px;
	margin-top: -1px;
	background: currentColor;
	transform: rotate(-90deg);
}

.lp__remember label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.lp__button {
	display: block;
	width: 100%;
	min-height: 44px;
	padding: 10px 16px;
	border: 0;
	border-radius: calc(var(--lp-radius) / 2);
	background: var(--lp-accent);
	color: var(--lp-accent-text) !important;
	font: inherit;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	cursor: pointer;
}
.lp__button:hover,
.lp__button:focus-visible {
	filter: brightness(1.1);
}
.lp__button:disabled {
	opacity: .65;
	cursor: wait;
}

.lp__form.is-busy .lp__button {
	position: relative;
	color: transparent !important;
}
.lp__form.is-busy .lp__button::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border: 2px solid var(--lp-accent-text);
	border-right-color: transparent;
	border-radius: 50%;
	animation: lp-spin .7s linear infinite;
}
@keyframes lp-spin {
	to { transform: rotate(360deg); }
}

.lp__note {
	color: var(--lp-muted);
	font-size: .92em;
}

.lp__links {
	text-align: center;
	font-size: .92em;
}
.lp__links a {
	color: var(--lp-accent);
}

.lp__messages:empty {
	display: none;
}
.lp__messages {
	margin-bottom: 14px;
}

.lp__message {
	margin: 0 0 6px;
	padding: 10px 12px;
	border-left: 4px solid var(--lp-info);
	border-radius: 2px;
	background: var(--lp-info-bg);
	font-size: .92em;
}
.lp__message--error {
	border-left-color: var(--lp-error);
	background: var(--lp-error-bg);
}
.lp__message a {
	color: inherit;
	text-decoration: underline;
}

/* ------------------------------------------------------------------
 * Hardening against theme/page-builder button & input styles
 * (e.g. ".elementor-kit-N button", "button:hover"). The doubled class
 * raises specificity above "class + element" and ":hover" theme rules.
 * The submit button intentionally keeps the theme's button style.
 * ------------------------------------------------------------------ */
.lp.lp .lp__tab:hover,
.lp.lp .lp__close:hover,
.lp.lp .lp__toggle-pass:hover,
.lp.lp .lp__tab:focus,
.lp.lp .lp__close:focus,
.lp.lp .lp__toggle-pass:focus {
	background: transparent;
	box-shadow: none;
	filter: none;
}

.lp.lp .lp__tab,
.lp.lp .lp__close,
.lp.lp .lp__toggle-pass {
	min-width: 0;
	min-height: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-transform: none;
	letter-spacing: normal;
	line-height: 1;
	filter: none;
}

.lp.lp .lp__tab {
	flex: 1;
	margin-bottom: -1px;
	padding: 12px 8px;
	border-bottom: 2px solid transparent;
	color: var(--lp-muted);
	font-weight: 600;
}
.lp.lp .lp__tab:hover,
.lp.lp .lp__tab:focus {
	border-bottom-color: transparent;
	color: var(--lp-text);
}
.lp.lp .lp__tab[aria-selected="true"],
.lp.lp .lp__tab[aria-selected="true"]:hover,
.lp.lp .lp__tab[aria-selected="true"]:focus {
	border-bottom-color: var(--lp-accent);
	color: var(--lp-text);
}

.lp.lp .lp__close {
	width: 36px;
	height: 36px;
	padding: 0;
	border-radius: 50%;
	color: var(--lp-muted);
	font-size: 26px;
}
.lp.lp .lp__close:hover,
.lp.lp .lp__close:focus-visible,
.lp.lp .lp__close:focus-visible:hover {
	background: rgba(0, 0, 0, .06);
	color: var(--lp-text);
}

.lp.lp .lp__toggle-pass {
	width: 42px;
	height: 100%;
	padding: 0;
	color: var(--lp-muted);
}
.lp.lp .lp__toggle-pass:hover,
.lp.lp .lp__toggle-pass:focus {
	color: var(--lp-accent);
}

.lp.lp .lp__input {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 8px 12px;
}
.lp.lp .lp__password .lp__input {
	padding-right: 44px;
}

.lp.lp .lp__button {
	width: 100%;
}
