/*
 * Affiliate registration + login pages (mu-plugins/tmt-affiliates.php), in the Mindset skin.
 * Tokens come from skin.css on body.tmt-mindset; fallbacks keep it readable without the skin.
 */

body.tmt-aff .tmt-aff-wrap {
	max-width: 880px;
	margin: 0 auto;
	font-family: var(--tmt-body, "Poppins", Arial, sans-serif);
	color: var(--tmt-text, #232a35);
}

body.tmt-aff .tmt-aff-wrap--narrow {
	max-width: 520px;
}

body.tmt-aff .tmt-aff-hero {
	text-align: center;
	padding: 8px 0 28px;
}

body.tmt-aff .tmt-aff-eyebrow {
	display: inline-block;
	margin: 0 0 14px;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--tmt-gold, #f2b624);
	color: var(--tmt-crimson-deep, #6e0f1c);
	font-family: var(--tmt-sans, Arial, sans-serif);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

body.tmt-aff .tmt-aff-h {
	margin: 0 auto 14px;
	max-width: 22ch;
	font-family: var(--tmt-serif, Georgia, serif);
	font-size: clamp(28px, 5vw, 44px);
	line-height: 1.12;
	color: var(--tmt-ink, #1e2a3a);
}

body.tmt-aff .tmt-aff-h span {
	color: var(--tmt-crimson, #ad1f31);
}

body.tmt-aff .tmt-aff-lede {
	margin: 0 auto 22px;
	max-width: 56ch;
	font-size: 16px;
	line-height: 1.6;
	color: var(--tmt-muted, #5b6575);
	text-align: center;
}

body.tmt-aff .tmt-aff-facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.tmt-aff .tmt-aff-facts li {
	margin: 0;
	padding: 16px 10px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.75);
	text-align: center;
}

body.tmt-aff .tmt-aff-facts strong {
	display: block;
	font-family: var(--tmt-serif, Georgia, serif);
	font-size: 26px;
	line-height: 1.1;
	color: var(--tmt-crimson, #ad1f31);
}

body.tmt-aff .tmt-aff-facts span {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: var(--tmt-muted, #5b6575);
}

body.tmt-aff .tmt-aff-steps {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 0 0 28px;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

body.tmt-aff .tmt-aff-steps li {
	margin: 0;
	padding: 20px;
	border-radius: 18px;
	background: var(--tmt-paper, #fff);
	box-shadow: 0 6px 20px rgba(30, 42, 58, 0.06);
}

body.tmt-aff .tmt-aff-steps b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--tmt-crimson, #ad1f31);
	color: #fff;
	font-family: var(--tmt-sans, Arial, sans-serif);
	font-size: 15px;
}

body.tmt-aff .tmt-aff-steps h3 {
	margin: 12px 0 6px;
	font-family: var(--tmt-sans, Arial, sans-serif);
	font-size: 16px;
	font-weight: 800;
	color: var(--tmt-ink, #1e2a3a);
}

body.tmt-aff .tmt-aff-steps p {
	margin: 0;
	font-size: 14px;
	line-height: 1.55;
	color: var(--tmt-muted, #5b6575);
}

/* ---------- form card (AffiliateWP markup inside) ---------- */

body.tmt-aff .tmt-aff-card {
	padding: clamp(20px, 4vw, 36px);
	border-radius: var(--tmt-radius, 24px);
	background: var(--tmt-paper, #fff);
	box-shadow: 0 14px 40px rgba(30, 42, 58, 0.1);
	scroll-margin-top: 90px;
}

body.tmt-aff .tmt-aff-card .affwp-form,
body.tmt-aff .tmt-aff-card fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

body.tmt-aff .tmt-aff-card legend {
	display: block;
	width: 100%;
	margin: 0 0 18px;
	padding: 0;
	background: none;
	font-family: var(--tmt-serif, Georgia, serif);
	font-size: 24px;
	font-weight: 800;
	color: var(--tmt-ink, #1e2a3a);
}

body.tmt-aff .tmt-aff-card p {
	margin: 0 0 16px;
}

body.tmt-aff .tmt-aff-card label {
	display: block;
	margin-bottom: 6px;
	font-family: var(--tmt-sans, Arial, sans-serif);
	font-size: 14px;
	font-weight: 600;
	color: var(--tmt-ink, #1e2a3a);
}

body.tmt-aff .tmt-aff-card .affwp-required,
body.tmt-aff .tmt-aff-card label span {
	font-weight: 500;
	color: var(--tmt-crimson, #ad1f31);
}

body.tmt-aff .tmt-aff-card input[type="text"],
body.tmt-aff .tmt-aff-card input[type="email"],
body.tmt-aff .tmt-aff-card input[type="password"],
body.tmt-aff .tmt-aff-card input[type="url"],
body.tmt-aff .tmt-aff-card textarea {
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border: 1px solid var(--tmt-line, #dbe6ee);
	border-radius: 14px;
	background: #f7fafc;
	font: 16px/1.4 var(--tmt-body, Arial, sans-serif); /* 16px: no iOS zoom on focus */
	color: var(--tmt-text, #232a35);
	box-sizing: border-box;
}

body.tmt-aff .tmt-aff-card textarea {
	min-height: 110px;
	resize: vertical;
}

body.tmt-aff .tmt-aff-card input:focus,
body.tmt-aff .tmt-aff-card textarea:focus {
	border-color: var(--tmt-gold, #f2b624);
	background: #fff;
	outline: 3px solid rgba(242, 182, 36, 0.35);
	outline-offset: 0;
}

body.tmt-aff .tmt-aff-card input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0 8px 0 0;
	vertical-align: -3px;
	accent-color: var(--tmt-crimson, #ad1f31);
}

body.tmt-aff .tmt-aff-card .affwp-user-remember label,
body.tmt-aff .tmt-aff-card label:has(input[type="checkbox"]) {
	display: inline-flex;
	align-items: center;
	font-weight: 500;
}

body.tmt-aff .tmt-aff-card input[type="submit"] {
	width: 100%;
	margin-top: 4px;
}

body.tmt-aff .tmt-aff-card .affwp-lost-password {
	margin: 14px 0 0;
	text-align: center;
	font-size: 14px;
}

body.tmt-aff .tmt-aff-card a,
body.tmt-aff .tmt-aff-switch a {
	color: var(--tmt-crimson, #ad1f31);
	font-family: var(--tmt-sans, Arial, sans-serif);
	font-style: normal;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

body.tmt-aff .tmt-aff-card .affwp-errors,
body.tmt-aff .tmt-aff-card .affwp-error,
body.tmt-aff .tmt-aff-card .affwp-notice {
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 12px;
	background: #fdecee;
	color: var(--tmt-crimson-deep, #6e0f1c);
	font-size: 14px;
}

body.tmt-aff .tmt-aff-switch {
	margin: 18px 0 0;
	text-align: center;
	font-size: 15px;
}

@media (max-width: 720px) {
	body.tmt-aff .tmt-aff-steps {
		grid-template-columns: 1fr;
	}

	body.tmt-aff .tmt-aff-facts {
		gap: 8px;
	}

	body.tmt-aff .tmt-aff-facts strong {
		font-size: 20px;
	}

	body.tmt-aff .tmt-aff-facts span {
		font-size: 12px;
	}
}
