/**
 * WCA — Sign in / Register / Reset
 * Sliding panel auth (login.html inspired) + simple card for verify/reset.
 */
@import url("https://fonts.googleapis.com/css2?family=Figtree:wght@500;600;700&family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700&display=swap");

body.wca-auth-page .nv-page-title-wrap,
body.wca-auth-page .nv-page-title,
body.wca-auth-page .page-header,
body.wca-auth-page .entry-header,
body.wca-auth-page h1.entry-title,
body.wca-auth-page .neve-breadcrumbs-wrapper,
body.wca-auth-page .nv-title-meta-wrap,
body.wca-auth-page .nv-single-page-wrap > .nv-content-wrap > .page > .entry-header,
body.wca-auth-page .nv-content-wrap > article > .entry-header {
	display: none !important;
}

body.wca-auth-page #content,
body.wca-auth-page .nv-single-page-wrap,
body.wca-auth-page .nv-content-wrap,
body.wca-auth-page .nv-page-content,
body.wca-auth-page .entry-content {
	padding: 0 !important;
	margin: 0 !important;
	max-width: none !important;
	width: 100% !important;
}

body.wca-auth-page .nv-single-page-wrap,
body.wca-auth-page {
	background: #eef8f4 !important;
}

.wca-auth {
	--wca-deep: #0a3632;
	--wca-ink: #122e2a;
	--wca-mute: #4a6660;
	--wca-line: rgba(18, 46, 42, 0.14);
	--wca-paper: #ffffff;
	--wca-sand: #f4f7f5;
	--wca-teal: #14b89a;
	--wca-teal-deep: #0f9a80;
	--wca-mint: #a8ead9;
	--wca-font: "Figtree", Helvetica, Arial, sans-serif;
	--wca-display: "Bricolage Grotesque", "Figtree", Helvetica, Arial, sans-serif;
	--wca-slide-bg: #eef8f4;
	--wca-slide-grad-a: #0a3632;
	--wca-slide-grad-b: #14b89a;
	--wca-slide-input: #e8f3ef;
	--wca-slide-input-icon: #6b8a82;

	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--wca-font);
	color: var(--wca-ink);
	-webkit-font-smoothing: antialiased;
}

.wca-auth *,
.wca-auth *::before,
.wca-auth *::after {
	box-sizing: border-box;
}

/* ── Simple card (verify / reset) ───────────────────────────── */

.wca-auth--simple {
	background: var(--wca-slide-bg);
}

.wca-auth--simple .wca-auth__stage {
	display: flex;
	justify-content: center;
	align-items: flex-start;
	width: 100%;
	min-height: calc(100vh - 88px);
	padding: clamp(28px, 5vw, 56px) 16px 64px;
}

.wca-auth--simple .wca-auth__card {
	width: 100%;
	max-width: 420px;
	padding: clamp(28px, 4vw, 36px);
	background: var(--wca-paper);
	border: 1px solid var(--wca-line);
	border-radius: 16px;
}

.wca-auth__logo {
	display: inline-flex;
	align-items: center;
	margin-bottom: 22px;
	text-decoration: none;
}

.wca-auth__logo img {
	height: 32px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
}

.wca-auth__logo-fallback {
	font-family: var(--wca-display);
	font-size: 20px;
	font-weight: 700;
	color: var(--wca-deep);
	letter-spacing: -0.03em;
}

.wca-auth__brand h1 {
	margin: 0 0 8px !important;
	padding: 0 !important;
	font-family: var(--wca-display) !important;
	font-size: clamp(24px, 3vw, 28px) !important;
	line-height: 1.2 !important;
	font-weight: 700 !important;
	letter-spacing: -0.03em !important;
	color: var(--wca-deep) !important;
}

.wca-auth__brand p,
.wca-auth__footer,
.wca-auth__note {
	margin: 0;
	color: var(--wca-mute);
	font-size: 14px;
	line-height: 1.55;
	font-weight: 500;
}

.wca-auth__foot {
	margin-top: 22px;
	padding-top: 18px;
	border-top: 1px solid var(--wca-line);
}

