/*
 * Musicvertising Fulfillment customer authentication presentation.
 *
 * This standalone asset is scoped to logged out customer screens and consumes
 * the generated Musicvertising theme contract directly. WooCommerce markup,
 * controls, notices, and behavior remain unchanged.
 */

body.mvf-auth-page,
body.mvf-auth-page *,
body.mvf-auth-page *::before,
body.mvf-auth-page *::after {
	box-sizing: border-box;
}

body.mvf-auth-page {
	margin: 0;
	padding: 0;
	background: var(--mv-color-brand);
	color: var(--mv-color-heading);
	font-family: var(--mv-font-body);
	font-size: var(--mv-font-size-base);
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

body.mvf-auth-page .mvf-auth {
	position: relative;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--mv-space-6);
	min-height: 100vh;
	min-height: 100dvh;
	padding: clamp(var(--mv-space-8), 5vh, var(--mv-space-12)) var(--mv-space-5);
	background: var(--mv-color-brand);
}

body.mvf-auth-page .mvf-auth__brand {
	position: relative;
	z-index: 1;
	line-height: 1;
}

body.mvf-auth-page .mvf-auth__brand a {
	display: inline-block;
	text-decoration: none;
}

body.mvf-auth-page .mvf-auth__brand img {
	display: block;
	width: auto;
	max-width: 178px;
	height: auto;
}

body.mvf-auth-page .mvf-auth__brand img:not(.mvf-account-shell__logo) {
	filter: brightness(0) invert(1);
}

body.mvf-auth-page .mvf-auth__card {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 440px;
	padding: var(--mv-space-8);
	border: 1px solid var(--mv-color-border);
	border-radius: var(--mv-radius-xl);
	background: var(--mv-color-surface);
	box-shadow: var(--mv-shadow-lg);
}

body.mvf-auth-page .mvf-auth__card-head {
	margin: 0 0 var(--mv-space-6);
}

body.mvf-auth-page .mvf-auth__eyebrow {
	margin: 0 0 var(--mv-space-2);
	color: var(--mv-color-text-muted);
	font-family: var(--mv-font-heading);
	font-size: var(--mv-font-size-xs);
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
}

body.mvf-auth-page .mvf-auth__card-head h1 {
	margin: 0 0 var(--mv-space-2);
	color: var(--mv-color-heading);
	font-family: var(--mv-font-heading);
	font-size: var(--mv-font-size-2xl);
	font-weight: 600;
	line-height: 1.2;
}

body.mvf-auth-page .mvf-auth__subtitle {
	margin: 0;
	color: var(--mv-color-text-muted);
	font-size: var(--mv-font-size-sm);
	line-height: 1.55;
}

body.mvf-auth-page .mvf-auth__prospect {
	margin: var(--mv-space-6) 0 0;
	padding: var(--mv-space-5);
	border: 1px solid var(--mv-color-border);
	border-color: color-mix(in srgb, var(--mv-color-success) 35%, var(--mv-color-surface));
	border-radius: var(--mv-radius-lg);
	background: var(--mv-color-action-soft);
	text-align: center;
}

body.mvf-auth-page .mvf-auth__prospect-title {
	margin: 0 0 var(--mv-space-1);
	color: var(--mv-color-heading);
	font-family: var(--mv-font-heading);
	font-size: var(--mv-font-size-base);
	font-weight: 700;
	line-height: 1.35;
}

body.mvf-auth-page .mvf-auth__prospect-copy {
	margin: 0 0 var(--mv-space-4);
	color: var(--mv-color-text-muted);
	font-size: var(--mv-font-size-sm);
	line-height: 1.5;
}

