/* WP-Hunter account modal
--------------------------------------------- */

body.wp-hunter-auth-open {
	overflow: hidden;
}

.wp-hunter-auth,
.wp-hunter-auth * {
	box-sizing: border-box;
}

.wp-hunter-auth {
	--auth-accent: #27e0ce;
	--auth-accent-strong: #1ba39c;
	--auth-link: #27e0ce;
	--auth-focus: #27e0ce;
	--auth-panel: #1d2327;
	--auth-panel-raised: #22292d;
	--auth-input: #191f23;
	--auth-border: rgba(39, 224, 206, 0.28);
	--auth-border-muted: #5f6c70;
	--auth-text: #f5f8f7;
	--auth-muted: #a6aba9;
	--auth-error: #ff858a;
	--auth-error-bg: rgba(214, 54, 56, 0.15);
	--auth-success: #62e9d8;
	--auth-success-bg: rgba(39, 224, 206, 0.12);
	width: min(30rem, calc(100vw - 2rem));
	max-width: 30rem;
	max-height: min(48rem, calc(100vh - 2rem));
	max-height: min(48rem, calc(100dvh - 2rem));
	padding: 0;
	overflow: hidden;
	color: var(--auth-text);
	background: linear-gradient(145deg, var(--auth-panel-raised), var(--auth-panel));
	border: 1px solid var(--auth-border);
	border-radius: 1.125rem;
	box-shadow: 0 1.5rem 5rem rgba(0, 0, 0, 0.58), 0 0 2.5rem rgba(39, 224, 206, 0.08);
	font-family: inherit;
	line-height: 1.5;
	z-index: 99999;
}

html.light .wp-hunter-auth {
	--auth-panel: #ffffff;
	--auth-panel-raised: #f7faf9;
	--auth-input: #f2f5f4;
	--auth-border: rgba(27, 163, 156, 0.32);
	--auth-border-muted: #71807e;
	--auth-link: #087f76;
	--auth-focus: #087f76;
	--auth-text: #172226;
	--auth-muted: #5f6c6c;
	--auth-error: #b4232d;
	--auth-error-bg: rgba(214, 54, 56, 0.09);
	--auth-success: #087f76;
	--auth-success-bg: rgba(27, 163, 156, 0.1);
	box-shadow: 0 1.5rem 5rem rgba(9, 25, 25, 0.24), 0 0 2.5rem rgba(39, 224, 206, 0.1);
}

.wp-hunter-auth:not([open]) {
	display: none;
}