.wca-auth__footer a,
.wca-auth__note a,
.wca-field__link {
	color: var(--wca-deep);
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wca-auth__footer a:hover,
.wca-field__link:hover {
	color: var(--wca-teal-deep);
}

/* ── Sliding panel auth ─────────────────────────────────────── */

.wca-auth--slide {
	background: var(--wca-slide-bg);
	overflow: hidden;
	max-width: 100%;
}

body.wca-auth-page {
	overflow-x: hidden !important;
}

body.wca-auth-page.header-footer-builder .site-footer,
body.wca-auth-page footer#site-footer,
body.wca-auth-page .hfg_footer {
	display: none !important;
}

.wca-auth__container {
	position: relative;
	width: 100%;
	max-width: 100%;
	min-height: calc(100vh - 72px);
	overflow: hidden;
	background: var(--wca-slide-bg);
}

/* Big curved circle — same geometry as login.html */
.wca-auth__container::before {
	content: "";
	position: absolute;
	width: 2000px;
	height: 2000px;
	border-radius: 50%;
	background: linear-gradient(-45deg, var(--wca-slide-grad-a), var(--wca-slide-grad-b));
	top: -10%;
	right: 48%;
	transform: translateY(-50%);
	z-index: 6;
	transition: 1.8s ease-in-out;
	pointer-events: none;
}

.wca-auth__forms-wrap {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	z-index: 2;
	overflow: hidden;
}

.wca-auth__forms {
	position: absolute;
	top: 50%;
	left: 75%;
	transform: translate(-50%, -50%);
	width: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	z-index: 5;
	transition: left 1s 0.7s ease-in-out;
}

.wca-auth__switch {
	position: relative;
	width: 100%;
	max-width: 480px;
	display: grid;
	grid-template-columns: 1fr;
}

.wca-auth-form {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	padding: 0 clamp(1.5rem, 5vw, 5rem);
	overflow: hidden;
	grid-column: 1 / 2;
	grid-row: 1 / 2;
	transition: opacity 0.2s 0.7s ease-in-out;
	width: 100%;
	max-width: 480px;
	margin: 0 auto;
}

.wca-auth-form--signin {
	z-index: 2;
	opacity: 1;
	visibility: visible;
}

.wca-auth-form--signup {
	z-index: 1;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.wca-auth__container--register .wca-auth-form--signin {
	z-index: 1;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.wca-auth__container--register .wca-auth-form--signup {
	z-index: 2;
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.wca-auth-form__title {
	margin: 0 0 6px;
	font-family: var(--wca-display);
	font-size: clamp(1.75rem, 3vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -0.03em;
	color: var(--wca-deep);
	text-align: center;
}

.wca-auth-form__lead {
	margin: 0 0 18px;
	max-width: 34ch;
	font-size: 0.9rem;
	font-weight: 500;
	line-height: 1.55;
	color: var(--wca-mute);
	text-align: center;
}

.wca-auth-field {
	position: relative;
	width: 100%;
	max-width: 100%;
	height: 52px;
	margin: 8px 0;
	background: var(--wca-slide-input);
	border-radius: 52px;
	display: grid;
	grid-template-columns: 52px 1fr 44px;
	align-items: center;
	padding: 0 6px 0 0;
	border: 1px solid transparent;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.wca-auth-field:focus-within {
	background: #fff;
	border-color: var(--wca-teal);
	box-shadow: 0 0 0 3px rgba(20, 184, 154, 0.18);
}

.wca-auth-field__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--wca-slide-input-icon);
}

.wca-auth-field__icon svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.wca-auth-field input {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 8px 0 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	color: var(--wca-ink) !important;
	font-family: var(--wca-font) !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	box-shadow: none !important;
	outline: none !important;
}

.wca-auth-field input::placeholder {
	color: #7a918c !important;
	font-weight: 500 !important;
}

.wca-auth-field__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--wca-slide-input-icon);
	cursor: pointer;
	flex-shrink: 0;
	position: relative;
}

.wca-auth-field__toggle svg {
	width: 18px;
	height: 18px;
	fill: currentColor;
	display: block;
}

/* Default (password hidden): slashed eye. Revealed: open eye. */
.wca-auth-field__toggle .wca-auth-field__eye-open {
	display: none !important;
}

.wca-auth-field__toggle .wca-auth-field__eye-closed {
	display: block !important;
}

.wca-auth-field__toggle.is-revealed .wca-auth-field__eye-closed {
	display: none !important;
}

.wca-auth-field__toggle.is-revealed .wca-auth-field__eye-open {
	display: block !important;
}

.wca-auth-field__toggle:hover {
	color: var(--wca-deep);
}

.wca-auth-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	width: 100%;
}

.wca-auth-form__row .wca-auth-field {
	margin: 0;
}

.wca-auth-form__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	margin: 10px 0 4px;
}

