/**
 * Locked page styles.
 *
 * Every visual choice reads from a custom property set inline by the template,
 * which is what lets the admin live preview repaint by rewriting variables
 * rather than re-rendering the document.
 */

:root {
	--openmm-bg: #0f172a;
	--openmm-text: #f8fafc;
	--openmm-accent: #38bdf8;
	--openmm-blur: 0px;
	--openmm-overlay: 0.4;
	--openmm-align: center;
	--openmm-text-align: center;
	--openmm-radius: 16px;
	--openmm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans,
		Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

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

html,
body {
	margin: 0;
	padding: 0;
}

.openmm-body {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--openmm-bg);
	color: var(--openmm-text);
	font-family: var(--openmm-font);
	font-size: 16px;
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
}

/* Background image sits behind everything, blurred if asked. */
.openmm-bg {
	position: fixed;
	inset: calc(var(--openmm-blur) * -2);
	background-size: cover;
	background-position: center;
	filter: blur(var(--openmm-blur));
	z-index: 0;
}

.openmm-bg-overlay {
	position: fixed;
	inset: 0;
	background: var(--openmm-bg);
	opacity: var(--openmm-overlay);
	z-index: 1;
}

.openmm-shell {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 720px;
	padding: 48px 24px;
}

.openmm-card {
	display: flex;
	flex-direction: column;
	align-items: var(--openmm-align);
	text-align: var(--openmm-text-align);
	gap: 24px;
}

.openmm-logo {
	max-width: 220px;
	height: auto;
}

.openmm-headline {
	margin: 0;
	font-size: clamp(2rem, 6vw, 3.25rem);
	line-height: 1.15;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.openmm-body-text {
	margin: 0;
	font-size: 1.125rem;
	opacity: 0.9;
	max-width: 60ch;
}

.openmm-body-text p {
	margin: 0 0 1em;
}

.openmm-body-text p:last-child {
	margin-bottom: 0;
}

.openmm-body-text a,
.openmm-footer a,
.openmm-login-link a {
	color: var(--openmm-accent);
}

/* Countdown */

.openmm-countdown {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	justify-content: var(--openmm-align);
}

.openmm-countdown-unit {
	min-width: 84px;
	padding: 14px 10px;
	border-radius: var(--openmm-radius);
	background: color-mix(in srgb, var(--openmm-text) 8%, transparent);
	border: 1px solid color-mix(in srgb, var(--openmm-text) 14%, transparent);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
}

.openmm-countdown-unit span {
	font-size: 1.75rem;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	line-height: 1;
}

.openmm-countdown-unit small {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.7;
}

/* Subscribe */

.openmm-subscribe {
	width: 100%;
	max-width: 480px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-items: stretch;
	text-align: var(--openmm-text-align);
}

.openmm-subscribe-label {
	font-weight: 600;
}

.openmm-subscribe-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.openmm-input {
	flex: 1 1 200px;
	min-width: 0;
	padding: 12px 14px;
	font: inherit;
	color: var(--openmm-text);
	background: color-mix(in srgb, var(--openmm-text) 8%, transparent);
	border: 1px solid color-mix(in srgb, var(--openmm-text) 24%, transparent);
	border-radius: 10px;
}

.openmm-input::placeholder {
	color: color-mix(in srgb, var(--openmm-text) 55%, transparent);
}

.openmm-button {
	padding: 12px 20px;
	font: inherit;
	font-weight: 600;
	color: #0b1120;
	background: var(--openmm-accent);
	border: 0;
	border-radius: 10px;
	cursor: pointer;
}

.openmm-button:hover {
	filter: brightness(1.08);
}

.openmm-subscribe-feedback {
	margin: 0;
	min-height: 1.5em;
	font-size: 0.9375rem;
}

.openmm-subscribe-feedback[data-state="error"] {
	color: #fca5a5;
}

/* The honeypot must be unreachable for people but present for bots, so it is
   moved off-screen rather than hidden with display:none. */
.openmm-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Social */

.openmm-social {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	justify-content: var(--openmm-align);
}

.openmm-social a {
	color: var(--openmm-text);
	opacity: 0.8;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
}

.openmm-social a:hover {
	opacity: 1;
}

.openmm-footer,
.openmm-login-link {
	font-size: 0.9375rem;
	opacity: 0.75;
	margin: 0;
}

.openmm-login-form {
	width: 100%;
	max-width: 340px;
	text-align: left;
}

.openmm-login-form input[type="text"],
.openmm-login-form input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	margin-bottom: 10px;
	font: inherit;
	color: var(--openmm-text);
	background: color-mix(in srgb, var(--openmm-text) 8%, transparent);
	border: 1px solid color-mix(in srgb, var(--openmm-text) 24%, transparent);
	border-radius: 8px;
}

.openmm-login-form .button,
.openmm-login-form input[type="submit"] {
	padding: 10px 18px;
	font: inherit;
	font-weight: 600;
	color: #0b1120;
	background: var(--openmm-accent);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

/* Focus must stay obvious: this page is sometimes the only way into a site. */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid var(--openmm-accent);
	outline-offset: 2px;
}

@media (max-width: 600px) {
	.openmm-shell {
		padding: 32px 20px;
	}

	.openmm-countdown-unit {
		min-width: 70px;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
