/**
 * Auth pages (sign-up, log-in, agent-registration) — light page, readable forest/gold contrast.
 */

/* Page canvas */
body.page-id-10,
body.page-id-63,
body.logged-in.page .es-wrap,
.es-wrap:has(.es-auth),
body:has(.es-auth) .entry-content,
body:has(.es-auth) main.wp-block-group {
	background:
		radial-gradient(1200px 420px at 50% 80%, rgba(188, 166, 108, 0.24), rgba(188, 166, 108, 0) 72%),
		radial-gradient(760px 320px at 50% 28%, rgba(223, 204, 150, 0.2), rgba(223, 204, 150, 0) 68%),
		linear-gradient(180deg, #f8f4e8 0%, #f2ebd6 56%, #e3d8b8 100%) !important;
	color: #1a301f !important;
}

body:has(.es-auth) .wp-block-post-title,
body:has(.es-auth) .entry-content > h1:not(.ls-auth-page-intro__eyebrow):not(.ls-auth-page-intro__title),
body.page-id-10 .wp-block-post-title,
body.page-id-10 h1.wp-block-post-title,
body.page-id-63 .wp-block-post-title {
	display: none !important;
}

/* Intro above auth card */
.ls-auth-page-intro {
	max-width: 44rem;
	margin: 0 auto 1.2rem;
	padding: 2.35rem 1.25rem 0;
	text-align: center;
	position: relative;
	z-index: 1;
}

.ls-auth-page-intro__eyebrow {
	margin: 0 0 0.5rem !important;
	font-family: var(--ls-brand-font-serif, "Lora", Georgia, serif) !important;
	font-size: clamp(1.65rem, 3.2vw, 2.15rem) !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.02em;
	color: #1a301f !important;
	text-shadow: 0 2px 8px rgba(26, 48, 31, 0.14);
}

.ls-auth-page-intro__title {
	margin: 0 0 0.65rem !important;
	font-family: var(--ls-brand-font, "Source Sans 3", sans-serif) !important;
	font-size: clamp(1.1rem, 2.2vw, 1.3rem) !important;
	font-weight: 700 !important;
	line-height: 1.35 !important;
	color: #8a6e28 !important;
	text-shadow: 0 1px 6px rgba(138, 110, 40, 0.2);
}

.ls-auth-page-intro__lead {
	margin: 0 auto 0.85rem !important;
	max-width: 32rem;
	font-size: 1.05rem !important;
	line-height: 1.55 !important;
	color: #314a3a !important;
}

.ls-auth-page-intro__link {
	margin: 0 !important;
	font-size: 0.95rem !important;
}

.ls-auth-page-intro__link a {
	color: #1a301f !important;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: var(--ls-chrome-accent, #c9a84c);
	text-underline-offset: 0.2em;
}

.ls-auth-page-intro__link a:hover {
	color: #8a6e28 !important;
	text-decoration-color: #8a6e28;
}

body:has(.es-auth) .entry-content > p,
body.page-id-10 .entry-content > p:not(.ls-auth-page-intro__lead):not(.ls-auth-page-intro__link):not(.ls-auth-page-intro__eyebrow),
body.page-id-63 .entry-content > p:not(.ls-auth-page-intro__lead):not(.ls-auth-page-intro__link):not(.ls-auth-page-intro__eyebrow) {
	color: #5a6b60 !important;
	text-align: center;
	max-width: 36rem;
	margin-left: auto;
	margin-right: auto;
}

body:has(.es-auth) .entry-content > p a,
body.page-id-10 .entry-content a:not(.es-btn):not(.elementor-button) {
	color: #1a301f !important;
}

/* Outer auth shell */
body .es-auth,
.es-wrap .es-auth {
	background: transparent !important;
	border: 0 !important;
	box-shadow: none !important;
	padding: 0.5rem 1rem 2.75rem !important;
	max-width: 560px !important;
	margin: 0 auto !important;
	color: #1a301f !important;
	position: relative;
	z-index: 2;
}

/* White card */
body .es-auth .es-auth__item {
	background: #fff !important;
	border: 1px solid rgba(255, 255, 255, 0.78) !important;
	border-radius: 20px !important;
	box-shadow: 0 22px 48px rgba(55, 49, 29, 0.22), 0 2px 0 rgba(255, 255, 255, 0.9) inset !important;
	padding: 2.2rem 2rem 0 !important;
	overflow: hidden;
	color: #1a301f !important;
}

body .es-auth .es-auth__item.es-auth__item--hidden {
	display: none !important;
}

body .es-auth h3.heading-font,
body .es-auth .es-title,
body .es-auth .es-auth__item h3 {
	color: #1a301f !important;
	font-family: var(--ls-brand-font-serif, "Lora", Georgia, serif) !important;
	font-weight: 700 !important;
	font-size: clamp(2rem, 3.4vw, 2.35rem) !important;
	margin: 0 0 0.55rem !important;
	text-align: center;
}

body .es-auth .es-auth__item > p:not(.sign-in-text):not(.es-field__description) {
	text-align: center;
	margin: 0 0 1.4rem !important;
	font-size: 1.03rem !important;
}

body .es-auth .es-auth__item p:not(.es-field__description),
body .es-auth .es-auth__item .sign-in-text,
body .es-auth .es-privacy-policy-container,
body .es-auth .es-terms-text {
	color: #5a6b60 !important;
}

body .es-auth a:not(.es-btn),
body .es-auth .es-auth__item a:not(.es-btn),
body .es-auth .forgot-pwd a,
body .es-auth .sign-in-text a,
body .es-auth .all-login-back a {
	color: #8a6e28 !important;
	font-weight: 600;
}

body .es-auth a:not(.es-btn):hover {
	color: #1a301f !important;
}

body .es-auth .sign-in-text {
	text-align: center;
	margin-top: 1rem !important;
	font-size: 1.02rem;
}

body .es-auth .ls-auth-privacy-link {
	margin: 0.45rem 0 0.15rem !important;
	text-align: center;
	font-size: 0.86rem;
}

body .es-auth .ls-auth-privacy-link a {
	color: #8a6e28 !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

body .es-auth .all-login-back {
	margin: 0 0 1rem !important;
}

body .es-auth .forgot-pwd {
	margin: 0.35rem 0 1rem !important;
	text-align: right;
}

/* Fields */
body .es-auth .es-field__label {
	color: #1a301f !important;
	font-weight: 600 !important;
}

body .es-auth .es-field {
	margin-bottom: 0.85rem !important;
}

body .es-auth .es-field input[type="text"],
body .es-auth .es-field input[type="email"],
body .es-auth .es-field input[type="password"],
body .es-auth .es-field input[type="tel"],
body .es-auth .es-field input[type="number"],
body .es-auth .es-field select,
body .es-auth .es-field textarea {
	background: #fff !important;
	color: #1a301f !important;
	border: 1px solid rgba(26, 48, 31, 0.22) !important;
	border-radius: 8px !important;
	min-height: 2.85rem;
	box-shadow: none !important;
}

body .es-auth .es-field input::placeholder {
	color: #8a9690 !important;
}

body .es-auth .es-field input:focus {
	border-color: var(--ls-chrome-accent, #c9a84c) !important;
	box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.22) !important;
	outline: none !important;
}

/* Autofill — keep light fields, not blue browser tint */
body .es-auth .es-field input:-webkit-autofill,
body .es-auth .es-field input:-webkit-autofill:hover,
body .es-auth .es-field input:-webkit-autofill:focus {
	-webkit-text-fill-color: #1a301f !important;
	caret-color: #1a301f;
	box-shadow: 0 0 0 1000px #fff inset !important;
	transition: background-color 99999s ease-out;
}

/* Outline secondary CTAs (email login switcher etc.) */
body .es-auth .es-auth__item .es-btn.es-btn--default,
body .es-auth .es-auth__item .es-btn.es-btn--auth,
body .es-auth .es-auth__item a.es-btn.es-btn--default,
body .es-auth .es-auth__item a.es-btn.es-btn--auth {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: 360px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-top: 0 !important;
	margin-bottom: 0.75rem !important;
	background: linear-gradient(180deg, #295338 0%, #1b3d2b 100%) !important;
	border: 1px solid #2e5c3e !important;
	color: #f3f6ef !important;
	box-shadow: 0 8px 18px rgba(21, 49, 32, 0.28) !important;
	border-radius: 12px !important;
	min-height: 3.4rem;
	font-weight: 700 !important;
	font-size: 1.03rem !important;
	text-align: center;
}

body .es-auth .es-auth__item .es-btn.es-btn--default:hover,
body .es-auth .es-auth__item .es-btn.es-btn--auth:hover {
	background: linear-gradient(180deg, #305f40 0%, #214a32 100%) !important;
	border-color: #376b48 !important;
	color: #fff !important;
	box-shadow: 0 10px 20px rgba(18, 43, 29, 0.3) !important;
}

/* Primary LOG IN / Sign up */
body .es-auth .es-auth__item .es-btn.es-btn--primary,
body .es-auth .es-auth__item .es-btn.es-btn--login,
body .es-auth .es-auth__item .es-btn.es-btn--signup,
body .es-auth .es-auth__item .es-btn.es-btn--reset {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	max-width: 280px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	margin-top: 0.5rem !important;
	margin-bottom: 1rem !important;
	background: #1a301f !important;
	border: 1px solid #1a301f !important;
	color: #fff !important;
	font-weight: 700 !important;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: 8px !important;
	min-height: 3rem;
	text-align: center;
}

body .es-auth .es-btn.es-btn--primary:hover,
body .es-auth .es-btn.es-btn--login:hover,
body .es-auth .es-btn.es-btn--signup:hover {
	background: #243d2a !important;
	border-color: #243d2a !important;
	color: #fff !important;
	opacity: 1 !important;
}

@keyframes ls-on-autofill {
	from {
		opacity: 0.99;
	}
	to {
		opacity: 1;
	}
}

body .es-auth input:-webkit-autofill {
	animation-name: ls-on-autofill;
	animation-duration: 0.01s;
}

body .es-auth .es-btn.es-btn--primary[disabled],
body .es-auth .es-btn.es-btn--login[disabled],
body .es-auth .es-btn.es-btn--signup[disabled] {
	opacity: 0.45 !important;
	cursor: not-allowed;
}

/* Seller strip — override Estatik row layout; center like buyer block */
body .es-auth .es-auth__item .es-auth-footer__inner,
body .es-auth .es-auth-footer__inner,
body .es-auth-footer__inner {
	display: flex !important;
	flex-direction: column !important;
	flex-wrap: nowrap !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.9rem !important;
	text-align: center !important;
	position: relative;
	background: linear-gradient(160deg, #1e452c 0%, #193d27 55%, #163522 100%) !important;
	border: 1px solid rgba(201, 168, 76, 0.26) !important;
	padding: 1.35rem 1.3rem 1.35rem !important;
	margin: 0 !important;
	width: 100% !important;
	box-sizing: border-box !important;
	border-radius: 18px !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 12px 22px rgba(11, 27, 18, 0.24) !important;
}

body .es-auth .es-auth__item .es-auth-footer__inner::before,
body .es-auth .es-auth-footer__inner::before {
	content: "";
	position: absolute;
	top: 0;
	left: 12%;
	right: 12%;
	height: 1px;
	background: linear-gradient(90deg, rgba(201, 168, 76, 0), rgba(201, 168, 76, 0.65), rgba(201, 168, 76, 0));
}

body .es-auth .es-auth-footer {
	background: transparent !important;
	margin: 1.05rem 0 0 !important;
	padding: 0 0.9rem 0.95rem !important;
	width: 100% !important;
	border-radius: 0 !important;
	overflow: visible !important;
}

body .es-auth .es-auth__item .es-auth-footer__inner .es-auth-footer__left,
body .es-auth .es-auth-footer__left {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 0.55rem !important;
	text-align: center !important;
	width: 100% !important;
	max-width: 100% !important;
	flex: 0 0 auto !important;
	margin: 0 !important;
	margin-right: 0 !important;
	padding: 0 !important;
	float: none !important;
}

body .es-auth .es-auth__item .es-auth-footer__inner .es-auth-footer__content,
body .es-auth .es-auth-footer__content {
	text-align: center !important;
	width: 100% !important;
	min-width: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
}

body .es-auth .es-auth__item .es-auth-footer__inner .es-btn,
body .es-auth .es-auth-footer .es-btn.es-btn--secondary.es-btn--bordered,
body .es-auth .es-auth__item .es-auth-footer .es-btn {
	margin: 0.25rem auto 0 !important;
	margin-left: auto !important;
	margin-right: auto !important;
	float: none !important;
	align-self: center !important;
}

body .es-auth .es-auth__item .es-auth-footer__inner b,
body .es-auth .es-auth-footer__content b {
	color: #f5f8f2 !important;
	display: block !important;
	text-align: center !important;
	font-size: 1.12rem !important;
	letter-spacing: 0.01em;
}

body .es-auth .es-auth__item .es-auth-footer__inner p,
body .es-auth .es-auth-footer__content,
body .es-auth .es-auth-footer__content p {
	color: rgba(232, 239, 233, 0.92) !important;
	text-align: center !important;
}

body .es-auth .es-auth-footer__content p {
	margin: 0.1rem 0 0 !important;
	font-size: 0.98rem !important;
}

body .es-auth .es-auth__item .es-auth-footer__inner .es-icon,
body .es-auth .es-auth-footer__left .es-icon {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 auto 0.1rem !important;
	margin-right: 0 !important;
	background: rgba(201, 168, 76, 0.16) !important;
	color: var(--ls-chrome-accent, #c9a84c) !important;
	border-radius: 50% !important;
	width: 3.25rem !important;
	height: 3.25rem !important;
	flex: 0 0 3.25rem !important;
	line-height: 1 !important;
	float: none !important;
	text-align: center !important;
	border: 2px solid rgba(201, 168, 76, 0.7) !important;
	font-size: 1.2rem !important;
}

body .es-auth .es-auth-footer .es-btn.es-btn--secondary.es-btn--bordered,
body .es-auth .es-btn.es-btn--secondary.es-btn--bordered {
	display: flex !important;
	align-items: center;
	justify-content: center;
	background: transparent !important;
	border: 1px solid var(--ls-chrome-accent, #c9a84c) !important;
	color: var(--ls-chrome-accent, #c9a84c) !important;
	white-space: nowrap;
	flex-shrink: 0;
	width: auto !important;
	max-width: 240px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	min-height: 3.1rem;
	padding-left: 1.4rem !important;
	padding-right: 1.4rem !important;
	border-radius: 14px !important;
	font-weight: 700 !important;
	letter-spacing: 0.015em;
	font-size: 1.02rem !important;
}

body .es-auth .es-auth-footer .es-btn.es-btn--secondary.es-btn--bordered:hover {
	background: var(--ls-chrome-accent, #c9a84c) !important;
	color: #1a301f !important;
}

body .es-auth .ls-auth-footer__privacy {
	margin: 0.35rem 0 0 !important;
	font-size: 0.9rem !important;
	line-height: 1.35 !important;
	text-align: center;
	color: rgba(255, 255, 255, 0.95) !important;
	position: relative;
	z-index: 2;
}

body .es-auth .ls-auth-footer__privacy a {
	color: #ffffff !important;
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.96) !important;
	text-underline-offset: 0.18em;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35) !important;
	font-weight: 700 !important;
	opacity: 1 !important;
}

body .es-auth .ls-auth-footer__privacy a:link,
body .es-auth .ls-auth-footer__privacy a:visited,
body .es-auth .ls-auth-footer__privacy a:active {
	color: #ffffff !important;
}

body .es-auth .ls-auth-footer__privacy a:hover {
	color: #ffffff !important;
	text-decoration-color: #ffffff;
}

/* Force footer privacy link to stay white on dark card */
body .es-auth .es-auth-footer .ls-auth-footer__privacy,
body .es-auth .es-auth__item .es-auth-footer .ls-auth-footer__privacy {
	color: #ffffff !important;
	opacity: 1 !important;
}

body .es-auth .es-auth-footer .ls-auth-footer__privacy a,
body .es-auth .es-auth-footer .ls-auth-footer__privacy a:any-link,
body .es-auth .es-auth-footer .ls-auth-footer__privacy a:link,
body .es-auth .es-auth-footer .ls-auth-footer__privacy a:visited,
body .es-auth .es-auth-footer .ls-auth-footer__privacy a:hover,
body .es-auth .es-auth-footer .ls-auth-footer__privacy a:focus,
body .es-auth .es-auth-footer .ls-auth-footer__privacy a:active {
	color: #ffffff !important;
	-webkit-text-fill-color: #ffffff !important;
	opacity: 1 !important;
}

/* Magnific auth popup */
.mfp-content .es-auth .es-auth__item,
#es-authentication-popup .es-auth__item {
	background: #fff !important;
	color: #1a301f !important;
}

.mfp-content .es-auth h3.heading-font,
#es-authentication-popup h3.heading-font {
	color: #1a301f !important;
}

@media (max-width: 781px) {
	.ls-auth-page-intro {
		padding: 1.65rem 1rem 0;
		margin-bottom: 1.1rem;
	}

	body .es-auth {
		max-width: none !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body .es-auth .es-auth__item {
		padding: 1.5rem 1.2rem 0 !important;
		border-radius: 0 !important;
		border-left: 0 !important;
		border-right: 0 !important;
	}

	body .es-auth .es-auth__item .es-btn.es-btn--default,
	body .es-auth .es-auth__item .es-btn.es-btn--auth,
	body .es-auth .es-auth__item a.es-btn.es-btn--default,
	body .es-auth .es-auth__item a.es-btn.es-btn--auth,
	body .es-auth .es-auth__item .es-btn.es-btn--primary,
	body .es-auth .es-auth__item .es-btn.es-btn--login,
	body .es-auth .es-auth__item .es-btn.es-btn--signup,
	body .es-auth .es-auth__item .es-btn.es-btn--reset {
		width: 100% !important;
		max-width: none !important;
		min-height: 48px !important;
	}

	body .es-auth .es-auth-footer__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 0.85rem;
		border-radius: 12px !important;
	}

	body .es-auth .es-auth-footer .es-btn.es-btn--secondary.es-btn--bordered {
		width: 100% !important;
		max-width: none !important;
		justify-content: center;
		min-height: 48px;
	}

	body .es-auth .es-auth-footer {
		padding-left: 0.8rem !important;
		padding-right: 0.8rem !important;
		padding-bottom: 0.9rem !important;
	}
}

@media (max-width: 640px) {
	.ls-auth-page-intro {
		padding-top: 1.5rem;
		margin-bottom: 1.25rem;
	}

	body .es-auth {
		max-width: none !important;
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body .es-auth .es-auth__item {
		padding: 1.35rem 1.1rem 0 !important;
		border-radius: 0 !important;
		border-left: 0 !important;
		border-right: 0 !important;
	}

	body .es-auth .es-auth-footer__inner {
		flex-direction: column;
		align-items: center;
		gap: 0.8rem;
		border-radius: 12px !important;
	}

	body .es-auth .es-auth-footer .es-btn.es-btn--secondary.es-btn--bordered {
		width: 100% !important;
		max-width: none !important;
		justify-content: center;
	}
}
