/* Seller authentication pages: shadcn-inspired surfaces, restrained hierarchy. */
body.wm-marketplace-auth-body {
	margin: 0;
	color: #0f172a;
	background: #f8fafc;
	overflow-x: hidden;
}

.wm-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.wm-marketplace-auth-body .wm-marketplace-auth-canvas {
	display: flex;
	min-height: 100vh;
	min-height: 100svh;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 3vw, 40px);
}

.wm-marketplace-auth {
	--wm-auth-blue: #0355a7;
	--wm-auth-ink: #0f172a;
	--wm-auth-muted: #64748b;
	--wm-auth-border: #e2e8f0;
	--wm-auth-surface: #ffffff;
	--wm-auth-soft: #f8fafc;
	--wm-auth-orange: #f68c1e;
	width: 100%;
	min-width: 0;
	margin: 0 auto;
	color: var(--wm-auth-ink);
}

.wm-marketplace-vendor-gate {
	box-sizing: border-box;
	min-height: 100vh;
	padding: clamp(16px, 3vw, 40px);
	background: #f8fafc;
}

.wm-marketplace-auth-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	margin: 0 0 16px;
	color: var(--wm-auth-muted);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.wm-marketplace-auth-back span {
	font-size: 18px;
	line-height: 1;
}

.wm-marketplace-auth-back:hover {
	color: var(--wm-auth-blue);
}

.wm-marketplace-auth-back:focus-visible,
.wm-marketplace-auth-login a:focus-visible,
.wm-marketplace-auth-story a:focus-visible {
	outline: 2px solid var(--wm-auth-blue);
	outline-offset: 3px;
	border-radius: 4px;
}

.wm-marketplace-auth-layout {
	display: grid;
	grid-template-columns: minmax(0, .96fr) minmax(0, 1.04fr);
	min-width: 0;
	min-height: 680px;
	overflow: hidden;
	background: var(--wm-auth-surface);
	border: 1px solid var(--wm-auth-border);
	border-radius: 20px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.wm-marketplace-auth-form-panel {
	display: flex;
	width: 100%;
	min-width: 0;
	max-width: 620px;
	justify-self: center;
	flex-direction: column;
	justify-content: center;
	padding: clamp(32px, 5vw, 64px);
}

.wm-marketplace-auth-header {
	margin-bottom: 28px;
}

.wm-marketplace-auth-kicker {
	display: block;
	margin-bottom: 12px;
	color: var(--wm-auth-blue);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.4;
}

.wm-marketplace-auth-header h1 {
	max-width: 540px;
	overflow-wrap: anywhere;
	margin: 0;
	color: var(--wm-auth-ink);
	font-family: var(--theme-heading-font, Inter, sans-serif);
	font-size: 40px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1em;
}

.wm-marketplace-auth-header > p {
	max-width: 500px;
	margin: 16px 0 0;
	color: var(--wm-auth-muted);
	font-size: 15px;
	line-height: 1.55;
}

.wm-marketplace-auth .wm-marketplace-notice {
	margin: 0 0 20px;
	padding: 14px 16px;
	background: var(--wm-auth-soft);
	border: 1px solid var(--wm-auth-border);
	border-radius: 8px;
}

.wm-marketplace-auth .wm-marketplace-notice.is-error {
	color: #991b1b;
	background: #fef2f2;
	border-color: #fecaca;
}

.wm-marketplace-auth .wm-marketplace-notice.is-info {
	color: #1e3a8a;
	background: #eff6ff;
	border-color: #bfdbfe;
}

.wm-marketplace-auth .wm-marketplace-notice strong {
	display: block;
	font-size: 14px;
}

.wm-marketplace-auth .wm-marketplace-notice p,
.wm-marketplace-auth .wm-marketplace-notice ul {
	margin: 6px 0 0;
	font-size: 14px;
	line-height: 1.5;
}

.wm-marketplace-auth .wm-marketplace-auth-form {
	padding: 0;
	background: transparent;
	border: 0;
}

.wm-marketplace-auth .wm-marketplace-form-grid {
	gap: 14px;
}

.wm-marketplace-auth .wm-marketplace-field {
	gap: 7px;
	margin-bottom: 16px;
}

.wm-marketplace-auth .wm-marketplace-field > label {
	color: var(--wm-auth-ink);
	font-size: 14px;
	font-weight: 500;
}

.wm-marketplace-auth .wm-marketplace-field input:not([type="checkbox"]) {
	min-height: 48px;
	padding: 11px 13px;
	color: var(--wm-auth-ink);
	background: var(--wm-auth-surface);
	border: 1px solid var(--wm-auth-border);
	border-radius: 10px;
	box-shadow: none;
	font-size: 15px;
}

.wm-marketplace-auth .wm-marketplace-field input::placeholder {
	color: #94a3b8;
}

.wm-marketplace-auth .wm-marketplace-field input:focus {
	background: var(--wm-auth-surface);
	border-color: var(--wm-auth-blue);
	box-shadow: 0 0 0 3px rgba(3, 85, 167, .14);
	outline: none;
}

.wm-marketplace-password-control {
	position: relative;
}

.wm-marketplace-auth .wm-marketplace-password-control input {
	padding-right: 56px !important;
}

.wm-marketplace-password-toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	display: inline-grid !important;
	width: 34px !important;
	min-width: 34px !important;
	max-width: 34px !important;
	height: 34px !important;
	min-height: 34px !important;
	max-height: 34px !important;
	place-items: center;
	box-sizing: border-box !important;
	padding: 0 !important;
	color: var(--wm-auth-muted) !important;
	background: var(--wm-auth-soft) !important;
	border: 1px solid var(--wm-auth-border) !important;
	border-radius: 50% !important;
	transform: translateY(-50%);
	cursor: pointer;
}