.wp-hunter-auth::backdrop {
	background: rgba(7, 12, 15, 0.8);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.wp-hunter-auth[open] {
	animation: wp-hunter-auth-enter 180ms ease-out both;
}

@keyframes wp-hunter-auth-enter {
	from {
		opacity: 0;
		transform: translateY(0.5rem) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.wp-hunter-auth__shell {
	position: relative;
	max-height: min(48rem, calc(100vh - 2rem));
	max-height: min(48rem, calc(100dvh - 2rem));
	overflow-x: hidden;
	overflow-y: auto;
	scrollbar-color: var(--auth-accent-strong) transparent;
}

.wp-hunter-auth__shell::before {
	position: absolute;
	top: -5rem;
	inset-inline-start: -4rem;
	width: 12rem;
	height: 12rem;
	background: radial-gradient(circle, rgba(39, 224, 206, 0.16), transparent 68%);
	pointer-events: none;
	content: "";
}

.wp-hunter-auth__header {
	position: relative;
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr) 2.75rem;
	gap: 0.875rem;
	align-items: start;
	padding: 1.75rem 1.75rem 1.375rem;
	border-bottom: 1px solid rgba(166, 171, 169, 0.12);
}

.wp-hunter-auth__brand-icon,
.wp-hunter-auth-page__icon {
	display: inline-grid;
	place-items: center;
	width: 3rem;
	height: 3rem;
	color: var(--auth-accent);
	background: rgba(39, 224, 206, 0.1);
	border: 1px solid rgba(39, 224, 206, 0.25);
	border-radius: 0.875rem;
	font-size: 1.125rem;
}

.wp-hunter-auth__heading {
	min-width: 0;
}

.wp-hunter-auth__eyebrow {
	display: block;
	margin-bottom: 0.15rem;
	color: var(--auth-link);
	font-size: 0.7rem;
	font-weight: 750;
	letter-spacing: 0.13em;
	line-height: 1.2;
	text-transform: uppercase;
}

.wp-hunter-auth__heading h2,
.wp-hunter-auth__panel-heading h3,
.wp-hunter-auth__account h3 {
	margin: 0;
	color: var(--auth-text);
	font-family: inherit;
	font-weight: 750;
	letter-spacing: -0.02em;
}

.wp-hunter-auth__heading h2 {
	font-size: clamp(1.25rem, 5vw, 1.55rem);
	line-height: 1.25;
}

.wp-hunter-auth__heading p,
.wp-hunter-auth__panel-heading p {
	margin: 0.35rem 0 0;
	color: var(--auth-muted);
	font-size: 0.875rem;
}

.wp-hunter-auth__close,
.wp-hunter-auth__password-toggle,
.wp-hunter-auth__text-link,
.wp-hunter-auth__back,
.wp-hunter-auth__tab {
	-webkit-appearance: none;
	appearance: none;
	font: inherit;
	cursor: pointer;
}

.wp-hunter-auth__close {
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	color: var(--auth-muted);
	background: rgba(166, 171, 169, 0.07);
	border: 1px solid rgba(166, 171, 169, 0.13);
	border-radius: 50%;
	font-size: 1.1rem;
	line-height: 1;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.wp-hunter-auth__close:hover {
	color: var(--auth-text);
	background: rgba(39, 224, 206, 0.1);
	border-color: var(--auth-border);
	transform: rotate(4deg);
}

.wp-hunter-auth__tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.25rem;
	margin: 1.25rem 1.75rem 0;
	padding: 0.25rem;
	background: var(--auth-input);
	border: 1px solid rgba(166, 171, 169, 0.1);
	border-radius: 0.75rem;
}

.wp-hunter-auth__tabs[hidden] {
	display: none !important;
}

.wp-hunter-auth__tab {
	min-height: 2.75rem;
	padding: 0.625rem 0.75rem;
	color: var(--auth-muted);
	background: transparent;
	border: 0;
	border-radius: 0.6rem;
	font-size: 0.875rem;
	font-weight: 700;
	line-height: 1.2;
	transition: color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.wp-hunter-auth__tab:hover {
	color: var(--auth-text);
	background: rgba(39, 224, 206, 0.06);
}

.wp-hunter-auth__tab.is-active {
	color: #172226;
	background: var(--auth-accent);
	box-shadow: 0 0.4rem 1.25rem rgba(39, 224, 206, 0.15);
}

.wp-hunter-auth__panel {
	padding: 1.5rem 1.75rem 1.75rem;
}

.wp-hunter-auth__panel[hidden],
.wp-hunter-auth__notice[hidden] {
	display: none !important;
}

.wp-hunter-auth__panel-heading {
	position: relative;
	margin-bottom: 1.25rem;
	padding-bottom: 0.9rem;
}

.wp-hunter-auth__panel-heading::after {
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 3.5rem;
	height: 2px;
	background: linear-gradient(90deg, var(--auth-accent), transparent);
	content: "";
}

.wp-hunter-auth__panel-heading h3,
.wp-hunter-auth__account h3 {
	font-size: 1.2rem;
	line-height: 1.3;
}

.wp-hunter-auth__form {
	display: grid;
	gap: 1rem;
	margin: 0;
}

.wp-hunter-auth__field {
	display: grid;
	gap: 0.45rem;
}

.wp-hunter-auth__field label,
.wp-hunter-auth__label-row label {
	margin: 0;
	color: var(--auth-text);
	font-size: 0.825rem;
	font-weight: 650;
}

.wp-hunter-auth__label-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	align-items: center;
	justify-content: space-between;
}

.wp-hunter-auth__text-link,
.wp-hunter-auth__back {
	min-height: 2.75rem;
	padding: 0;
	color: var(--auth-link);
	background: transparent;
	border: 0;
	font-size: 0.8rem;
	font-weight: 650;
	line-height: 1.3;
	text-decoration: none;
}

.wp-hunter-auth__text-link {
	min-height: auto;
}

.wp-hunter-auth__text-link:hover,
.wp-hunter-auth__back:hover {
	color: var(--auth-success);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.wp-hunter-auth__back {
	display: inline-flex;
	gap: 0.5rem;
	align-items: center;
	margin: -0.5rem 0 0.75rem;
}

.wp-hunter-auth__input-wrap {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 3.125rem;
	background: var(--auth-input);
	border: 1px solid var(--auth-border-muted);
	border-radius: 0.7rem;
	transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.wp-hunter-auth__input-wrap:focus-within {
	background: color-mix(in srgb, var(--auth-input) 93%, var(--auth-accent));
	border-color: var(--auth-focus);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-focus) 34%, transparent);
}

.wp-hunter-auth__input-wrap > i {
	position: absolute;
	inset-inline-start: 1rem;
	color: var(--auth-muted);
	font-size: 0.9rem;
	pointer-events: none;
}

.wp-hunter-auth__input-wrap input {
	width: 100%;
	min-width: 0;
	min-height: 3rem;
	margin: 0;
	padding-block: 0.7rem;
	padding-inline: 2.75rem 3rem;
	color: var(--auth-text);
	background: transparent;
	border: 0;
	border-radius: 0.7rem;
	box-shadow: none;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	outline: 0;
}

.wp-hunter-auth__input-wrap input:not([type="password"]):not([name="user_password"]) {
	padding-inline-end: 1rem;
}

.wp-hunter-auth__input-wrap:has(input[aria-invalid="true"]) {
	border-color: var(--auth-error);
	box-shadow: 0 0 0 3px rgba(255, 133, 138, 0.13);
}

.wp-hunter-auth__input-wrap input:-webkit-autofill,
.wp-hunter-auth__input-wrap input:-webkit-autofill:hover,
.wp-hunter-auth__input-wrap input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--auth-text);
	box-shadow: 0 0 0 1000px var(--auth-input) inset;
	transition: background-color 9999s ease-out;
}