body.mvf-auth-page .mvf-auth__quiz-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--mv-space-2);
	width: 100%;
	min-height: 44px;
	padding: var(--mv-space-3) var(--mv-space-4);
	border: 1px solid var(--mv-color-action);
	border-radius: var(--mv-radius-md);
	background: var(--mv-color-action);
	color: var(--mv-color-brand);
	font-family: var(--mv-font-heading);
	font-size: var(--mv-font-size-sm);
	font-weight: 700;
	line-height: 1.25;
	text-decoration: none;
	transition: background-color var(--mv-transition-fast) var(--mv-ease-out), border-color var(--mv-transition-fast) var(--mv-ease-out), color var(--mv-transition-fast) var(--mv-ease-out), transform var(--mv-transition-fast) var(--mv-ease-out);
}

body.mvf-auth-page .mvf-auth__quiz-link:hover {
	border-color: var(--mv-color-action-hover);
	background: var(--mv-color-action-hover);
	color: var(--mv-color-brand);
}

body.mvf-auth-page .mvf-auth__quiz-link:active {
	transform: translateY(1px);
}

body.mvf-auth-page .mvf-auth__back {
	margin: var(--mv-space-5) 0 0;
	text-align: center;
}

body.mvf-auth-page .mvf-auth__back a,
body.mvf-auth-page .mvf-auth .woocommerce-LostPassword a {
	display: inline-block;
	min-height: 44px;
	padding: var(--mv-space-3) var(--mv-space-1);
	border-bottom: 1px solid var(--mv-color-surface);
	color: var(--mv-color-text-muted);
	font-size: var(--mv-font-size-sm);
	line-height: 1.4;
	text-decoration: none;
	transition: color var(--mv-transition-fast) var(--mv-ease-out), border-color var(--mv-transition-fast) var(--mv-ease-out);
}

body.mvf-auth-page .mvf-auth__back a:hover,
body.mvf-auth-page .mvf-auth .woocommerce-LostPassword a:hover {
	border-bottom-color: var(--mv-color-border);
	color: var(--mv-color-heading);
}

body.mvf-auth-page .mvf-auth__aside,
body.mvf-auth-page .mvf-auth__legal {
	position: relative;
	z-index: 1;
	color: var(--mv-color-action-soft);
	font-size: var(--mv-font-size-xs);
	line-height: 1.5;
	text-align: center;
}

body.mvf-auth-page .mvf-auth__aside {
	margin: 0;
}

body.mvf-auth-page .mvf-auth__aside a {
	border-bottom: 1px solid var(--mv-color-border);
	color: var(--mv-color-surface);
	font-weight: 500;
	text-decoration: none;
	transition: color var(--mv-transition-fast) var(--mv-ease-out), border-color var(--mv-transition-fast) var(--mv-ease-out);
}

body.mvf-auth-page .mvf-auth__aside a:hover {
	border-bottom-color: currentColor;
	color: var(--mv-color-action-soft);
}

body.mvf-auth-page .mvf-auth__legal {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--mv-space-2) var(--mv-space-4);
	margin: calc(var(--mv-space-3) * -1) 0 0;
}

body.mvf-auth-page .mvf-auth__legal a {
	color: var(--mv-color-action-soft);
	text-decoration: none;
	transition: color var(--mv-transition-fast) var(--mv-ease-out);
}

body.mvf-auth-page .mvf-auth__legal a:hover {
	color: var(--mv-color-surface);
}

body.mvf-auth-page .mvf-auth :where(a, button, input, summary):focus-visible {
	outline: 3px solid var(--mv-color-focus);
	outline-offset: 2px;
}

body.mvf-auth-page .mvf-auth__legal a:focus-visible,
body.mvf-auth-page .mvf-auth__aside a:focus-visible {
	outline-color: var(--mv-color-surface);
}

body.mvf-auth-page .mvf-auth .woocommerce {
	margin: 0;
	padding: 0;
	font-family: var(--mv-font-body);
}

body.mvf-auth-page .mvf-auth .woocommerce > h2,
body.mvf-auth-page .mvf-auth .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	margin: -1px;
	padding: 0;
	border: 0;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}