.wm-marketplace-password-toggle svg {
	display: block !important;
	width: 20px !important;
	max-width: none !important;
	height: 20px !important;
	max-height: none !important;
	flex: 0 0 20px !important;
}

.wm-marketplace-password-toggle svg path,
.wm-marketplace-password-toggle svg circle,
.wm-marketplace-password-toggle svg line {
	stroke: currentColor;
}

.wm-marketplace-password-toggle .wm-icon-eye-off {
	display: none !important;
}

.wm-marketplace-password-toggle[aria-pressed="true"] .wm-icon-eye {
	display: none !important;
}

.wm-marketplace-password-toggle[aria-pressed="true"] .wm-icon-eye-off {
	display: block !important;
}

.wm-marketplace-password-toggle:hover {
	color: var(--wm-auth-blue) !important;
	background: #eff6ff;
	border-color: #bfdbfe;
}

.wm-marketplace-password-toggle:focus-visible {
	color: var(--wm-auth-blue) !important;
	outline: 2px solid var(--wm-auth-blue);
	outline-offset: 2px;
}

.wm-marketplace-auth .wm-marketplace-field small {
	color: var(--wm-auth-muted);
	font-size: 12px;
	line-height: 1.4;
}

.wm-marketplace-auth .wm-marketplace-check {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 4px 0 20px;
	color: var(--wm-auth-muted);
	font-size: 13px;
	line-height: 1.45;
}

.wm-marketplace-auth .wm-marketplace-check input {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
	margin: 0;
	accent-color: var(--wm-auth-blue);
}

