/**
 * Login / Registration — self-contained, responsive card.
 *
 * Works standalone wherever [wwo_login_register] is placed (light or dark page).
 * Colours come from the --wwo-* CSS variables (admin colour customizer), with
 * fallbacks. Buttons/inputs use !important only where needed to override theme
 * styles that target all <button>/<input> elements.
 *
 * @package WC_Wholesale_Offers
 */

.wwo-auth {
	--c-primary: var(--wwo-primary, #332A28);
	--c-secondary: var(--wwo-secondary, #F0D1AD);
	--c-accent: var(--wwo-accent, #050909);
	--c-surface: #ffffff;
	--c-field: #f4f1ee;
	--c-border: #e7e1da;
	--c-muted: #8c8279;
	--c-text: #2c2723;

	/* Poppins for everything, with the "menseal" display face for the panel
	   heading. Several casings, because a custom font registered through
	   Elementor or the theme keeps whatever family name it was given — set the
	   exact name with the wwo_login_display_font filter if none of these match
	   (it also inherits wwo_checkout_display_font). */
	--f-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--f-display: "menseal", "Menseal", "MenSeal", "menseal bold", "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;
	--w-display: 700;

	font-family: var(--f-body);
	color: var(--c-text);
	width: 100%;
	box-sizing: border-box;

	/* Full-bleed, full-height split screen. */
	min-height: 100vh;
	margin: 0;
	padding: 0;
}

.wwo-auth__card {
	width: 100%;
	max-width: none;
}

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

/* ---- Card (two columns, full height) ---- */
.wwo-auth__card {
	display: flex;
	align-items: stretch;
	min-height: 100vh;
	background: var(--c-surface);
	border: 0;
	border-radius: 0;
	overflow: hidden;
	box-shadow: none;
}

/* Decorative brand panel (pure CSS — gradient + soft shapes, no image). */
.wwo-auth__aside {
	position: relative;
	flex: 0 0 46%;
	max-width: 46%;
	padding: 56px 52px;
	background:
		radial-gradient( circle at 78% 8%, rgba(240, 209, 173, 0.36), transparent 38% ),
		radial-gradient( circle at 6% 96%, rgba(240, 209, 173, 0.14), transparent 44% ),
		linear-gradient( 155deg, #3d322f 0%, var(--c-primary) 38%, var(--c-accent) 100% );
	color: #fff;
	overflow: hidden;
	display: flex;
	align-items: stretch;
}

/* Soft top glow + large faint ring for depth. */
.wwo-auth__aside::before {
	content: "";
	position: absolute;
	left: -80px;
	top: -100px;
	width: 320px;
	height: 320px;
	background: radial-gradient( circle, rgba(240, 209, 173, 0.16), transparent 70% );
	pointer-events: none;
}

.wwo-auth__aside::after {
	content: "";
	position: absolute;
	right: -90px;
	bottom: -110px;
	width: 300px;
	height: 300px;
	border: 1.5px solid rgba(255, 255, 255, 0.10);
	border-radius: 50%;
	box-shadow: 0 0 0 40px rgba(255, 255, 255, 0.04);
	pointer-events: none;
}

/* Distribute content across the full height. */
.wwo-auth__aside-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
}

.wwo-auth__aside-mid {
	max-width: 440px;
}

/* Logo, then a hairline running out to the panel edge. */
.wwo-auth__brand {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 100%;
	margin: 0;
}

/*
 * The logo is an SVG with only a viewBox, so it has no intrinsic pixel size.
 * Themes that ship a blanket `img { width: 100%; height: auto }` reset would
 * otherwise blow it up to the full panel width, hence the !important guards
 * and the fixed aspect ratio. Height scales with the viewport so the single
 * rule covers every breakpoint — no per-media-query overrides needed.
 */
.wwo-auth__logo {
	display: block;
	flex: 0 0 auto;
	width: auto !important;
	height: clamp( 26px, 4vw, 38px ) !important;
	max-width: 180px;
	aspect-ratio: 125.4 / 34;
	object-fit: contain;
}

/* Fallback when the logo file is missing. */
.wwo-auth__brand-text {
	flex: 0 0 auto;
	font-family: var(--f-display);
	font-size: 14px;
	font-weight: var(--w-display);
	letter-spacing: 0.9px;
	text-transform: uppercase;
	color: var(--c-secondary);
}

.wwo-auth__brand-rule {
	flex: 1 1 auto;
	min-width: 20px;
	height: 1px;
	background: rgba(255, 255, 255, 0.18);
}

.wwo-auth__aside-title {
	margin: 0 0 14px;
	font-family: var(--f-display);
	font-size: 32px;
	line-height: 1.16;
	font-weight: var(--w-display);
	color: #fff;
	letter-spacing: -0.02em;
}

.wwo-auth__aside-text {
	margin: 0;
	font-family: var(--f-body);
	font-size: 14.5px;
	line-height: 1.7;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.78);
}

/* Feature checklist */
.wwo-auth__features {
	list-style: none;
	margin: 26px 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 13px;
}

.wwo-auth__features li {
	position: relative;
	padding-left: 32px;
	font-family: var(--f-body);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.92);
}

.wwo-auth__features li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 21px;
	height: 21px;
	border-radius: 50%;
	background-color: var(--c-secondary);
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%23050909'%20stroke-width='3'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='20%206%209%2017%204%2012'/%3E%3C/svg%3E");
	background-size: 12px;
	background-position: center;
	background-repeat: no-repeat;
}