body.mvf-auth-page .mvf-auth .woocommerce-notices-wrapper {
	margin: 0 0 var(--mv-space-5);
}

body.mvf-auth-page .mvf-auth .woocommerce-notices-wrapper:empty,
body.mvf-auth-page .mvf-auth .clear {
	display: none;
}

body.mvf-auth-page .mvf-auth #customer_login {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--mv-space-6);
	width: auto;
	margin: 0;
}

body.mvf-auth-page .mvf-auth #customer_login > * {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

body.mvf-auth-page .mvf-auth form {
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: initial;
	background: none;
	box-shadow: none;
}

body.mvf-auth-page .mvf-auth .form-row {
	display: block;
	float: none;
	width: 100%;
	margin: 0 0 var(--mv-space-4);
	padding: 0;
}

body.mvf-auth-page .mvf-auth :where(.form-row-first, .form-row-last, .woocommerce-form-row--first, .woocommerce-form-row--last) {
	float: none;
	width: 100%;
}

body.mvf-auth-page .mvf-auth label {
	display: block;
	margin: 0 0 var(--mv-space-2);
	color: var(--mv-color-text);
	font-family: var(--mv-font-heading);
	font-size: var(--mv-font-size-xs);
	font-weight: 600;
	line-height: 1.4;
}

body.mvf-auth-page .mvf-auth label .required {
	color: var(--mv-color-text-muted);
	font-weight: 500;
	text-decoration: none;
}

body.mvf-auth-page .mvf-auth :where(input[type="text"], input[type="email"], input[type="password"]) {
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: var(--mv-space-3);
	border: 1px solid var(--mv-color-border);
	border-radius: var(--mv-radius-md);
	background: var(--mv-color-surface);
	box-shadow: var(--mv-shadow-sm);
	color: var(--mv-color-heading);
	font-family: var(--mv-font-body);
	font-size: var(--mv-font-size-base);
	line-height: 1.4;
	transition: border-color var(--mv-transition-fast) var(--mv-ease-out), outline-color var(--mv-transition-fast) var(--mv-ease-out);
}

body.mvf-auth-page .mvf-auth :where(input[type="text"], input[type="email"], input[type="password"]):focus {
	border-color: var(--mv-color-focus);
	outline: 3px solid var(--mv-color-focus);
	outline-offset: 1px;
}

body.mvf-auth-page .mvf-auth .password-input {
	position: relative;
	display: block;
	width: 100%;
}

body.mvf-auth-page .mvf-auth .password-input :where(input[type="password"], input[type="text"]) {
	padding-right: var(--mv-space-12);
}

body.mvf-auth-page .mvf-auth button.show-password-input {
	position: absolute;
	top: 50%;
	right: var(--mv-space-1);
	display: inline-grid;
	place-items: center;
	width: 44px;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: var(--mv-radius-md);
	background: var(--mv-color-surface);
	box-shadow: none;
	color: var(--mv-color-text-muted);
	font-size: 0;
	line-height: 1;
	text-decoration: none;
	transform: translateY(-50%);
	transition: background-color var(--mv-transition-fast) var(--mv-ease-out), color var(--mv-transition-fast) var(--mv-ease-out);
}

body.mvf-auth-page .mvf-auth button.show-password-input::before {
	display: block;
	width: 18px;
	height: 12px;
	border: 2px solid currentColor;
	border-radius: var(--mv-radius-full);
	content: "";
}

body.mvf-auth-page .mvf-auth button.show-password-input::after {
	position: absolute;
	width: 4px;
	height: 4px;
	border-radius: var(--mv-radius-full);
	background: currentColor;
	content: "";
}

body.mvf-auth-page .mvf-auth button.show-password-input:hover,
body.mvf-auth-page .mvf-auth button.show-password-input:focus {
	border: 0;
	background: var(--mv-color-canvas);
	box-shadow: none;
	color: var(--mv-color-heading);
}