.wp-hunter-auth__password-toggle {
	position: absolute;
	inset-inline-end: 0.25rem;
	display: inline-grid;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	color: var(--auth-muted);
	background: transparent;
	border: 0;
	border-radius: 0.55rem;
	font-size: 0.9rem;
}

.wp-hunter-auth__password-toggle:hover {
	color: var(--auth-link);
	background: rgba(39, 224, 206, 0.08);
}

.wp-hunter-auth__checkbox {
	display: inline-flex;
	gap: 0.625rem;
	align-items: center;
	width: fit-content;
	margin: -0.1rem 0 0;
	color: var(--auth-muted);
	cursor: pointer;
	font-size: 0.825rem;
	font-weight: 550;
}

.wp-hunter-auth__checkbox input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.wp-hunter-auth__checkbox span {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 1.125rem;
	height: 1.125rem;
	background: var(--auth-input);
	border: 1px solid var(--auth-border-muted);
	border-radius: 0.3rem;
	transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.wp-hunter-auth__checkbox span::after {
	width: 0.3rem;
	height: 0.55rem;
	border: solid #172226;
	border-width: 0 2px 2px 0;
	content: "";
	opacity: 0;
	transform: translateY(-1px) rotate(45deg) scale(0.7);
	transition: opacity 120ms ease, transform 120ms ease;
}

.wp-hunter-auth__checkbox input:checked + span {
	background: var(--auth-accent);
	border-color: var(--auth-accent);
}

.wp-hunter-auth__checkbox input:checked + span::after {
	opacity: 1;
	transform: translateY(-1px) rotate(45deg) scale(1);
}

.wp-hunter-auth__checkbox input:focus-visible + span {
	outline: 3px solid var(--auth-focus);
	outline-offset: 3px;
}

.wp-hunter-auth__notice {
	position: relative;
	margin: 0;
	padding-block: 0.75rem;
	padding-inline: 2.25rem 0.85rem;
	border: 1px solid transparent;
	border-radius: 0.65rem;
	font-size: 0.825rem;
	font-weight: 550;
	line-height: 1.45;
	outline: 0;
}

.wp-hunter-auth__notice::before {
	position: absolute;
	top: 0.75rem;
	inset-inline-start: 0.85rem;
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
}

.wp-hunter-auth__notice.is-error {
	color: var(--auth-error);
	background: var(--auth-error-bg);
	border-color: rgba(255, 133, 138, 0.28);
}

.wp-hunter-auth__notice.is-error::before {
	content: "\f06a";
}

.wp-hunter-auth__notice.is-success {
	color: var(--auth-success);
	background: var(--auth-success-bg);
	border-color: rgba(39, 224, 206, 0.25);
}

.wp-hunter-auth__notice.is-success::before {
	content: "\f058";
}

.wp-hunter-auth__submit,
.wp-hunter-auth-page__button {
	display: inline-flex;
	gap: 0.65rem;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 3.125rem;
	margin: 0;
	padding: 0.75rem 1rem;
	color: #172226;
	background: var(--auth-accent);
	border: 1px solid var(--auth-accent);
	border-radius: 0.7rem;
	box-shadow: 0 0.6rem 1.5rem rgba(39, 224, 206, 0.12);
	font: inherit;
	font-size: 0.9rem;
	font-weight: 750;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.wp-hunter-auth__submit:hover,
.wp-hunter-auth-page__button:hover {
	color: #172226;
	background: #48eadb;
	border-color: #48eadb;
	box-shadow: 0 0.75rem 1.8rem rgba(39, 224, 206, 0.2);
	transform: translateY(-1px);
}

.wp-hunter-auth__submit:active,
.wp-hunter-auth-page__button:active {
	background: var(--auth-accent-strong);
	border-color: var(--auth-accent-strong);
	transform: translateY(0);
}

.wp-hunter-auth__submit:disabled {
	cursor: wait;
	opacity: 0.68;
	transform: none;
}

.wp-hunter-auth__spinner {
	display: none;
	width: 1rem;
	height: 1rem;
	border: 2px solid rgba(23, 34, 38, 0.35);
	border-top-color: #172226;
	border-radius: 50%;
	animation: wp-hunter-auth-spin 650ms linear infinite;
}

.wp-hunter-auth__form.is-loading .wp-hunter-auth__spinner {
	display: inline-block;
}

@keyframes wp-hunter-auth-spin {
	to {
		transform: rotate(360deg);
	}
}

.wp-hunter-auth__panel-footer,
.wp-hunter-auth__noscript {
	margin: 1.25rem 0 0;
	color: var(--auth-muted);
	font-size: 0.825rem;
	text-align: center;
}

.wp-hunter-auth__panel-footer a,
.wp-hunter-auth__noscript a,
.wp-hunter-auth-page__link {
	color: var(--auth-link);
	font-weight: 650;
	text-decoration: none;
}

.wp-hunter-auth__panel-footer a:hover,
.wp-hunter-auth__noscript a:hover,
.wp-hunter-auth-page__link:hover {
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.wp-hunter-auth__honeypot {
	position: absolute !important;
	top: auto !important;
	inset-inline-start: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.wp-hunter-auth__account {
	display: grid;
	justify-items: center;
	padding-top: 2rem;
	text-align: center;
}

.wp-hunter-auth__account-icon {
	display: inline-grid;
	place-items: center;
	width: 4rem;
	height: 4rem;
	margin-bottom: 1rem;
	color: var(--auth-accent);
	background: var(--auth-success-bg);
	border: 1px solid var(--auth-border);
	border-radius: 50%;
	font-size: 1.75rem;
}

.wp-hunter-auth__account-name {
	margin: 0.7rem 0 0;
	color: var(--auth-text);
	font-size: 1rem;
	font-weight: 700;
}

.wp-hunter-auth__account-email {
	margin: 0.15rem 0 0;
	color: var(--auth-muted);
	font-size: 0.825rem;
	overflow-wrap: anywhere;
}

.wp-hunter-auth__account-actions {
	display: grid;
	gap: 0.75rem;
	width: 100%;
	margin-top: 1.5rem;
}

.wp-hunter-auth__secondary {
	display: inline-flex;
	gap: 0.55rem;
	align-items: center;
	justify-content: center;
	min-height: 2.875rem;
	padding: 0.65rem 1rem;
	color: var(--auth-text);
	background: transparent;
	border: 1px solid var(--auth-border-muted);
	border-radius: 0.7rem;
	font-size: 0.875rem;
	font-weight: 650;
	text-decoration: none;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.wp-hunter-auth__secondary:hover {
	color: var(--auth-link);
	background: rgba(39, 224, 206, 0.07);
	border-color: var(--auth-border);
}

.wp-hunter-auth :where(button, a, input):focus-visible,
.wp-hunter-auth-page :where(button, a, input):focus-visible,
.wp-hunter-auth-trigger:focus-visible {
	outline: 3px solid var(--auth-focus, #27e0ce);
	outline-offset: 3px;
}

/* Header trigger: retains the existing compact user icon with a larger hit area. */
a.login.wp-hunter-auth-trigger {
	position: relative;
	display: inline-grid;
	flex: 0 0 2.75rem;
	place-items: center;
	width: 2.75rem;
	height: 2.75rem;
	margin: -0.6rem;
	color: #f5f8f7;
	background: transparent;
	border: 1px solid transparent;
	border-radius: 50%;
	line-height: 1;
	text-decoration: none;
	transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

a.login.wp-hunter-auth-trigger:hover,
a.login.wp-hunter-auth-trigger:focus-visible {
	color: var(--color-secondary, #27e0ce);
	background: rgba(39, 224, 206, 0.1);
	border-color: rgba(39, 224, 206, 0.2);
}

a.login.wp-hunter-auth-trigger i::before {
	color: currentColor;
	font-size: 1.05rem;
}

.wp-hunter-auth-trigger__status {
	position: absolute;
	inset-inline-end: 0.35rem;
	bottom: 0.35rem;
	width: 0.45rem;
	height: 0.45rem;
	background: var(--color-secondary, #27e0ce);
	border: 2px solid var(--color-sidebar-dark, #1d2327);
	border-radius: 50%;
}

[dir="rtl"] .wp-hunter-auth__back i {
	transform: rotate(180deg);
}

/* Safe legacy Login page entry point. */
.wp-hunter-auth-page {
	display: grid;
	place-items: center;
	min-height: min(42rem, calc(100vh - var(--height-header, 4rem)));
	padding: clamp(2rem, 6vw, 5rem) 1rem;
}

.wp-hunter-auth-page__card {
	--auth-accent: #27e0ce;
	--auth-link: #27e0ce;
	--auth-focus: #27e0ce;
	--auth-text: #f5f8f7;
	--auth-muted: #a6aba9;
	width: min(30rem, 100%);
	padding: clamp(1.5rem, 5vw, 2.5rem);
	color: var(--auth-text);
	background: linear-gradient(145deg, #22292d, #1d2327);
	border: 1px solid rgba(39, 224, 206, 0.28);
	border-radius: 1.125rem;
	box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.32);
	text-align: center;
}

html.light .wp-hunter-auth-page__card {
	--auth-text: #172226;
	--auth-muted: #5f6c6c;
	--auth-link: #087f76;
	--auth-focus: #087f76;
	background: linear-gradient(145deg, #ffffff, #f2f5f4);
	box-shadow: 0 1.5rem 4rem rgba(9, 25, 25, 0.14);
}

.wp-hunter-auth-page__icon {
	margin-bottom: 1rem;
}

.wp-hunter-auth-page__card h1 {
	margin: 0;
	color: var(--auth-text);
	font-size: clamp(1.65rem, 5vw, 2.1rem);
}

.wp-hunter-auth-page__card p {
	margin: 0.75rem auto 1.5rem;
	color: var(--auth-muted);
	font-size: 0.95rem;
}

.wp-hunter-auth-page__actions {
	display: grid;
	gap: 1rem;
}

@media (max-width: 37.5rem) {
	.wp-hunter-auth {
		width: calc(100vw - 1.5rem);
		max-height: calc(100vh - 1.5rem);
		max-height: calc(100dvh - 1.5rem);
		border-radius: 1rem;
	}

	.wp-hunter-auth__shell {
		max-height: calc(100vh - 1.5rem);
		max-height: calc(100dvh - 1.5rem);
	}

	.wp-hunter-auth__header {
		grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
		gap: 0.7rem;
		padding: 1.25rem 1.15rem 1rem;
	}

	.wp-hunter-auth__brand-icon {
		width: 2.75rem;
		height: 2.75rem;
	}

	.wp-hunter-auth__heading p {
		display: none;
	}

	.wp-hunter-auth__tabs {
		margin: 1rem 1.15rem 0;
	}

	.wp-hunter-auth__panel {
		padding: 1.25rem 1.15rem 1.35rem;
	}

	.wp-hunter-auth__label-row {
		align-items: flex-start;
	}
}

@media (max-height: 35rem) and (max-width: 50rem) {
	.wp-hunter-auth {
		max-height: calc(100vh - 0.75rem);
		max-height: calc(100dvh - 0.75rem);
	}

	.wp-hunter-auth__shell {
		max-height: calc(100vh - 0.75rem);
		max-height: calc(100dvh - 0.75rem);
	}

	.wp-hunter-auth__header {
		padding-top: 1rem;
		padding-bottom: 0.85rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wp-hunter-auth[open],
	.wp-hunter-auth__spinner {
		animation-duration: 1ms;
	}

	.wp-hunter-auth *,
	.wp-hunter-auth-trigger,
	.wp-hunter-auth-page__button {
		scroll-behavior: auto !important;
		transition-duration: 1ms !important;
	}
}

@media (forced-colors: active) {
	.wp-hunter-auth,
	.wp-hunter-auth__input-wrap,
	.wp-hunter-auth__tabs,
	.wp-hunter-auth__notice {
		border: 1px solid CanvasText;
	}

	.wp-hunter-auth__tab.is-active,
	.wp-hunter-auth__submit,
	.wp-hunter-auth__checkbox input:checked + span {
		color: HighlightText;
		background: Highlight;
	}
}