.wca-auth-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 8px 0 0;
	width: 100%;
	font-size: 13px;
	font-weight: 600;
	color: var(--wca-mute);
}

.wca-auth-check input {
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	accent-color: var(--wca-teal);
	flex-shrink: 0;
}

.wca-auth-check--legal {
	align-items: flex-start;
	font-size: 12px;
	line-height: 1.5;
	font-weight: 500;
}

.wca-auth-check--legal input {
	margin-top: 3px !important;
}

.wca-auth-check--legal a {
	color: var(--wca-teal);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wca-auth-form__link {
	font-size: 12px;
	font-weight: 700;
	color: var(--wca-deep);
	text-decoration: underline;
	text-underline-offset: 2px;
	white-space: nowrap;
}

.wca-auth-form__link:hover {
	color: var(--wca-teal-deep);
}

.wca-auth-btn,
.wca-auth .wca-btn,
.wca-auth button.wca-btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: 100%;
	height: 50px !important;
	margin: 14px 0 0 !important;
	padding: 0 22px !important;
	border: 0 !important;
	border-radius: 50px !important;
	background: var(--wca-teal) !important;
	color: #fff !important;
	font-family: var(--wca-font) !important;
	font-size: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1 !important;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: background 0.2s ease !important;
}

.wca-auth-btn:hover,
.wca-auth .wca-btn:hover,
.wca-auth button.wca-btn:hover {
	background: var(--wca-teal-deep) !important;
	color: #fff !important;
	filter: none;
	transform: none;
}

.wca-auth .wca-btn--ghost,
.wca-auth button.wca-btn--ghost {
	background: transparent !important;
	color: var(--wca-ink) !important;
	border: 1px solid var(--wca-line) !important;
	text-transform: none;
	letter-spacing: 0;
}

.wca-auth .wca-btn--ghost:hover,
.wca-auth button.wca-btn--ghost:hover {
	background: var(--wca-sand) !important;
	color: var(--wca-deep) !important;
}

.wca-auth__panels {
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	z-index: 7;
	pointer-events: none;
	overflow: hidden;
}

.wca-auth__panel {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	text-align: center;
	padding: 3rem 17% 2rem 12%;
}

.wca-auth__panel--right {
	align-items: flex-start;
	padding: 3rem 12% 2rem 17%;
}

.wca-auth__panel-inner {
	color: #fff;
	transition: transform 0.9s 0.6s ease-in-out, opacity 0.4s ease, visibility 0.4s;
	max-width: 20rem;
	width: 100%;
	position: relative;
	z-index: 2;
}

.wca-auth__panel-kicker {
	margin: 0 0 10px;
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wca-mint);
}

.wca-auth__panel h3 {
	margin: 0;
	font-family: var(--wca-display);
	font-size: clamp(1.25rem, 2.2vw, 1.6rem);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.wca-auth__panel p {
	margin: 0.75rem 0 1.25rem;
	font-size: 0.92rem;
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.82);
}