body.mvf-auth-page .mvf-auth .woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: var(--mv-space-2);
	margin: 0;
	color: var(--mv-color-text-muted);
	font-family: var(--mv-font-body);
	font-size: var(--mv-font-size-sm);
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}

body.mvf-auth-page .mvf-auth .woocommerce-form-login__rememberme input {
	width: 18px;
	min-width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--mv-color-action);
	cursor: pointer;
}

body.mvf-auth-page .mvf-auth .form-row:has(> .woocommerce-form-login__rememberme) {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--mv-space-5);
	margin-bottom: 0;
}

body.mvf-auth-page .mvf-auth .form-row > .woocommerce-form-login__rememberme,
body.mvf-auth-page .mvf-auth .form-row > button.woocommerce-form-login__submit {
	flex: 1 0 100%;
}

body.mvf-auth-page .mvf-auth :where(button.button, button[type="submit"], .woocommerce-Button, .woocommerce-button),
body.mvf-auth-page .mvf-auth a.button.wc-forward {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: var(--mv-space-3) var(--mv-space-5);
	border: 0;
	border-radius: var(--mv-radius-md);
	background: var(--mv-color-brand);
	box-shadow: none;
	color: var(--mv-color-surface);
	font-family: var(--mv-font-heading);
	font-size: var(--mv-font-size-base);
	font-weight: 600;
	line-height: 1;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	cursor: pointer;
	transition: background-color var(--mv-transition-fast) var(--mv-ease-out), transform var(--mv-transition-fast) var(--mv-ease-out);
}

body.mvf-auth-page .mvf-auth :where(button.button, button[type="submit"], .woocommerce-Button, .woocommerce-button):hover,
body.mvf-auth-page .mvf-auth a.button.wc-forward:hover {
	background: var(--mv-color-heading);
	color: var(--mv-color-surface);
}

body.mvf-auth-page .mvf-auth :where(button.button, button[type="submit"], .woocommerce-Button, .woocommerce-button):active {
	transform: translateY(1px);
}

body.mvf-auth-page .mvf-auth a.button.wc-forward {
	margin-top: var(--mv-space-2);
}

body.mvf-auth-page .mvf-auth .woocommerce p.woocommerce-LostPassword {
	margin: var(--mv-space-2) 0 0;
	text-align: center;
}

body.mvf-auth-page .mvf-auth form.lost_reset_password > p:not([class]) {
	display: none;
}

body.mvf-auth-page .mvf-auth .woocommerce p {
	margin: 0 0 var(--mv-space-5);
	color: var(--mv-color-text-muted);
	font-size: var(--mv-font-size-sm);
	line-height: 1.55;
}

body.mvf-auth-page .mvf-auth .woocommerce p.form-row {
	margin: 0 0 var(--mv-space-4);
}

body.mvf-auth-page .mvf-auth .woocommerce-password-hint {
	display: block;
	margin-top: var(--mv-space-2);
	color: var(--mv-color-text-muted);
	font-size: var(--mv-font-size-xs);
	line-height: 1.5;
}

body.mvf-auth-page .mvf-auth .woocommerce-password-strength {
	margin-top: var(--mv-space-2);
	padding: var(--mv-space-2) var(--mv-space-3);
	border-radius: var(--mv-radius-md);
	font-family: var(--mv-font-heading);
	font-size: var(--mv-font-size-xs);
	font-weight: 600;
	text-align: left;
}

body.mvf-auth-page .mvf-auth .woocommerce-password-strength.short,
body.mvf-auth-page .mvf-auth .woocommerce-password-strength.bad {
	background: var(--mv-color-surface);
	background: color-mix(in srgb, var(--mv-color-danger) 10%, var(--mv-color-surface));
	color: var(--mv-color-heading);
}

