/**
 * WLRE Theme — Login + Account shell styles.
 *
 * Form-field primitives (.wlre-form__group/__label/__input) come from
 * forms.css (enqueued globally). Typography comes from utility classes
 * on the PHP. This file holds layout + non-typographic overrides only.
 */

/* === Login === */
.wlre-login {
	background-color: var(--wlre-color-brand-900);
	min-height: calc(100vh - 80px);
	padding-block: var(--wlre-space-80);
	display: flex;
	align-items: flex-start;
	justify-content: center;
}

.wlre-login__wrap {
	width: 100%;
}

.wlre-login__card {
	max-width: 432px;
	margin-inline: auto;
	background: var(--wlre-color-white);
	border-radius: var(--wlre-radius-20);
	box-shadow: var(--wlre-shadow-card);
	padding: var(--wlre-space-48) var(--wlre-space-32) var(--wlre-space-32);
}

.wlre-login__header {
	margin-bottom: var(--wlre-space-32);
	text-align: center;
}

.wlre-login__title {
	color: var(--wlre-color-text-900);
	margin: 0;
}

.wlre-login__alert {
	background: rgba(229, 62, 62, 0.08);
	border: 1px solid rgba(229, 62, 62, 0.25);
	color: var(--wlre-color-error);
	border-radius: var(--wlre-radius-sm);
	padding: var(--wlre-space-12) var(--wlre-space-16);
	margin-bottom: var(--wlre-space-20);
}

.wlre-login__alert[hidden] {
	display: none;
}

.wlre-login__panel {
	display: flex;
	flex-direction: column;
	gap: var(--wlre-space-24);
	border: none;
	padding: 0;
	margin: 0;
}

.wlre-login__panel[hidden] {
	display: none;
}

/* Collapse .wlre-form__group margin when the flex gap handles spacing. */
.wlre-login__panel .wlre-form__group {
	margin-bottom: 0;
}

.wlre-login__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wlre-space-16);
}

.wlre-login__panel[data-wlre-auth-panel="password"] .wlre-login__row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: var(--wlre-space-16);
	min-height: var(--wlre-space-32);
}

.wlre-login__identified {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--wlre-space-12);
	padding: var(--wlre-space-12) var(--wlre-space-16);
	background: var(--wlre-color-surface-50);
	border-radius: var(--wlre-radius-sm);
	margin: 0;
	color: var(--wlre-color-text-900);
}

