/* Connexion page (page-templates/mf-login.php) — split intro/card layout,
   ported from the myfitness-auth mockup and mapped onto the site's own
   --mf-* tokens (with literal fallbacks, since front-page.css — which
   defines them — only loads on the homepage), same approach as
   content-pages.css. Real site header/footer wrap this via
   get_header()/get_footer(); the mockup's own standalone header wasn't
   ported. */

.mf-auth {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	background:
		radial-gradient(ellipse at 0 0, #dceee2, transparent 45%),
		radial-gradient(ellipse at 100% 0, #fbefe1, transparent 42%),
		#fdfefb;
}

.mf-auth * {
	box-sizing: border-box;
}

.mf-auth-wrap {
	max-width: 1060px;
	margin: auto;
	display: grid;
	grid-template-columns: 1fr 460px;
	gap: 88px;
	align-items: center;
	padding: 64px 32px;
	min-block-size: calc(100svh - 400px);
}

.mf-auth-eyebrow {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 1.8px;
	color: #667c50;
}

.mf-auth-intro h1 {
	font-size: 45px;
	line-height: 1.14;
	letter-spacing: -1.6px;
	margin: 18px 0 24px;
	color: var(--mf-ink, #1A2120);
}

.mf-auth-intro p {
	color: #66736d;
	max-width: 400px;
	margin: 0;
}

.mf-auth-benefits {
	list-style: none;
	padding: 0;
	margin: 28px 0 0;
	display: grid;
	gap: 16px;
	font-size: 14px;
}

.mf-auth-benefits li {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--mf-ink, #1A2120);
}

.mf-auth-benefits span {
	border: 1px solid #d4dfca;
	background: #f1f6ec;
	border-radius: 50%;
	inline-size: 30px;
	block-size: 30px;
	display: grid;
	place-items: center;
	flex-shrink: 0;
}

.mf-auth-card {
	padding: 36px;
	background: white;
	border: 1px solid #e0e7da;
	border-radius: 20px;
	box-shadow: 0 16px 50px #20273308;
}

.mf-auth-context {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 5px 10px;
	background: #edf3e6;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 650;
	color: var(--mf-ink, #1A2120);
}

.mf-auth-context svg {
	inline-size: 21px;
	block-size: 21px;
}

/* Pro context gets the same dark treatment as the rest of the site's
   "pro" surfaces (mf-dark section on the homepage). */
.mf-auth-card-pro .mf-auth-context {
	background: var(--mf-ink, #1A2120);
	color: white;
}

.mf-auth-card-pro .mf-auth-primary {
	background: var(--mf-ink, #1A2120);
	color: white;
}

.mf-auth-form h2 {
	font-size: 27px;
	line-height: 1.2;
	letter-spacing: -.7px;
	margin: 20px 0 12px;
	color: var(--mf-ink, #1A2120);
}

.mf-auth-sub {
	font-size: 14px;
	color: #66736d;
	margin: 0 0 24px;
}

.mf-auth-form label {
	font-size: 13px;
	font-weight: 650;
	display: block;
	margin-bottom: 8px;
	color: var(--mf-ink, #1A2120);
}

.mf-auth-form input {
	inline-size: 100%;
	block-size: 54px;
	border: 1px solid #bac9b2;
	border-radius: 10px;
	background: #fdfefa;
	padding: 12px 14px;
	color: var(--mf-ink, #1A2120);
	font-size: 16px;
	font-family: inherit;
	transition: border-color .15s ease, background-color .15s ease;
}

.mf-auth-form input[aria-invalid="true"] {
	border-color: #a4313e;
	background: #fdf3f3;
	animation: mf-auth-shake .3s ease;
}

@keyframes mf-auth-shake {
	25% { transform: translateX(-4px); }
	75% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
	.mf-auth-form input[aria-invalid="true"] {
		animation: none;
	}
}

.mf-auth-hint {
	font-size: 12px;
	color: #66736d;
	margin: 10px 0 20px;
}

.mf-auth-primary {
	border: 0;
	background: var(--mf-lime, #CCFF00);
	color: var(--mf-ink, #1A2120);
	border-radius: 999px;
	min-block-size: 52px;
	inline-size: 100%;
	font-size: 14px;
	font-weight: 750;
	padding: 12px 16px;
	cursor: pointer;
}

.mf-auth-primary:disabled {
	cursor: default;
	opacity: .6;
}

.mf-auth-quiet {
	border: 0;
	background: none;
	min-block-size: 48px;
	padding: 10px 0;
	color: var(--mf-ink, #1A2120);
	font-size: 13px;
	text-decoration: underline;
	text-underline-offset: 4px;
	cursor: pointer;
	font-family: inherit;
}

.mf-auth-legal {
	font-size: 11px;
	color: #66736d;
	margin: 20px 0;
	line-height: 1.7;
}

.mf-auth-legal a {
	color: inherit;
}

.mf-auth-switch {
	border-top: 1px solid #e7ece2;
	margin-top: 24px;
	padding-top: 16px;
	font-size: 12px;
	color: #66736d;
}

.mf-auth-switch a {
	font-weight: 650;
	color: var(--mf-ink, #1A2120);
	min-block-size: 48px;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.mf-auth-email-line {
	font-size: 14px;
	overflow-wrap: anywhere;
	font-weight: 650;
	margin-bottom: 4px;
	color: var(--mf-ink, #1A2120);
}

.mf-auth-otp {
	letter-spacing: .55em;
	font-size: 27px !important;
	font-weight: 650;
	text-align: center;
	padding-left: 24px !important;
}

.mf-auth-error {
	color: #a4313e;
	font-size: 12px;
	margin: 10px 0;
	min-block-size: 16px;
}

.mf-auth-resend {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

@media (max-width: 700px) {
	.mf-auth-wrap {
		display: block;
		padding: 28px 16px;
		max-width: 460px;
	}

	.mf-auth-intro {
		margin-bottom: 24px;
	}

	.mf-auth-intro h1 {
		font-size: 30px;
		margin: 10px 0 12px;
		letter-spacing: -.8px;
	}

	.mf-auth-intro p {
		font-size: 14px;
	}

	.mf-auth-benefits {
		display: none;
	}

	.mf-auth-card {
		padding: 24px 20px;
		border-radius: 16px;
	}

	.mf-auth-form h2 {
		font-size: 25px;
	}

	.mf-auth-eyebrow {
		font-size: 10px;
	}

	.mf-auth-resend {
		flex-wrap: wrap;
		gap: 0;
	}

	/* Fixed bottom mobile tab bar clearance, same treatment as .mf-footer. */
	.mf-auth {
		padding-bottom: calc(83px + env(safe-area-inset-bottom, 0px));
	}
}

/* Spinner on the primary button while the code is requested or verified */
.mf-auth-primary.is-busy{display:inline-flex;align-items:center;justify-content:center;gap:10px;cursor:progress}
.mf-auth-primary.is-busy::before{content:"";width:16px;height:16px;border:2px solid rgba(128,128,128,.35);border-top-color:currentColor;border-radius:50%;animation:mf-auth-spin .8s linear infinite}
@keyframes mf-auth-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.mf-auth-primary.is-busy::before{animation-duration:2s}}