body.mvf-auth-page .mvf-auth .woocommerce-password-strength.good {
	background: var(--mv-color-surface);
	background: color-mix(in srgb, var(--mv-color-warning) 12%, var(--mv-color-surface));
	color: var(--mv-color-heading);
}

body.mvf-auth-page .mvf-auth .woocommerce-password-strength.strong {
	background: var(--mv-color-surface);
	background: color-mix(in srgb, var(--mv-color-success) 12%, var(--mv-color-surface));
	color: var(--mv-color-heading);
}

body.mvf-auth-page .mvf-auth :where(.woocommerce-error, .woocommerce-info, .woocommerce-message) {
	display: block;
	margin: 0 0 var(--mv-space-5);
	padding: var(--mv-space-3) var(--mv-space-4);
	border: 1px solid;
	border-left-width: 4px;
	border-radius: var(--mv-radius-md);
	background-image: none;
	list-style: none;
	font-size: var(--mv-font-size-sm);
	line-height: 1.5;
}

body.mvf-auth-page .mvf-auth :where(.woocommerce-error, .woocommerce-info, .woocommerce-message)::before {
	display: none;
}

body.mvf-auth-page .mvf-auth :where(.woocommerce-error, .woocommerce-info, .woocommerce-message) li {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.mvf-auth-page .mvf-auth :where(.woocommerce-error, .woocommerce-info, .woocommerce-message) p {
	margin: 0;
	color: inherit;
	font-size: inherit;
}

body.mvf-auth-page .mvf-auth .woocommerce-error {
	border-color: var(--mv-color-border);
	border-color: color-mix(in srgb, var(--mv-color-danger) 35%, var(--mv-color-surface));
	border-left-color: var(--mv-color-danger);
	background-color: var(--mv-color-surface);
	background-color: color-mix(in srgb, var(--mv-color-danger) 10%, var(--mv-color-surface));
	color: var(--mv-color-heading);
}

body.mvf-auth-page .mvf-auth .woocommerce-info {
	border-color: var(--mv-color-border);
	border-color: color-mix(in srgb, var(--mv-color-information) 35%, var(--mv-color-surface));
	border-left-color: var(--mv-color-information);
	background-color: var(--mv-color-surface);
	background-color: color-mix(in srgb, var(--mv-color-information) 10%, var(--mv-color-surface));
	color: var(--mv-color-heading);
}

body.mvf-auth-page .mvf-auth .woocommerce-message {
	border-color: var(--mv-color-border);
	border-color: color-mix(in srgb, var(--mv-color-success) 35%, var(--mv-color-surface));
	border-left-color: var(--mv-color-success);
	background-color: var(--mv-color-surface);
	background-color: color-mix(in srgb, var(--mv-color-success) 10%, var(--mv-color-surface));
	color: var(--mv-color-heading);
}

body.mvf-auth-page .mvf-auth :where(.woocommerce-error, .woocommerce-info, .woocommerce-message) a {
	color: inherit;
	font-weight: 500;
	text-decoration: underline;
}

@media (max-width: 600px) {
	body.mvf-auth-page .mvf-auth {
		gap: var(--mv-space-5);
		justify-content: flex-start;
		padding: var(--mv-space-8) var(--mv-space-4) var(--mv-space-12);
	}

	body.mvf-auth-page .mvf-auth__brand img {
		max-width: 150px;
	}

	body.mvf-auth-page .mvf-auth__card {
		max-width: none;
		padding: var(--mv-space-6) var(--mv-space-5);
		border-radius: var(--mv-radius-lg);
	}

	body.mvf-auth-page .mvf-auth__legal {
		margin-top: calc(var(--mv-space-2) * -1);
	}
}

@media (prefers-reduced-motion: reduce) {
	body.mvf-auth-page .mvf-auth *,
	body.mvf-auth-page .mvf-auth *::before,
	body.mvf-auth-page .mvf-auth *::after {
		transition: none !important;
		animation: none !important;
	}
}
