/* Hot Mix Threads — storefront login gate */

:root {
	--hmt-blue: #0033a0;
	--hmt-blue-deep: #001a52;
	--hmt-yellow: #ffd200;
	--hmt-ink: #0b1220;
	--hmt-fog: rgba(255, 255, 255, 0.92);
	--hmt-muted: rgba(255, 255, 255, 0.72);
	--hmt-danger: #ff6b6b;
	--hmt-radius: 4px;
	--hmt-font-display: "Bebas Neue", "Arial Narrow", Impact, sans-serif;
	--hmt-font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html,
body {
	margin: 0;
	min-height: 100%;
}

body.hmt-login-body {
	font-family: var(--hmt-font-body);
	color: var(--hmt-fog);
	background: var(--hmt-blue-deep);
	overflow-x: hidden;
}

.hmt-login-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
}

.hmt-login-bg__asphalt {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 80% 60% at 20% 10%, rgba(0, 51, 160, 0.55), transparent 55%),
		radial-gradient(ellipse 70% 50% at 85% 90%, rgba(255, 210, 0, 0.12), transparent 50%),
		linear-gradient(160deg, #001028 0%, #0033a0 42%, #001a52 100%);
}

.hmt-login-bg__asphalt::after {
	content: "";
	position: absolute;
	inset: 0;
	opacity: 0.18;
	background-image:
		repeating-linear-gradient(
			90deg,
			transparent,
			transparent 2px,
			rgba(0, 0, 0, 0.35) 2px,
			rgba(0, 0, 0, 0.35) 3px
		),
		repeating-linear-gradient(
			0deg,
			transparent,
			transparent 3px,
			rgba(255, 255, 255, 0.03) 3px,
			rgba(255, 255, 255, 0.03) 4px
		);
}

.hmt-login-bg__glow {
	position: absolute;
	width: 55vmax;
	height: 55vmax;
	left: 50%;
	top: 35%;
	transform: translate(-50%, -50%);
	background: radial-gradient(circle, rgba(255, 210, 0, 0.16) 0%, transparent 65%);
	animation: hmt-pulse 6s ease-in-out infinite;
}

.hmt-login-bg__stripes {
	position: absolute;
	left: -10%;
	right: -10%;
	bottom: 12%;
	height: 10px;
	background: repeating-linear-gradient(
		90deg,
		var(--hmt-yellow) 0 28px,
		transparent 28px 52px
	);
	opacity: 0.85;
	transform: skewY(-2deg);
	filter: drop-shadow(0 0 12px rgba(255, 210, 0, 0.35));
}

@keyframes hmt-pulse {
	0%,
	100% {
		opacity: 0.75;
		transform: translate(-50%, -50%) scale(1);
	}
	50% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1.06);
	}
}

.hmt-login {
	position: relative;
	z-index: 1;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 1.25rem 3rem;
	gap: 1.75rem;
}

.hmt-login__brand {
	text-align: center;
	animation: hmt-rise 0.7s ease-out both;
}

.hmt-login__store-logo {
	display: block;
	max-width: min(280px, 72vw);
	height: auto;
	margin: 0 auto 1rem;
	filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
}

.hmt-login__wordmark {
	margin: 0 0 0.85rem;
	font-family: var(--hmt-font-display);
	font-size: clamp(2.6rem, 8vw, 4.2rem);
	letter-spacing: 0.06em;
	line-height: 0.95;
	color: #fff;
	text-transform: uppercase;
	text-shadow: 0 4px 28px rgba(0, 0, 0, 0.4);
}

.hmt-login__bpl-logo {
	display: block;
	max-width: 110px;
	height: auto;
	margin: 0 auto;
	opacity: 0.95;
}

.hmt-login__panel {
	width: min(420px, 100%);
	animation: hmt-rise 0.85s ease-out 0.12s both;
}

.hmt-login__title {
	margin: 0 0 0.4rem;
	font-family: var(--hmt-font-display);
	font-size: clamp(1.85rem, 5vw, 2.35rem);
	letter-spacing: 0.04em;
	font-weight: 400;
	line-height: 1.05;
	color: var(--hmt-yellow);
	text-transform: uppercase;
}

.hmt-login__lede {
	margin: 0 0 1.35rem;
	font-size: 1.05rem;
	line-height: 1.45;
	color: var(--hmt-muted);
}

.hmt-login__alert {
	margin: 0 0 1rem;
	padding: 0.75rem 0.9rem;
	border-left: 3px solid var(--hmt-danger);
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 0.95rem;
}

.hmt-login__form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.hmt-login__field label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.8);
}

.hmt-login__field input {
	width: 100%;
	padding: 0.85rem 0.95rem;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: var(--hmt-radius);
	background: rgba(0, 10, 30, 0.55);
	color: #fff;
	font: inherit;
	font-size: 1.05rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hmt-login__field input:focus {
	outline: none;
	border-color: var(--hmt-yellow);
	box-shadow: 0 0 0 3px rgba(255, 210, 0, 0.25);
	background: rgba(0, 16, 40, 0.75);
}

.hmt-login__submit {
	margin-top: 0.35rem;
	appearance: none;
	border: 0;
	border-radius: var(--hmt-radius);
	padding: 0.95rem 1.25rem;
	background: var(--hmt-yellow);
	color: var(--hmt-ink);
	font-family: var(--hmt-font-display);
	font-size: 1.45rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.hmt-login__submit:hover {
	filter: brightness(1.05);
	transform: translateY(-1px);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
}

.hmt-login__submit:active {
	transform: translateY(1px);
}

.hmt-login__submit:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.hmt-login__footer {
	animation: hmt-rise 1s ease-out 0.22s both;
	text-align: center;
	max-width: 28rem;
}

.hmt-login__footer p {
	margin: 0;
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.55);
}

@keyframes hmt-rise {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.hmt-login-bg__glow,
	.hmt-login__brand,
	.hmt-login__panel,
	.hmt-login__footer {
		animation: none !important;
	}

	.hmt-login__submit {
		transition: none;
	}
}