.wlre-login__form[data-wlre-auth-form] .wlre-login__identified > [data-wlre-auth-email-display] {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.wlre-login__change {
	background: none;
	border: none;
	/* point 078 — Modifica link is now black with underline (was accent-500). */
	color: var(--wlre-color-text-900);
	text-decoration: underline;
	cursor: pointer;
	padding: var(--wlre-space-4) var(--wlre-space-8);
}

.wlre-login__form[data-wlre-auth-form] .wlre-login__change {
	flex: 0 0 auto;
	margin-inline-start: auto;
	text-align: right;
}

.wlre-login__change:hover {
	text-decoration: underline;
}

.wlre-login__inline {
	display: flex;
	align-items: center;
	gap: var(--wlre-space-4);
	color: var(--wlre-color-neutral-600);
}

.wlre-login__panel[data-wlre-auth-panel="password"] .wlre-login__inline {
	flex: 1 1 auto;
	min-width: 0;
	min-height: var(--wlre-space-32);
	color: var(--wlre-color-text-900);
	font-family: var(--wlre-font-body);
	font-size: var(--wlre-font-size-s);
	font-weight: 700;
	line-height: var(--wlre-line-height-body);
}

.wlre-login__panel[data-wlre-auth-panel="password"] .wlre-login__inline input[type="checkbox"] {
	margin-top: 0;
}

.wlre-login__hint {
	color: var(--wlre-color-neutral-600);
	margin: var(--wlre-space-4) 0 0;
}

/* Inline action link on the email/password row (e.g. "Forgot Password?"). */
.wlre-login__link {
	color: var(--wlre-color-text-900);
	text-decoration: none;
}
.wlre-login__panel[data-wlre-auth-panel="password"] .wlre-login__link {
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	flex: 0 0 auto;
	margin-inline-start: auto;
	min-height: var(--wlre-space-32);
	font-size: var(--wlre-font-size-s);
	line-height: var(--wlre-line-height-body);
	text-align: right;
	white-space: nowrap;
}
.wlre-login__link:hover,
.wlre-login__link:focus-visible {
	text-decoration: underline;
}

/* Emphasized link inside a hint row ("Already have an account? Sign in"). */
.wlre-login__hint-link {
	color: var(--wlre-color-accent-500);
	font-weight: 700;
	text-decoration: none;
}
.wlre-login__hint-link:hover,
.wlre-login__hint-link:focus-visible {
	text-decoration: underline;
}

/* Identified-account affordance on /forgot-password/. */
.wlre-login__form[data-wlre-forgot-form] .wlre-login__identified {
	display: flex;
	justify-content: flex-start;
	gap: var(--wlre-space-8);
	align-items: center;
}

.wlre-login__submit {
	width: 100%;
	padding-block: 14px;
	margin-top: var(--wlre-space-4);
}

.wlre-login__submit[disabled] {
	opacity: 0.6;
	cursor: wait;
}

/* === Mobile === */
@media (max-width: 767px) {
	.wlre-login {
		padding-block: var(--wlre-space-40);
	}
	.wlre-login__card {
		padding: var(--wlre-space-32) var(--wlre-space-24);
	}
	.wlre-login__row {
		grid-template-columns: 1fr;
	}
}

/* === Account page === */
.wlre-account {
	background: var(--wlre-color-white);
	min-height: calc(100vh - 80px);
	padding-block: var(--wlre-space-40) var(--wlre-space-64);
}

/* Dashboard-only watermark — Figma 6705:249545. Section stays at
 * its base 100vh height. The lotus is positioned bottom-right with
 * a negative bottom so it tries to extend past the section, but
 * overflow:hidden clips the bottom slice — visually identical to
 * the newsletter's cream bg overlaying it (the section bottom and
 * newsletter top sit at the exact same y). Cards keep z-index 1 so
 * they sit above the lotus. SVG carries opacity 0.02 baked in. */
.wlre-account--dashboard {
	position: relative;
	overflow: hidden;
}

.wlre-account--dashboard::before {
	content: '';
	position: absolute;
	/* Figma node 6705:249545 sits at right -4.579px with the lotus
	 * extending below its frame. We use the same right bleed and a
	 * negative bottom so the bottom of the SVG (the stem) is cropped
	 * at the section's bottom edge — matching Figma's crop. */
	right: -4.58px;
	bottom: clamp(-500px, -36vh, -300px);
	width: min(72.74%, 1043px);
	aspect-ratio: 1043 / 879;
	background-image: url('../images/account-lotus-bg.svg');
	background-position: right bottom;
	background-size: contain;
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: 0;
}

.wlre-account--dashboard > .wlre-container {
	position: relative;
	z-index: 1;
}

@media (max-width: 767px) {
	/* The watermark is too large relative to a phone column. */
	.wlre-account--dashboard::before {
		display: none;
	}
}

.wlre-account__header {
	margin-bottom: var(--wlre-space-40);
}

.wlre-account__title {
	color: var(--wlre-color-text-900);
	margin: 0 0 var(--wlre-space-8);
}

.wlre-account__subtitle {
	color: var(--wlre-color-neutral-600);
	margin: 0;
}

.wlre-account__sections {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
	gap: var(--wlre-space-20);
}

.wlre-account__section {
	background: var(--wlre-color-white);
	border-radius: var(--wlre-radius-20);
	box-shadow: 0 8px 12px rgba(149, 157, 165, 0.2);
	padding: var(--wlre-space-32);
	display: flex;
	flex-direction: column;
	gap: var(--wlre-space-8);
	position: relative;
	min-width: 0;
}

.wlre-account__section h2 {
	color: var(--wlre-color-text-900);
	margin: 0;
}

.wlre-account__section p {
	color: var(--wlre-color-neutral-600);
	margin: 0;
}

.wlre-account__section--pending {
	opacity: 0.7;
}

/* Live cards deep-link into their sub-pages and lift on hover/focus. */
.wlre-account__section--live {
	color: inherit;
	text-decoration: none;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.wlre-account__section--live:hover,
.wlre-account__section--live:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 12px 20px rgba(149, 157, 165, 0.22);
}

.wlre-account__section-arrow {
	position: absolute;
	top: var(--wlre-space-24);
	right: var(--wlre-space-20);
	color: var(--wlre-color-brand-900);
	opacity: 0;
	transform: translateX(-4px);
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.wlre-account__section-arrow svg {
	width: 24px;
	height: 24px;
	transform: scale(1.08);
	transform-origin: center;
}

.wlre-account__section--live:hover .wlre-account__section-arrow,
.wlre-account__section--live:focus-visible .wlre-account__section-arrow {
	opacity: 1;
	transform: translateX(0);
}

.wlre-account__badge {
	align-self: flex-start;
	margin-top: var(--wlre-space-12);
	padding: var(--wlre-space-4) 10px;
	font-family: var(--wlre-font-body);
	font-weight: 700;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--wlre-color-brand-900);
	background: rgba(54, 222, 164, 0.25);
	border-radius: 999px;
}

@media (max-width: 767px) {
	.wlre-account {
		padding-block: var(--wlre-space-32) var(--wlre-space-40);
	}
	.wlre-account .wlre-container {
		padding-inline: var(--wlre-space-16);
	}
	.wlre-account__title {
		font-size: var(--wlre-font-size-h3);
	}
	.wlre-account__sections {
		grid-template-columns: 1fr;
		gap: var(--wlre-space-24);
	}
	.wlre-account__section {
		padding: var(--wlre-space-20) var(--wlre-space-16);
	}
	.wlre-account__section-arrow {
		opacity: 1;
		transform: none;
	}
}

/* =============================================================
 * Login USP marketing variant — Figma 6056-178244 / 6163-153691
 *
 * Opt-in split layout activated by body.wlre-login--usp (enabled
 * via ?login_variant=usp in inc/setup.php body_class filter).
 * Hidden by default — the USP panel's display:none means it is
 * excluded from the accessibility tree for non-variant sessions.
 * ============================================================= */

.wlre-login__usp {
	display: none;
}

.wlre-login__usp-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

body.wlre-login--usp .wlre-login__wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
	align-items: stretch;
	background: var(--wlre-color-white);
	border-radius: var(--wlre-radius-20);
	box-shadow: var(--wlre-shadow-card);
	overflow: hidden;
	max-width: 960px;
}