.wca-auth__panel-btn {
	pointer-events: auto;
	margin: 0;
	padding: 0 22px;
	height: 42px;
	border: 2px solid #fff;
	border-radius: 50px;
	background: transparent;
	color: #fff;
	font-family: var(--wca-display);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.wca-auth__panel-btn:hover {
	background: #fff;
	color: var(--wca-deep);
}

.wca-auth__panel--right .wca-auth__panel-inner {
	transform: translateX(800px);
	opacity: 0;
	visibility: hidden;
}

.wca-auth__container--register::before {
	transform: translate(100%, -50%);
	right: 52%;
}

.wca-auth__container--register .wca-auth__panel--left .wca-auth__panel-inner {
	transform: translateX(-800px);
	opacity: 0;
	visibility: hidden;
}

.wca-auth__container--register .wca-auth__panel--right .wca-auth__panel-inner {
	transform: translateX(0);
	opacity: 1;
	visibility: visible;
}

.wca-auth__container--register .wca-auth__forms {
	left: 25%;
}

.wca-auth__home {
	position: absolute;
	top: clamp(16px, 3vw, 28px);
	left: clamp(16px, 3vw, 28px);
	z-index: 10;
	display: inline-flex;
	opacity: 0.92;
}

.wca-auth__home img {
	display: block;
	height: 28px;
	width: auto;
	max-width: 130px;
	object-fit: contain;
	filter: brightness(0) invert(1);
}

.wca-auth__container--register .wca-auth__home img {
	filter: none;
}

/* Alerts */

.wca-alert {
	margin: 0 0 12px;
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.45;
	width: 100%;
	max-width: 480px;
}

.wca-alert--slide {
	width: 100%;
	max-width: 480px;
}

.wca-auth--simple .wca-alert {
	margin: 18px 0 0;
}

.wca-alert--error {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.wca-alert--ok {
	background: #ecfdf5;
	color: #0a3632;
	border: 1px solid #a8ead9;
}

/* Simple form fields */

.wca-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
}

.wca-form {
	display: grid;
	gap: 14px;
	margin: 24px 0 0;
}

.wca-form--tight {
	margin-top: 10px;
}

.wca-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.wca-field {
	display: grid;
	gap: 7px;
	margin: 0;
}

.wca-field > span,
.wca-field__row {
	font-size: 13px;
	font-weight: 700;
	color: var(--wca-ink);
}

.wca-field__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.wca-field__link {
	font-size: 12px;
}

.wca-auth--simple input[type="text"],
.wca-auth--simple input[type="email"],
.wca-auth--simple input[type="password"] {
	width: 100% !important;
	max-width: 100% !important;
	height: 48px !important;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid var(--wca-line) !important;
	border-radius: 10px !important;
	background: var(--wca-sand) !important;
	color: var(--wca-ink) !important;
	font-family: var(--wca-font) !important;
	font-size: 15px !important;
	line-height: 48px !important;
	box-shadow: none !important;
	transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease !important;
}

.wca-auth--simple input::placeholder {
	color: #7a918c !important;
}

.wca-auth--simple input[type="text"]:focus,
.wca-auth--simple input[type="email"]:focus,
.wca-auth--simple input[type="password"]:focus {
	outline: none !important;
	border-color: var(--wca-teal) !important;
	background: #fff !important;
	box-shadow: 0 0 0 3px rgba(20, 184, 154, 0.2) !important;
}

.wca-auth--simple input.wca-code {
	height: 56px !important;
	letter-spacing: 0.4em;
	font-family: var(--wca-display) !important;
	font-size: 22px !important;
	font-weight: 700;
	text-align: center;
	line-height: 56px !important;
}

.wca-check {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--wca-mute);
}

.wca-check input {
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	accent-color: var(--wca-teal);
	flex-shrink: 0;
}

/* Mobile — form gets most of the viewport; panel stays compact */