.wwo-auth__aside-foot {
	margin: 0;
	padding-top: 20px;
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	font-family: var(--f-body);
	font-size: 12.5px;
	font-weight: 300;
	letter-spacing: 0.2px;
	color: rgba(255, 255, 255, 0.58);
}

/* Form column — content centered both ways inside the full-height panel. */
.wwo-auth__main {
	flex: 1 1 0;
	min-width: 0;
	padding: 48px 44px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.wwo-auth__main > * {
	flex: 0 0 auto;
	width: 100%;
	max-width: 420px;
}

/* ---- Tabs (segmented switch) ---- */
.wwo-tabs {
	display: flex;
	gap: 4px;
	background: var(--c-field);
	border-radius: 12px;
	padding: 5px;
	margin-bottom: 24px;
}

/*
 * Only the sign-in and create-account screens have tabs. Password recovery and
 * the reset form are single-purpose screens reached from a link, so the tab bar
 * is hidden there — both of those panels carry their own "Back to sign in"
 * link. Set server-side from the default panel and kept in step by
 * activateTab() in wwo-public.js, so it never flashes on load.
 */
.wwo-auth .wwo-tabs.is-hidden {
	display: none;
}

.wwo-auth .wwo-tab {
	flex: 1 1 0;
	min-width: 0;
	border: 0 !important;
	background: transparent !important;
	color: var(--c-primary) !important;
	padding: 11px 10px !important;
	border-radius: 9px !important;
	cursor: pointer;
	font-family: var(--f-body);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	/* Keep "Create account" on one line — wrapping breaks the pill. */
	white-space: nowrap;
	text-align: center;
	box-shadow: none !important;
	transition: background 0.18s ease, color 0.18s ease;
}

.wwo-auth .wwo-tab.is-active {
	background: var(--c-primary) !important;
	color: #fff !important;
}

/* ---- Forms ---- */
.wwo-form {
	display: none;
}

.wwo-form.is-active {
	display: block;
	animation: wwo-fade 0.22s ease;
}

@keyframes wwo-fade {
	from { opacity: 0; transform: translateY(5px); }
	to   { opacity: 1; transform: translateY(0); }
}

.wwo-form__lead {
	margin: 0 0 22px;
	font-size: 14px;
	color: var(--c-muted);
}

/* ---- Fields ---- */
.wwo-field {
	margin: 0 0 16px;
}

.wwo-label {
	display: block;
	margin: 0 0 7px;
	font-size: 13px;
	font-weight: 600;
	color: var(--c-primary);
}

.wwo-input-wrap {
	position: relative;
}

.wwo-auth .wwo-field input,
.wwo-auth .wwo-select {
	width: 100%;
	margin: 0 !important;
	background: var(--c-field);
	border: 1.5px solid transparent !important;
	border-radius: 12px !important;
	padding: 15px 16px !important;
	font-size: 15px;
	line-height: 1.3;
	color: var(--c-text) !important;
	box-shadow: none !important;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.wwo-auth .wwo-field input::placeholder {
	color: #b6ada3;
	opacity: 1;
}

.wwo-auth .wwo-field input:focus,
.wwo-auth .wwo-select:focus {
	outline: none;
	background: #fff;
	border-color: var(--c-secondary) !important;
	box-shadow: 0 0 0 3px rgba(240, 209, 173, 0.45) !important;
}

.wwo-auth .wwo-select {
	cursor: pointer;
	padding-right: 44px !important;
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%238c8279'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpolyline%20points%3D'6%209%2012%2015%2018%209'%2F%3E%3C%2Fsvg%3E");
	background-repeat: no-repeat;
	background-position: right 16px center;
	background-size: 18px;
}

/* Password show/hide eye */
.wwo-field--password .wwo-input-wrap input,
.wwo-input-wrap input[type="password"],
.wwo-input-wrap input[type="text"] {
	padding-right: 50px !important;
}

.wwo-auth button.wwo-eye {
	position: absolute;
	top: 0;
	right: 4px;
	height: 100%;
	width: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	box-shadow: none !important;
	color: var(--c-muted) !important;
	cursor: pointer;
	padding: 0 !important;
	margin: 0 !important;
	min-height: 0;
}

.wwo-auth button.wwo-eye:hover,
.wwo-auth button.wwo-eye:focus {
	background: transparent !important;
	color: var(--c-primary) !important;
	outline: none;
}

.wwo-hint {
	display: block;
	margin-top: 8px;
	font-size: 12px;
	line-height: 1.5;
	color: var(--c-muted);
}

/* ---- Custom dropdown (replaces native <select> styling) ---- */
.wwo-cs {
	position: relative;
}

.wwo-cs__native {
	display: none !important;
}

.wwo-auth .wwo-cs__trigger {
	width: 100%;
	display: block;
	text-align: left;
	margin: 0 !important;
	background: var(--c-field) !important;
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%238c8279'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpolyline%20points='6%209%2012%2015%2018%209'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 16px center !important;
	background-size: 18px !important;
	border: 1.5px solid transparent !important;
	border-radius: 12px !important;
	padding: 15px 44px 15px 16px !important;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--c-text) !important;
	cursor: pointer;
	box-shadow: none !important;
	transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.wwo-auth .wwo-cs.is-open .wwo-cs__trigger {
	background-color: #fff !important;
	border-color: var(--c-secondary) !important;
	box-shadow: 0 0 0 3px rgba(240, 209, 173, 0.45) !important;
}

.wwo-cs__list {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	right: 0;
	z-index: 60;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	box-shadow: 0 18px 44px rgba(5, 9, 9, 0.16);
	max-height: 260px;
	overflow-y: auto;
	display: none;
}

.wwo-cs.is-open .wwo-cs__list {
	display: block;
	animation: wwo-fade 0.16s ease;
}

.wwo-cs__option {
	padding: 11px 14px;
	border-radius: 8px;
	font-size: 14.5px;
	color: var(--c-text);
	cursor: pointer;
	transition: background 0.14s ease, color 0.14s ease;
}

.wwo-cs__option:hover {
	background: rgba(240, 209, 173, 0.35);
}

.wwo-cs__option.is-selected {
	background: var(--c-primary);
	color: #fff;
}

/* Two columns (first / last name) */
.wwo-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.wwo-grid .wwo-field { margin-bottom: 16px; }

/* Remember / forgot row */
.wwo-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin: 4px 0 22px;
	font-size: 13px;
}

.wwo-checkbox {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	color: var(--c-text);
}

.wwo-auth .wwo-checkbox input {
	width: 17px;
	height: 17px;
	margin: 0 !important;
	accent-color: var(--c-primary);
	flex: 0 0 auto;
}

/* Links */
.wwo-auth .wwo-link {
	color: var(--c-primary);
	text-decoration: none;
	background: transparent !important;
	border: 0 !important;
	padding: 0 !important;
	box-shadow: none !important;
	cursor: pointer;
	font-size: inherit;
	font-weight: 600;
	width: auto !important;
	min-height: 0;
}

.wwo-auth .wwo-link:hover { text-decoration: underline; }

.wwo-switch {
	margin: 18px 0 0;
	font-size: 13px;
	text-align: center;
	color: var(--c-muted);
}

/* ---- Primary button ---- */
.wwo-auth button.wwo-btn--primary {
	display: block;
	width: 100%;
	background: var(--c-secondary) !important;
	background-image: none !important;
	color: var(--c-accent) !important;
	border: 0 !important;
	border-radius: 12px !important;
	padding: 16px 22px !important;
	margin: 4px 0 0 !important;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	text-align: center;
	box-shadow: 0 10px 22px rgba(240, 209, 173, 0.35) !important;
	text-shadow: none !important;
	transition: opacity 0.18s ease, transform 0.08s ease, box-shadow 0.18s ease;
}

.wwo-auth button.wwo-btn--primary:hover { opacity: 0.94; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(240, 209, 173, 0.45) !important; }
.wwo-auth button.wwo-btn--primary:active { transform: translateY(0); }

/* ---- Alerts ---- */
.wwo-alert {
	padding: 12px 15px;
	border-radius: 10px;
	margin-bottom: 18px;
	font-size: 13.5px;
	line-height: 1.5;
}

.wwo-alert--error   { background: #fdecea; color: #8a1c1c; }
.wwo-alert--success { background: #e8f5e9; color: #1b5e20; }
.wwo-alert--info    { background: rgba(240, 209, 173, 0.35); color: var(--c-primary); }

/* Dismissible alert: text + a close (×) button on the right. */
.wwo-alert--dismissible {
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.wwo-alert__text { flex: 1 1 auto; }

.wwo-alert__close {
	flex: 0 0 auto;
	background: none;
	border: 0;
	padding: 0;
	margin: -2px -4px 0 0;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	color: inherit;
	opacity: 0.6;
	transition: opacity 0.15s ease;
}

.wwo-alert__close:hover { opacity: 1; }

/* ---- Responsive ----------------------------------------------------------
 *
 * Layout, spacing and sizing only. Not one colour is declared below this line:
 * the gradient panel, the white form column, the tabs, the buttons, the inputs
 * and the checkmarks all keep exactly the values set above. Spacing follows an
 * 8px scale (8 / 16 / 24 / 32).
 *
 * Desktop (≥1024px) is deliberately untouched.
 * ------------------------------------------------------------------------- */

/* ---- Tablet and below (≤1023px): stack, brand panel on top ---- */
@media ( max-width: 1023px ) {
	.wwo-auth {
		min-height: auto;
	}

	.wwo-auth__card {
		flex-direction: column;
		min-height: auto;
	}

	/*
	 * flex: 0 0 auto is the fix for the cramped form. The panel was `1 1 auto`
	 * against a full-height card, so it grew to fill the viewport and pushed
	 * the form off the bottom of the screen. It now sizes to its own content.
	 */
	.wwo-auth__aside {
		flex: 0 0 auto;
		max-width: 100%;
		padding: 32px;
	}

	.wwo-auth__aside::after {
		width: 160px;
		height: 160px;
		right: -56px;
		bottom: -56px;
	}

	.wwo-auth__aside-inner {
		gap: 24px;
	}

	.wwo-auth__aside-mid {
		max-width: 100%;
	}

	.wwo-auth__aside-title {
		margin-bottom: 8px;
		font-size: 26px;
	}

	.wwo-auth__aside-text {
		font-size: 14px;
	}

	/*
	 * The benefits checklist is desktop-only. On a stacked layout it is the
	 * single biggest block between the heading and the form, so dropping it
	 * keeps the sign-in fields near the top of the screen. Desktop (≥1024px)
	 * still shows it in full.
	 */
	.wwo-auth__features {
		display: none;
	}

	.wwo-auth__aside-foot {
		padding-top: 16px;
	}

	/* Form column: centred measure, aligned to the top now that the card is
	   no longer full height. */
	.wwo-auth__main {
		padding: 32px;
		justify-content: flex-start;
	}

	.wwo-auth__main > * {
		max-width: 440px;
	}

	.wwo-tabs {
		margin-bottom: 24px;
	}

	/* ~48px tall: 13 + 13 padding + 19.5 line-box + 3 border. */
	.wwo-auth .wwo-field input,
	.wwo-auth .wwo-select,
	.wwo-auth .wwo-cs__trigger {
		padding-top: 13px !important;
		padding-bottom: 13px !important;
	}

	.wwo-field,
	.wwo-grid .wwo-field {
		margin-bottom: 16px;
	}

	.wwo-grid {
		gap: 16px;
	}
}

/* ---- Mobile (≤767px): single column, everything full width ---- */
@media ( max-width: 767px ) {
	.wwo-auth {
		margin: 0;
	}

	.wwo-auth__aside {
		padding: 24px 20px;
	}

	.wwo-auth__aside::after {
		width: 120px;
		height: 120px;
		right: -44px;
		bottom: -44px;
	}

	.wwo-auth__aside-inner {
		gap: 16px;
	}

	.wwo-auth__brand {
		gap: 12px;
	}

	.wwo-auth__aside-title {
		font-size: 22px;
	}

	.wwo-auth__aside-text {
		font-size: 13.5px;
	}

	.wwo-auth__main {
		padding: 24px 20px;
	}

	/* Full width — no centred measure left on a phone. */
	.wwo-auth__main > * {
		max-width: 100%;
	}

	/* First / last name stack. */
	.wwo-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.wwo-auth .wwo-tab {
		padding-right: 8px !important;
		padding-left: 8px !important;
		font-size: 13.5px;
	}

	/* Keep the remember/forgot row from squeezing on a narrow screen. */
	.wwo-row {
		flex-wrap: wrap;
		gap: 8px;
	}
}

/* =====================================================================
 * [wwo_login] — compact sign-in form.
 *
 * Transparent and full width so it takes the shape of whatever section it is
 * dropped into. Every colour is one of the existing --wwo-* brand variables
 * (or plain alpha-white over them); none are new.
 * =================================================================== */

.wwo-mini-auth {
	--c-primary: var(--wwo-primary, #332A28);
	--c-secondary: var(--wwo-secondary, #F0D1AD);
	--c-light: var(--wwo-light, #FFFFFF);

	--f-body: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--f-display: "Menseal Regular", "Menseal", "menseal regular", "menseal", "MenSeal", "Menseal-Regular", "Poppins", -apple-system, sans-serif;

	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	font-family: var(--f-body);
}

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

.wwo-mini-auth__form {
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

/* ---- Fields ---- */
.wwo-mini-auth__field {
	margin: 0 0 18px;
}

.wwo-mini-auth__label {
	display: block;
	margin: 0 0 8px;
	font-family: var(--f-display);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.2px;
	color: var(--c-light);
}

.wwo-mini-auth input[type="text"],
.wwo-mini-auth input[type="email"],
.wwo-mini-auth input[type="password"] {
	width: 100%;
	margin: 0;
	padding: 14px 16px;
	border: 0 !important;
	border-radius: 8px;
	background: var(--c-light) !important;
	box-shadow: none !important;
	outline: none;
	font-family: var(--f-body);
	font-size: 14px;
	line-height: 1.4;
	color: var(--c-primary) !important;
	-webkit-appearance: none;
	appearance: none;
}

.wwo-mini-auth input::placeholder {
	color: rgba(51, 42, 40, 0.45);
	opacity: 1;
}

.wwo-mini-auth input:focus-visible,
.wwo-mini-auth a:focus-visible,
.wwo-mini-auth button:focus-visible {
	outline: 2px solid var(--c-secondary);
	outline-offset: 2px;
}

/* ---- Forgot password ---- */
.wwo-mini-auth__forgot {
	display: inline-block;
	margin: 8px 0 0;
	font-family: var(--f-body);
	font-size: 10px;
	line-height: 1.4;
	text-decoration: none;
	color: rgba(255, 255, 255, 0.5) !important;
}

.wwo-mini-auth__forgot:hover {
	color: rgba(255, 255, 255, 0.8) !important;
	text-decoration: underline;
}

/* ---- Create an Account: outlined, full width ---- */
.wwo-mini-auth__create {
	display: block;
	width: 100%;
	margin: 4px 0 18px;
	padding: 14px 20px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 8px;
	background: transparent;
	font-family: var(--f-display);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	text-align: center;
	text-decoration: none !important;
	text-transform: none;
	color: var(--c-light) !important;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease;
}

.wwo-mini-auth__create:hover {
	border-color: rgba(255, 255, 255, 0.6);
	background: rgba(255, 255, 255, 0.06);
	color: var(--c-light) !important;
}

/* ---- Consent row ---- */
.wwo-mini-auth__consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 20px;
	font-family: var(--f-body);
	font-size: 12.5px;
	font-weight: 400;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.72);
	cursor: pointer;
}

.wwo-mini-auth__consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 15px;
	height: 15px;
	margin: 3px 0 0;
	padding: 0;
	accent-color: var(--c-secondary);
	cursor: pointer;
}

/* ---- Login: filled, full width ---- */
.wwo-mini-auth__submit {
	display: block;
	width: 100%;
	margin: 0;
	padding: 16px 22px;
	border: 0 !important;
	border-radius: 8px;
	background: var(--c-secondary) !important;
	box-shadow: none !important;
	font-family: var(--f-display);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
	text-align: center;
	text-decoration: none !important;
	text-transform: none;
	color: var(--c-primary) !important;
	cursor: pointer;
	transition: opacity 0.18s ease;
}

.wwo-mini-auth__submit:hover {
	background: var(--c-secondary) !important;
	color: var(--c-primary) !important;
	opacity: 0.9;
}

/* ---- Already signed in ---- */
.wwo-mini-auth__signed {
	margin: 0 0 16px;
	font-family: var(--f-body);
	font-size: 14px;
	line-height: 1.6;
	color: var(--c-light);
}

/* ---- Messages handed back by the shared handler ---- */
.wwo-mini-auth .wwo-alert {
	margin: 0 0 18px;
	font-family: var(--f-body);
	font-size: 13.5px;
}

/* ---- Small screens ---- */
@media ( max-width: 480px ) {
	.wwo-mini-auth input[type="text"],
	.wwo-mini-auth input[type="email"],
	.wwo-mini-auth input[type="password"] {
		padding: 13px 14px;
		font-size: 15px; /* 15px+ stops iOS zooming the page on focus. */
	}

	.wwo-mini-auth__create,
	.wwo-mini-auth__submit {
		padding: 14px 16px;
		font-size: 15px;
	}

	.wwo-mini-auth__consent {
		font-size: 12px;
	}
}

/* =====================================================================
 * Country-aware phone field (intl-tel-input) + inline field errors.
 *
 * Only restyles the country selector the library injects around the existing
 * phone input, so it matches the fields either side of it. No other field is
 * touched.
 * =================================================================== */

.wwo-auth .iti {
	display: block;
	width: 100%;
}

.wwo-auth .iti__flag-container {
	border: 0;
}

/* The dial-code chip sits inside the field, on the same fill. */
.wwo-auth .iti--separate-dial-code .iti__selected-flag {
	border-radius: 12px 0 0 12px;
	background: transparent;
}

.wwo-auth .iti--separate-dial-code .iti__selected-dial-code {
	font-family: var(--f-body);
	font-size: 15px;
	color: var(--c-text);
}

.wwo-auth .iti__arrow {
	border-top-color: var(--c-muted);
}

.wwo-auth .iti__arrow--up {
	border-bottom-color: var(--c-muted);
}

/* The country list: same card language as the rest of the form. */
.wwo-auth .iti__country-list {
	max-height: 240px;
	border: 1px solid var(--c-border);
	border-radius: 12px;
	background: var(--c-surface);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12);
	font-family: var(--f-body);
	font-size: 14px;
	color: var(--c-text);
}

.wwo-auth .iti__country {
	padding: 9px 12px;
}

.wwo-auth .iti__country.iti__highlight {
	background: var(--c-field);
}

.wwo-auth .iti__dial-code {
	color: var(--c-muted);
}

.wwo-auth .iti__divider {
	border-bottom-color: var(--c-border);
}

/* ---- Inline field error, under the input ---- */
.wwo-auth .wwo-field__error {
	display: block;
	margin: 7px 0 0;
	font-family: var(--f-body);
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.45;
	color: #c0392b;
}

.wwo-auth .wwo-field__error[hidden] {
	display: none;
}

.wwo-auth .wwo-field input.wwo-input--invalid {
	border-color: #c0392b !important;
	box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.14) !important;
}

/* =====================================================================
 * intl-tel-input: keep the number clear of the flag and dial code.
 *
 * The field rule further up sets `padding: 15px 16px !important`, and an
 * !important author declaration outranks an inline style — so the padding-left
 * intl-tel-input measures and writes inline was being thrown away, and the
 * number rendered underneath the flag.
 *
 * Rather than fight it with a fixed offset (which breaks the moment the dial
 * code changes length: +1 vs +971), the gap is driven by --wwo-iti-pad, which
 * wwo-intl-phone.js sets from the real measured width of .iti__flag-container
 * and refreshes on every country change and resize. The value below is only
 * the pre-measurement default.
 * =================================================================== */

.wwo-auth .iti--separate-dial-code {
	--wwo-iti-pad: 92px;
}

.wwo-auth .iti--separate-dial-code input#wwo-reg-phone,
.wwo-auth .iti--separate-dial-code input.iti__tel-input,
.wwo-auth .iti--separate-dial-code > input[type="tel"] {
	padding-left: var(--wwo-iti-pad) !important;
}

/* Flag, dial code and arrow: one centred row on the left, never overlapping. */
.wwo-auth .iti--separate-dial-code .iti__flag-container {
	display: flex;
	align-items: center;
}

.wwo-auth .iti--separate-dial-code .iti__selected-flag {
	display: flex;
	align-items: center;
	height: 100%;
	padding: 0 8px 0 14px;
}

.wwo-auth .iti--separate-dial-code .iti__selected-dial-code {
	margin-left: 7px;
	white-space: nowrap;
}

.wwo-auth .iti--separate-dial-code .iti__arrow {
	margin-left: 6px;
}

/* A form waiting on its redirect: the button is disabled by wwo-public.js, so
   it needs to look it. Nothing else about the button changes. */
.wwo-auth form.wwo-form button[type="submit"][disabled],
.wwo-auth form.wwo-form.is-busy button[type="submit"] {
	opacity: 0.65;
	cursor: default;
	pointer-events: none;
}