body.wlre-login--usp .wlre-login__card {
	box-shadow: none;
	border-radius: 0;
	margin: 0;
}

body.wlre-login--usp .wlre-login__usp {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: var(--wlre-space-20);
	padding: var(--wlre-space-40);
	/* point 079 — navy gradient replaces the photo carousel/cream backdrop. */
	background: linear-gradient(135deg, var(--wlre-color-brand-900) 0%, #16384e 60%, #1f4d6b 100%);
	color: var(--wlre-color-white);
	order: 2;
}

body.wlre-login--usp .wlre-login__card {
	order: 1;
}

.wlre-login__usp-kicker {
	color: var(--wlre-color-neutral-200);
	margin: 0 0 var(--wlre-space-8);
}

body.wlre-login--usp .wlre-login__usp-kicker {
	color: rgba(255, 255, 255, 0.72);
}

/* Highlight word inside the kicker / list-item titles — accent-500 aqua
 * over the new gradient background (point 079). */
body.wlre-login--usp .wlre-text-accent {
	color: var(--wlre-color-accent-500);
}

.wlre-login__usp-item {
	display: flex;
	align-items: center;
	gap: var(--wlre-space-16);
	padding: var(--wlre-space-16) var(--wlre-space-20);
	background: var(--wlre-color-white);
	border-radius: var(--wlre-radius-md);
}

/* On the gradient panel, items use a translucent white surface so the
 * navy + aqua palette stays cohesive (point 079). */
body.wlre-login--usp .wlre-login__usp-item {
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: var(--wlre-color-white);
	backdrop-filter: blur(2px);
}
body.wlre-login--usp .wlre-login__usp-num {
	color: var(--wlre-color-accent-500);
}
body.wlre-login--usp .wlre-login__usp-text {
	color: var(--wlre-color-white);
}

.wlre-login__usp-list {
	display: flex;
	flex-direction: column;
	gap: var(--wlre-space-12);
}

.wlre-login__usp-num {
	font-family: var(--wlre-font-heading);
	font-weight: 600;
	font-size: 18px;
	color: var(--wlre-color-neutral-600);
	min-width: 36px;
}

.wlre-login__usp-text {
	font-family: var(--wlre-font-heading);
	font-weight: 600;
	font-size: 18px;
	color: var(--wlre-color-text-900);
	line-height: 1.33;
}

@media (max-width: 767px) {
	body.wlre-login--usp .wlre-login__wrap {
		grid-template-columns: 1fr;
	}
	body.wlre-login--usp .wlre-login__usp {
		order: 2;
		padding: var(--wlre-space-24);
	}
	body.wlre-login--usp .wlre-login__card {
		order: 1;
	}
}

/* ============================================================
 * Social auth block (Phase 17)
 *
 * Figma canonicals:
 *   6054-177176 Google button
 *   6054-177092 Apple button
 *   6054-177100 Facebook button
 *   6054-177171 Or divider
 *
 * Spec: 48px tall buttons, 12px radius, 1px #E0E3E2 border, white bg,
 * 21x21 icon + Lato 16px label, 8px gap between icon+label.
 * ============================================================ */

.wlre-login__social {
	display: flex;
	flex-direction: column;
	gap: var(--wlre-space-16);
	margin-bottom: var(--wlre-space-16);
}

.wlre-login__social-buttons {
	display: flex;
	flex-direction: column;
	gap: var(--wlre-space-8, 8px);
}

.wlre-login__social-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 48px;
	padding: 14px 20px;
	background: var(--wlre-color-white, #fff);
	/* point 080 — stroke updated to text-900 (1.5px) for stronger affordance. */
	border: 1.5px solid var(--wlre-color-text-900, #0A2438);
	border-radius: 12px;
	color: var(--wlre-color-text-900, #1a1a18);
	font-family: var(--wlre-font-body, 'Lato', sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wlre-login__social-btn:hover:not([disabled]) {
	background: var(--wlre-color-surface-50, #f6f6f1);
	border-color: var(--wlre-color-text-900, #0A2438);
}

.wlre-login__social-btn:focus-visible {
	outline: 2px solid var(--wlre-color-accent-500, #36dea4);
	outline-offset: 2px;
}

.wlre-login__social-btn[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.wlre-login__social-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 21px;
	height: 21px;
}

.wlre-login__social-icon svg {
	width: 100%;
	height: 100%;
}

.wlre-login__social-label {
	font-size: 16px;
	line-height: 1.2;
}

.wlre-login__social-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--wlre-color-text-900, #1a1a18);
}

.wlre-login__social-divider::before,
.wlre-login__social-divider::after {
	content: '';
	flex: 1 0 0;
	height: 1px;
	background: var(--wlre-color-neutral-200, #e0e3e2);
}

.wlre-login__social-or {
	font-family: var(--wlre-font-body, 'Lato', sans-serif);
	font-size: 14px;
	line-height: 1.48;
	color: var(--wlre-color-text-900, #1a1a18);
}

/* =============================================================
 * Login Figma canonical — 6163:153691 desktop / 6163:153729 mobile
 * ============================================================= */

.wlre-login--auth {
	background: #faf8f4;
	min-height: 100vh;
	padding-block: 80px;
	align-items: center;
}

.wlre-login--auth .wlre-login__wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 0;
	align-items: stretch;
	width: 100%;
	max-width: 1240px;
	padding-inline: 0;
	background: #fff;
	border-radius: 20px;
	box-shadow: 0 8px 24px rgba(149, 157, 165, 0.2);
	overflow: hidden;
}

/* Close button — anchored to <main> so it floats outside the card */
.wlre-login--auth {
	position: relative;
}

/* Desktop: matches the lightbox close pill (property-detail.css) */
.wlre-login__close {
	position: absolute;
	top: 24px;
	right: 24px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 12px 20px;
	background: #f5f5f5;
	backdrop-filter: blur(8.7px);
	-webkit-backdrop-filter: blur(8.7px);
	border: 0;
	box-shadow: none;
	border-radius: 13px;
	color: var(--wlre-color-text-900, #0a2438);
	font-family: var(--wlre-font-heading, 'DM Sans', sans-serif);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.09;
	cursor: pointer;
	z-index: 10;
	white-space: nowrap;
	transition: background-color 0.2s ease;
}

.wlre-login__close:hover {
	background: rgba(245, 245, 245, 1);
}

.wlre-login__close:focus-visible {
	outline: 2px solid var(--wlre-color-accent-500, #81d8d0);
	outline-offset: 2px;
}

.wlre-login__close svg {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
}

.wlre-login--auth .wlre-login__card {
	order: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	max-width: none;
	min-height: 604px;
	margin: 0;
	padding: 48px;
	background: #fff;
	border-radius: 0;
	box-shadow: none;
}

.wlre-login--auth .wlre-login__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-bottom: 24px;
	text-align: center;
}

.wlre-login--auth .wlre-login__logo {
	display: inline-flex;
	width: 138.75px;
	height: 36px;
	color: #0a2438;
}

.wlre-login--auth .wlre-login__logo svg {
	display: block;
	width: 100%;
	height: 100%;
}

.wlre-login--auth .wlre-login__title {
	color: #0a2438;
	font-size: 44px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
}

.wlre-login--auth .wlre-login__form {
	display: flex;
	flex-direction: column;
}

.wlre-login--auth .wlre-login__panel {
	gap: 24px;
}

.wlre-login--auth .wlre-form__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.wlre-login--auth .wlre-form__input {
	height: 52px;
	padding: 14px 24px;
	border: 0.5px solid #666;
	border-radius: 8px;
	color: #0a2438;
	font-family: var(--wlre-font-body, 'Lato', sans-serif);
	font-size: 14px;
	line-height: 1.48;
}

.wlre-login--auth .wlre-form__input:focus,
.wlre-login--auth .wlre-form__input:focus-visible {
	border-color: var(--wlre-color-accent-500);
	outline: none;
	box-shadow: none;
}

.wlre-login--auth .wlre-form__input::placeholder {
	color: #666;
	opacity: 1;
}

.wlre-login--auth .wlre-login__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 56px;
	margin-top: 0;
	padding: 16px 24px;
	background: #81d8d0;
	border: 0;
	border-radius: 8px;
	color: #0a2438;
	font-family: var(--wlre-font-body, 'Lato', sans-serif);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.48;
	text-decoration: none;
}

.wlre-login--auth .wlre-login__submit:hover:not([disabled]),
.wlre-login--auth .wlre-login__submit:focus-visible {
	background: #75cbc3;
	color: #0a2438;
}

.wlre-login--auth .wlre-login__alert {
	margin-bottom: 20px;
	border-radius: 8px;
}

.wlre-login--auth .wlre-login__social {
	gap: 24px;
	margin: 28px 0 0;
}

.wlre-login--auth .wlre-login__form[data-wlre-auth-current="password"] .wlre-login__social {
	display: none;
}

.wlre-login--auth .wlre-login__social-buttons {
	gap: 12px;
}

.wlre-login--auth .wlre-login__social-btn {
	height: 48px;
	min-height: 0;
	padding: 0 20px;
	border: 0.5px solid #d0d0d0;
	border-radius: 12px;
	color: #0a2438;
	background: #fff;
}

.wlre-login--auth .wlre-login__social-btn[data-wlre-social-button="apple"],
.wlre-login--auth .wlre-login__social-btn[data-wlre-social-button="facebook"] {
	border: 0.5px solid #d0d0d0;
}

.wlre-login--auth .wlre-login__social-btn[disabled] {
	opacity: 1;
	cursor: not-allowed;
}

.wlre-login--auth .wlre-login__social-btn[data-wlre-social-button="google"] .wlre-login__social-icon {
	width: 24px;
	height: 24px;
}

.wlre-login--auth .wlre-login__social-divider {
	gap: 12px;
	color: #0a2438;
}

.wlre-login--auth .wlre-login__social-divider::before,
.wlre-login--auth .wlre-login__social-divider::after {
	background: #d0d0d0;
}

.wlre-login--auth .wlre-login__social-or {
	color: #0a2438;
}

.wlre-login--auth .wlre-login__identified {
	background: rgba(10, 36, 56, 0.05);
	color: #0a2438;
}

/* Password field + checkbox/forgot row — 8px internal gap (Figma 6702:247735) */
.wlre-login--auth .wlre-login__password-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
}

.wlre-login--auth .wlre-login__password-group .wlre-form__group {
	margin-bottom: 0;
}

/* Email field with floating label + "Modifica" link (Figma 6702:247791) */
.wlre-login--auth .wlre-login__email-identified {
	position: relative;
	display: flex;
	align-items: center;
	height: 52px;
	padding: 0 24px;
	background: #fff;
	border: 0.5px solid #666;
	border-radius: 8px;
}

.wlre-login--auth .wlre-login__email-identified-label {
	position: absolute;
	top: -10px;
	left: 20px;
	padding: 0 4px;
	background: #fff;
	font-family: var(--wlre-font-body, 'Lato', sans-serif);
	font-size: 12px;
	color: #666;
	line-height: 1.48;
	white-space: nowrap;
}

.wlre-login--auth .wlre-login__email-identified-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	gap: 8px;
	min-width: 0;
}

.wlre-login--auth .wlre-login__email-identified-body [data-wlre-auth-email-display] {
	flex: 1 1 0;
	font-family: var(--wlre-font-body, 'Lato', sans-serif);
	font-size: 14px;
	color: #0a2438;
	line-height: 1.48;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	min-width: 0;
}

.wlre-login--auth .wlre-login__modifica {
	flex-shrink: 0;
	background: none;
	border: none;
	padding: 4px;
	font-family: var(--wlre-font-body, 'Lato', sans-serif);
	font-size: 14px;
	font-weight: 700;
	color: #0a2438;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1.48;
}

.wlre-login--auth .wlre-login__modifica:hover,
.wlre-login--auth .wlre-login__modifica:focus-visible {
	text-decoration: underline;
}

/* Register panel: 4 fields stacked with 12px gap (Figma 6702:248210) */
.wlre-login--auth [data-wlre-auth-panel="register"] .wlre-login__register-fields {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
}

.wlre-login--auth [data-wlre-auth-panel="register"] .wlre-login__register-fields .wlre-form__group {
	margin: 0;
}

/* Privacy consent checkbox in registration panel */
.wlre-login__consent {
	margin-top: var(--wlre-space-8, 8px);
}

/* Social login privacy disclosure — shown only when register panel is active */
.wlre-login__social-notice {
	display: none;
	margin: 12px 0 0;
	font-family: var(--wlre-font-body, 'Lato', sans-serif);
	font-size: 13px;
	line-height: 1.5;
	color: rgba(10, 36, 56, 0.55);
	text-align: center;
}

.wlre-login__social-notice a {
	color: inherit;
	text-decoration: underline;
}

.wlre-login__form:has([data-wlre-auth-panel="register"]:not([hidden])) .wlre-login__social-notice {
	display: block;
}

/* "Hai già un account? Accedi" — shown only when register panel is active.
 * Hidden by default; :has() reveals it without JS (Figma 6702:248225). */
.wlre-login__register-hint {
	display: none;
}

.wlre-login__form:has([data-wlre-auth-panel="register"]:not([hidden])) .wlre-login__register-hint {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 4px;
	font-family: var(--wlre-font-body, 'Lato', sans-serif);
	font-size: 16px;
	font-weight: 400;
	color: #0a2438;
	text-align: center;
	margin: 24px 0 0;
	line-height: 1.48;
}

.wlre-login__register-signin {
	font-family: var(--wlre-font-body, 'Lato', sans-serif);
	font-size: 16px;
	font-weight: 700;
	color: #0a2438;
	text-decoration: none;
	line-height: 1.48;
}

.wlre-login__register-signin:hover,
.wlre-login__register-signin:focus-visible {
	text-decoration: underline;
}

.wlre-login--auth .wlre-login__usp {
	order: 2;
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	min-height: 604px;
	padding: 32px 48px;
	overflow: hidden;
	background: linear-gradient(173.23deg, #0a2438 36.81%, #81d8d0 286.43%);
}

.wlre-login--auth .wlre-login__usp::before,
.wlre-login--auth .wlre-login__usp::after {
	content: none;
}

.wlre-login--auth .wlre-login__usp-bg {
	display: none;
}

.wlre-login__usp-bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	width: 100%;
	height: 100%;
	contain: paint;
	isolation: isolate;
	pointer-events: none;
}

.wlre-login__usp-bg-slide {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	backface-visibility: hidden;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	transform: translate3d(0, 0, 0) scale(1.045);
	animation: wlre-auth-kenburns-a 32s linear infinite both;
	will-change: opacity, transform;
}

/* Offsets keep each transform reset hidden, avoiding zoom snaps during fades. */
.wlre-login__usp-bg-slide:nth-child(1) {
	animation-delay: -960ms;
	transform-origin: 45% 52%;
}

.wlre-login__usp-bg-slide:nth-child(2) {
	animation-delay: 7040ms;
	animation-name: wlre-auth-kenburns-b;
	transform-origin: 58% 48%;
}

.wlre-login__usp-bg-slide:nth-child(3) {
	animation-delay: 15040ms;
	animation-name: wlre-auth-kenburns-c;
	transform-origin: 50% 56%;
}

.wlre-login__usp-bg-slide:nth-child(4) {
	animation-delay: 23040ms;
	animation-name: wlre-auth-kenburns-d;
	transform-origin: 54% 50%;
}


.wlre-login--auth .wlre-login__usp-kicker {
	margin: 0;
	color: #fff;
	font-family: var(--wlre-font-body, 'Lato', sans-serif);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
}

.wlre-login--auth .wlre-login__usp-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wlre-login--auth .wlre-login__usp-item {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	width: 100%;
	padding: 24px;
	background: rgba(255, 255, 255, 0.05);
	border: none;
	border-radius: 20px;
	box-shadow: none;
	backdrop-filter: none;
}

.wlre-login--auth .wlre-login__usp-num {
	min-width: 40px;
	color: #faf8f4;
	font-family: var(--wlre-font-heading, 'DM Sans', sans-serif);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
}

.wlre-login--auth .wlre-login__usp-text {
	color: #fff;
	font-family: var(--wlre-font-heading, 'DM Sans', sans-serif);
	font-size: 28px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
}

.wlre-login--auth .wlre-text-accent {
	color: var(--wlre-color-accent-500, #81d8d0);
}

@keyframes wlre-auth-kenburns-a {
	0% {
		opacity: 0;
		transform: translate3d(-1%, 0.6%, 0) scale(1.045);
	}
	3%,
	22% {
		opacity: 1;
	}
	28%,
	99.99% {
		opacity: 0;
		transform: translate3d(1.4%, -1.2%, 0) scale(1.105);
	}
	100% {
		opacity: 0;
		transform: translate3d(-1%, 0.6%, 0) scale(1.045);
	}
}

@keyframes wlre-auth-kenburns-b {
	0% {
		opacity: 0;
		transform: translate3d(1.2%, -0.8%, 0) scale(1.05);
	}
	3%,
	22% {
		opacity: 1;
	}
	28%,
	99.99% {
		opacity: 0;
		transform: translate3d(-1.4%, 1.1%, 0) scale(1.11);
	}
	100% {
		opacity: 0;
		transform: translate3d(1.2%, -0.8%, 0) scale(1.05);
	}
}

@keyframes wlre-auth-kenburns-c {
	0% {
		opacity: 0;
		transform: translate3d(-0.6%, -1%, 0) scale(1.048);
	}
	3%,
	22% {
		opacity: 1;
	}
	28%,
	99.99% {
		opacity: 0;
		transform: translate3d(1.7%, 0.8%, 0) scale(1.108);
	}
	100% {
		opacity: 0;
		transform: translate3d(-0.6%, -1%, 0) scale(1.048);
	}
}

@keyframes wlre-auth-kenburns-d {
	0% {
		opacity: 0;
		transform: translate3d(1%, 0.8%, 0) scale(1.046);
	}
	3%,
	22% {
		opacity: 1;
	}
	28%,
	99.99% {
		opacity: 0;
		transform: translate3d(-1.6%, -0.9%, 0) scale(1.106);
	}
	100% {
		opacity: 0;
		transform: translate3d(1%, 0.8%, 0) scale(1.046);
	}
}

.wlre-login--auth {
	animation: wlre-auth-page-in 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.wlre-login--auth .wlre-login__wrap {
	animation: wlre-auth-shell-in 900ms cubic-bezier(0.16, 1, 0.3, 1) 90ms both;
	transform-origin: center;
}

.wlre-login--auth .wlre-login__card {
	animation: wlre-auth-section-in 760ms cubic-bezier(0.16, 1, 0.3, 1) 210ms both;
}

.wlre-login--auth .wlre-login__usp {
	animation: wlre-auth-section-in 820ms cubic-bezier(0.16, 1, 0.3, 1) 330ms both;
}

.wlre-login--auth .wlre-login__logo {
	animation: wlre-auth-content-in 620ms cubic-bezier(0.16, 1, 0.3, 1) 440ms both;
}

.wlre-login--auth .wlre-login__title {
	animation: wlre-auth-content-in 660ms cubic-bezier(0.16, 1, 0.3, 1) 520ms both;
}

.wlre-login--auth .wlre-login__panel[data-wlre-auth-panel="email"] .wlre-form__group {
	animation: wlre-auth-content-in 620ms cubic-bezier(0.16, 1, 0.3, 1) 640ms both;
}

.wlre-login--auth .wlre-login__panel[data-wlre-auth-panel="email"] .wlre-login__submit {
	animation: wlre-auth-button-in 680ms cubic-bezier(0.16, 1, 0.3, 1) 760ms both;
}

.wlre-login--auth .wlre-login__social-divider {
	animation: wlre-auth-content-in 620ms cubic-bezier(0.16, 1, 0.3, 1) 900ms both;
}

.wlre-login--auth .wlre-login__social-btn {
	animation: wlre-auth-content-in 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wlre-login--auth .wlre-login__social-btn:nth-child(1) {
	animation-delay: 1010ms;
}

.wlre-login--auth .wlre-login__social-btn:nth-child(2) {
	animation-delay: 1090ms;
}

.wlre-login--auth .wlre-login__social-btn:nth-child(3) {
	animation-delay: 1170ms;
}

.wlre-login--auth .wlre-login__usp-kicker {
	animation: wlre-auth-content-in 620ms cubic-bezier(0.16, 1, 0.3, 1) 690ms both;
}

.wlre-login--auth .wlre-login__usp-item {
	animation: wlre-auth-benefit-in 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wlre-login--auth .wlre-login__usp-item:nth-child(1) {
	animation-delay: 820ms;
}

.wlre-login--auth .wlre-login__usp-item:nth-child(2) {
	animation-delay: 950ms;
}

.wlre-login--auth .wlre-login__usp-item:nth-child(3) {
	animation-delay: 1080ms;
}

@keyframes wlre-auth-page-in {
	0% {
		background-color: #f3efe7;
	}
	100% {
		background-color: #faf8f4;
	}
}

@keyframes wlre-auth-shell-in {
	0% {
		opacity: 0;
		transform: translate3d(0, 28px, 0) scale(0.982);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@keyframes wlre-auth-section-in {
	0% {
		opacity: 0;
		transform: translate3d(0, 18px, 0);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes wlre-auth-content-in {
	0% {
		opacity: 0;
		transform: translate3d(0, 14px, 0);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes wlre-auth-button-in {
	0% {
		opacity: 0;
		transform: translate3d(0, 14px, 0) scale(0.985);
	}
	72% {
		transform: translate3d(0, -1px, 0) scale(1.006);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@keyframes wlre-auth-benefit-in {
	0% {
		opacity: 0;
		transform: translate3d(18px, 0, 0) scale(0.985);
	}
	100% {
		opacity: 1;
		transform: translate3d(0, 0, 0) scale(1);
	}
}

@keyframes wlre-auth-overlay-in {
	0% {
		opacity: 0;
	}
	100% {
		opacity: 1;
	}
}

@keyframes wlre-auth-overlay-cycle {
	0%,
	3% {
		opacity: 0;
	}
	7% {
		opacity: 0.22;
	}
	11% {
		opacity: 0.48;
	}
	15% {
		opacity: 0.76;
	}
	19%,
	76% {
		opacity: 1;
	}
	90% {
		opacity: 0.45;
	}
	100% {
		opacity: 0;
	}
}

@keyframes wlre-auth-bg-reveal {
	0% {
		opacity: 0;
		transform: scale(1.035);
	}
	100% {
		opacity: 1;
		transform: scale(1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.wlre-login--auth,
	.wlre-login--auth .wlre-login__wrap,
	.wlre-login--auth .wlre-login__card,
	.wlre-login--auth .wlre-login__usp,
	.wlre-login--auth .wlre-login__logo,
	.wlre-login--auth .wlre-login__title,
	.wlre-login--auth .wlre-login__panel[data-wlre-auth-panel="email"] .wlre-form__group,
	.wlre-login--auth .wlre-login__panel[data-wlre-auth-panel="email"] .wlre-login__submit,
	.wlre-login--auth .wlre-login__social-divider,
	.wlre-login--auth .wlre-login__social-btn,
	.wlre-login--auth .wlre-login__usp::before,
	.wlre-login--auth .wlre-login__usp::after,
	.wlre-login--auth .wlre-login__usp-bg,
	.wlre-login--auth .wlre-login__usp-kicker,
	.wlre-login--auth .wlre-login__usp-item {
		animation: none;
		opacity: 1;
		transform: none;
	}

	.wlre-login__usp-bg-slide {
		animation: none;
		opacity: 0;
		transform: scale(1.04);
	}

	.wlre-login__usp-bg-slide:first-child {
		opacity: 1;
	}
}

@media (max-width: 1199px) {
	.wlre-login--auth {
		min-height: 100vh;
		padding-block: 40px;
		align-items: flex-start;
	}

	/* Mobile: matches the service modal close style (modals.css @767px) —
	 * no background, navy text + icon, sits in the cream strip above the card. */
	.wlre-login__close {
		top: 12px;
		right: 16px;
		padding: 0;
		background: none;
		-webkit-backdrop-filter: none;
		backdrop-filter: none;
		border-radius: 0;
		gap: 6px;
	}

	.wlre-login__close-label {
		font-family: var(--wlre-font-body, 'Lato', sans-serif);
		font-size: 14px;
		font-weight: 600;
		line-height: 1;
		color: var(--wlre-color-text-900, #0a2438);
	}

	.wlre-login__close svg {
		width: 24px;
		height: 24px;
	}

	.wlre-login--auth .wlre-container {
		padding-inline: 0;
	}

	.wlre-login--auth .wlre-login__wrap {
		grid-template-columns: 1fr;
		width: calc(100% - 32px);
		border-radius: 16px;
		box-shadow: none;
	}

	.wlre-login--auth .wlre-login__card {
		min-height: 0;
		padding: 32px 24px;
		border-radius: 16px 16px 0 0;
	}

	.wlre-login--auth .wlre-login__header {
		gap: 20px;
		margin-bottom: 24px;
	}

	.wlre-login--auth .wlre-login__logo {
		width: 123.33px;
		height: 32px;
	}

	.wlre-login--auth .wlre-login__title {
		font-size: 32px;
	}

	.wlre-login--auth .wlre-login__panel {
		gap: 24px;
	}

	.wlre-login--auth .wlre-login__social {
		gap: 24px;
		margin-top: 32px;
	}

	.wlre-login--auth .wlre-login__social-or {
		font-size: 13px;
	}

	.wlre-login--auth .wlre-login__usp {
		min-height: 0;
		gap: 16px;
		padding: 32px 24px;
		border-radius: 0 0 16px 16px;
	}

	.wlre-login--auth .wlre-login__usp-kicker {
		font-size: 14px;
		font-weight: 600;
	}

	.wlre-login--auth .wlre-login__usp-list {
		gap: 16px;
	}

	.wlre-login--auth .wlre-login__usp-item {
		gap: 24px;
		padding: 20px;
		border-radius: 16px;
	}

	.wlre-login--auth .wlre-login__usp-num {
		min-width: 28px;
		font-size: 20px;
	}

	.wlre-login--auth .wlre-login__usp-text {
		font-size: 22px;
	}

	.wlre-login__register-hint,
	.wlre-login__register-signin {
		font-size: 14px;
	}
}