@media (max-width: 900px) {
	.wca-auth__container {
		min-height: calc(100vh - 72px);
		min-height: calc(100dvh - 72px);
		height: calc(100vh - 72px);
		height: calc(100dvh - 72px);
	}

	.wca-auth__container::before {
		width: 1500px;
		height: 1500px;
		left: 50%;
		/* Login: green covers top ~38% so panel CTA sits on it */
		bottom: 62%;
		transform: translateX(-50%);
		right: initial;
		top: initial;
		transition: 2s ease-in-out;
	}

	.wca-auth__forms {
		width: 100%;
		left: 50%;
		top: 98%;
		transform: translate(-50%, -100%);
		max-height: 60%;
		overflow: visible;
		padding: 4px 0 10px;
		transition: top 1s 0.8s ease-in-out, left 1s 0.8s ease-in-out;
	}

	.wca-auth__panels {
		grid-template-columns: 1fr;
		grid-template-rows: 1fr 1fr;
		overflow: hidden;
	}

	.wca-auth__panel,
	.wca-auth__panel--right {
		align-items: center;
		justify-content: flex-start;
		text-align: center;
		padding: 1.25rem 8% 0.75rem;
	}

	/* Login panel lives in the top (green) half — keep CTA inside green */
	.wca-auth__panel--left {
		justify-content: flex-start;
		padding-top: 1.5rem;
	}

	/* Register panel lives in the bottom (green) half */
	.wca-auth__panel--right {
		justify-content: flex-end;
		padding-bottom: 1.75rem;
	}

	.wca-auth__panel-inner {
		max-width: 28rem;
	}

	.wca-auth__panel-kicker {
		margin-bottom: 6px;
	}

	.wca-auth__panel h3 {
		font-size: 1.35rem;
		margin: 0 0 10px;
		color: #fff;
	}

	.wca-auth__panel p {
		display: none;
	}

	.wca-auth__panel--right .wca-auth__panel-inner {
		transform: translateY(300px);
		opacity: 0;
		visibility: hidden;
	}

	.wca-auth__container--register::before {
		transform: translate(-50%, 100%);
		/* Register: green covers bottom ~38% under title + button */
		bottom: 38%;
		right: initial;
	}

	.wca-auth__container--register .wca-auth__panel--left .wca-auth__panel-inner {
		transform: translateY(-300px);
		opacity: 0;
		visibility: hidden;
	}

	.wca-auth__container--register .wca-auth__panel--right .wca-auth__panel-inner {
		transform: translateY(0);
		opacity: 1;
		visibility: visible;
	}

	.wca-auth__container--register .wca-auth__forms {
		top: 2%;
		transform: translate(-50%, 0);
		left: 50%;
		max-height: 60%;
		overflow: visible;
		padding: 8px 0 4px;
	}

	/* Compact inputs so register fits without inner scroll */
	.wca-auth-form__title {
		font-size: 1.45rem;
		margin: 0 0 2px;
	}

	.wca-auth-form__lead {
		margin: 0 0 8px;
		font-size: 0.78rem;
		line-height: 1.35;
		max-width: 36ch;
	}

	.wca-auth-field {
		height: 44px;
		margin: 5px 0;
		border-radius: 44px;
		grid-template-columns: 40px 1fr 40px;
	}

	.wca-auth-field__icon svg {
		width: 17px;
		height: 17px;
	}

	.wca-auth-field input {
		font-size: 0.88rem !important;
	}

	.wca-auth-form__row {
		gap: 8px;
		margin: 5px 0;
	}

	.wca-auth-form__meta {
		margin: 6px 0 2px;
	}

	.wca-auth-check {
		margin: 5px 0 0;
		font-size: 12px;
		gap: 6px;
	}

	.wca-auth-check--legal {
		font-size: 11px;
		line-height: 1.35;
	}

	.wca-auth-btn {
		height: 44px !important;
		margin-top: 8px;
		font-size: 0.85rem !important;
	}

	.wca-auth__panel-btn {
		height: 38px;
		padding: 0 1.25rem;
		font-size: 0.78rem;
	}

	.wca-auth__home img {
		filter: none;
	}
}

@media (max-width: 600px) {
	.wca-auth-form {
		padding: 0 1rem;
	}

	/* Keep name fields side-by-side — stacking was the main overflow cause */
	.wca-auth-form__row {
		grid-template-columns: 1fr 1fr;
		gap: 6px;
	}

	.wca-auth-form__lead {
		display: none;
	}

	.wca-auth-form__meta {
		flex-direction: row;
		align-items: center;
		flex-wrap: wrap;
	}

	.wca-auth__container::before {
		bottom: 64%;
		left: 50%;
	}

	.wca-auth__container--register::before {
		bottom: 36%;
		left: 50%;
	}

	.wca-auth__forms,
	.wca-auth__container--register .wca-auth__forms {
		max-height: 62%;
	}

	.wca-auth--simple .wca-auth__stage {
		padding: 20px 14px 48px;
		min-height: 0;
	}

	.wca-auth--simple .wca-auth__card {
		padding: 22px 18px;
	}

	.wca-form__row {
		grid-template-columns: 1fr;
	}
}

/* Very short phones / landscape — last-resort scroll inside form only */
@media (max-width: 900px) and (max-height: 620px) {
	.wca-auth__forms,
	.wca-auth__container--register .wca-auth__forms {
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wca-auth__container::before,
	.wca-auth__forms,
	.wca-auth-form,
	.wca-auth__panel-inner {
		transition: none !important;
	}
}