.wm-marketplace-auth .wm-marketplace-check a,
.wm-marketplace-auth-login a {
	color: var(--wm-auth-blue);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.wm-marketplace-auth .wm-marketplace-auth-submit {
	display: inline-flex;
	width: 100%;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 0 18px;
	color: #fff;
	background: var(--wm-auth-blue);
	border: 1px solid var(--wm-auth-blue);
	border-radius: 8px;
	box-shadow: none;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	transition: background-color 160ms ease, border-color 160ms ease;
}

.wm-marketplace-auth .wm-marketplace-auth-submit:hover {
	color: #fff;
	background: #024785;
	border-color: #024785;
	filter: none;
}

.wm-marketplace-auth-login {
	margin: 18px 0 0;
	color: var(--wm-auth-muted);
	font-size: 14px;
	text-align: center;
}

.wm-marketplace-auth .wm-marketplace-account-note {
	margin-bottom: 16px;
	background: var(--wm-auth-soft);
	border-color: var(--wm-auth-border);
}

.wm-marketplace-auth-story {
	display: flex;
	min-width: 0;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(32px, 5vw, 64px);
	color: #fff;
	background: #0355a7;
	border-left: 1px solid rgba(255, 255, 255, .16);
	margin: 10px;
	border-radius: 15px;
}

.wm-marketplace-auth-story-top {
	max-width: 540px;
}

.wm-marketplace-auth-story-badge {
	display: inline-flex;
	min-height: 32px;
	align-items: center;
	padding: 0 12px;
	color: #fff;
	border: 1px solid rgba(255, 255, 255, .54);
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
}

.wm-marketplace-auth-story h2 {
	max-width: 520px;
	overflow-wrap: anywhere;
	margin: 44px 0 16px;
	color: #fff;
	font-family: var(--theme-heading-font, Inter, sans-serif);
	font-size: 40px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 1em;
}

.wm-marketplace-auth-story-top > p {
	max-width: 500px;
	margin: 0;
	color: rgba(255, 255, 255, .84);
	font-size: 15px;
	line-height: 1.55;
}

.wm-marketplace-auth-route {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 10px;
	margin: 48px 0 18px;
	padding: 0;
	list-style: none;
}

.wm-marketplace-auth-route li {
	margin: 0;
	padding: 14px;
	background: rgba(255, 255, 255, .08);
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 8px;
}

.wm-marketplace-auth-route li > span {
	display: block;
	margin-bottom: 12px;
	color: rgba(255, 255, 255, .72);
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 12px;
}

.wm-marketplace-auth-route strong {
	display: block;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
}

.wm-marketplace-auth-route small {
	display: block;
	margin-top: 5px;
	color: rgba(255, 255, 255, .72);
	font-size: 12px;
	line-height: 1.4;
}

.wm-marketplace-auth-story-note {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding-top: 18px;
	color: rgba(255, 255, 255, .78);
	border-top: 1px solid rgba(255, 255, 255, .2);
}

.wm-marketplace-auth-story-note > span {
	display: grid;
	width: 24px;
	height: 24px;
	flex: 0 0 auto;
	place-items: center;
	color: var(--wm-auth-blue);
	background: #fff;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 700;
}

.wm-marketplace-auth-story-note p {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
}

.wm-marketplace-auth-story-note strong {
	color: #fff;
	font-size: 13px;
}

@media (max-width: 980px) {
	.wm-marketplace-auth-layout {
		grid-template-columns: 1fr;
	}

	.wm-marketplace-auth-form-panel {
		max-width: none;
	}

	.wm-marketplace-auth-story {
		min-height: 420px;
		border-top: 1px solid rgba(255, 255, 255, .16);
		border-left: 0;
	}
}

@media (max-width: 600px) {
	.wm-marketplace-vendor-gate {
		padding: 12px;
	}

	.wm-marketplace-auth-body .wm-marketplace-auth-canvas {
		align-items: stretch;
		padding: 12px;
	}

	.wm-marketplace-auth-back {
		margin-bottom: 10px;
	}

	.wm-marketplace-auth-layout {
		min-height: 0;
		border-radius: 20px;
	}

	.wm-marketplace-auth-form-panel {
		padding: 32px 20px 36px;
	}

	.wm-marketplace-auth-header h1,
	.wm-marketplace-auth-story h2 {
		font-size: 32px;
	}

	.wm-marketplace-auth .wm-marketplace-form-grid {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.wm-marketplace-auth-story {
		min-height: 0;
		padding: 32px 20px;
	}

	.wm-marketplace-auth-story h2 {
		margin-top: 32px;
	}

	.wm-marketplace-auth-route {
		grid-template-columns: 1fr;
		gap: 8px;
		margin-top: 32px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wm-marketplace-auth-back,
	.wm-marketplace-password-toggle,
	.wm-marketplace-auth-submit {
		transition: none;
	}
}
