:root {
	--maca-hold-bg: #1e1e2e;
	--maca-hold-text: #f5f5f5;
	--maca-hold-accent: #7c9cbf;
}

* {
	box-sizing: border-box;
}

body.maca-hold-template {
	margin: 0;
	min-height: 100vh;
	position: relative;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	background: radial-gradient(circle at top, color-mix(in srgb, var(--maca-hold-accent) 25%, var(--maca-hold-bg)), var(--maca-hold-bg));
	color: var(--maca-hold-text);
}

body.maca-hold-template.maca-hold-has-bg-image {
	background-color: var(--maca-hold-bg);
	background-image: var(--maca-hold-bg-image);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

.maca-hold-shell {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 2rem;
}

.maca-hold-shell-on-image {
	width: min(100%, 42rem);
	margin: 0 auto;
	text-align: center;
}

.maca-hold-shell-minimal {
	text-align: center;
	max-width: 40rem;
}

.maca-hold-card {
	width: min(100%, 36rem);
	padding: 2.5rem 2rem;
	border: 1px solid color-mix(in srgb, var(--maca-hold-text) 12%, transparent);
	border-radius: 1.25rem;
	background: color-mix(in srgb, var(--maca-hold-bg) 80%, black);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
	text-align: center;
}

.maca-hold-content--on-image {
	width: 100%;
	padding: 1rem;
	text-align: center;
}

body.maca-hold-contrast-light .maca-hold-content--on-image {
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}

body.maca-hold-contrast-dark .maca-hold-content--on-image {
	text-shadow: 0 2px 16px rgba(255, 255, 255, 0.45);
}

.maca-hold-logo {
	display: block;
	max-width: 10rem;
	max-height: 5rem;
	margin: 0 auto 1.5rem;
	object-fit: contain;
}

.maca-hold-badge {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.35rem 0.75rem;
	border-radius: 999px;
	background: color-mix(in srgb, var(--maca-hold-accent) 25%, transparent);
	color: var(--maca-hold-accent);
	font-size: 0.85rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

h1 {
	margin: 0 0 1rem;
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.2;
	color: var(--maca-hold-text);
}

.maca-hold-message {
	color: color-mix(in srgb, var(--maca-hold-text) 88%, transparent);
	font-size: 1.05rem;
	line-height: 1.7;
}

body.maca-hold-has-bg-image .maca-hold-message {
	color: var(--maca-hold-text);
}

.maca-hold-message p:first-child {
	margin-top: 0;
}

.maca-hold-message p:last-child {
	margin-bottom: 0;
}

.maca-hold-subtitle {
	margin: -0.35rem 0 1rem;
	font-size: 1.1rem;
	line-height: 1.5;
	color: color-mix(in srgb, var(--maca-hold-text) 82%, transparent);
}

body.maca-hold-has-bg-image .maca-hold-subtitle {
	color: var(--maca-hold-text);
}

.maca-hold-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	margin-top: 1.75rem;
}

.maca-hold-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.75rem;
	padding: 0.65rem 1.2rem;
	border: 1px solid color-mix(in srgb, var(--maca-hold-accent) 55%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--maca-hold-accent) 16%, transparent);
	color: var(--maca-hold-text);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.maca-hold-link:hover,
.maca-hold-link:focus-visible {
	background: color-mix(in srgb, var(--maca-hold-accent) 28%, transparent);
	border-color: var(--maca-hold-accent);
	color: var(--maca-hold-text);
	transform: translateY(-1px);
}

.maca-hold-footer {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid color-mix(in srgb, var(--maca-hold-text) 12%, transparent);
	color: color-mix(in srgb, var(--maca-hold-text) 72%, transparent);
	font-size: 0.9rem;
	line-height: 1.6;
}

body.maca-hold-has-bg-image .maca-hold-footer {
	border-top: 0;
	padding-top: 0;
	color: color-mix(in srgb, var(--maca-hold-text) 88%, transparent);
}

.maca-hold-footer p:first-child {
	margin-top: 0;
}

.maca-hold-footer p:last-child {
	margin-bottom: 0;
}

.maca-hold-footer a {
	color: var(--maca-hold-accent);
}

.maca-hold-login-link {
	position: fixed;
	top: 1rem;
	right: 1rem;
	z-index: 10;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 0.9rem;
	border: 1px solid color-mix(in srgb, var(--maca-hold-text) 18%, transparent);
	border-radius: 999px;
	background: color-mix(in srgb, var(--maca-hold-bg) 82%, black);
	color: var(--maca-hold-text);
	font-size: 0.9rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
	backdrop-filter: blur(8px);
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.maca-hold-login-link--icon-only {
	padding: 0.75rem;
	border-radius: 999px;
}

.maca-hold-login-link:hover,
.maca-hold-login-link:focus-visible {
	background: color-mix(in srgb, var(--maca-hold-accent) 24%, var(--maca-hold-bg));
	border-color: color-mix(in srgb, var(--maca-hold-accent) 55%, transparent);
	color: var(--maca-hold-text);
	transform: translateY(-1px);
}

.maca-hold-login-icon {
	display: block;
	flex: 0 0 auto;
}

.maca-hold-countdown {
	margin-top: 1.75rem;
	padding-top: 1.25rem;
	border-top: 1px solid color-mix(in srgb, var(--maca-hold-text) 12%, transparent);
}

body.maca-hold-has-bg-image .maca-hold-countdown {
	margin-top: 2rem;
	padding-top: 0;
	border-top: 0;
}

.maca-hold-countdown--on-image .maca-hold-countdown-label {
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	opacity: 0.92;
}

.maca-hold-countdown--on-image .maca-hold-countdown-value {
	display: block;
	margin-top: 0.5rem;
	font-size: clamp(2rem, 6vw, 3rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--maca-hold-text);
	letter-spacing: 0.02em;
}

.maca-hold-countdown-label {
	display: block;
	margin-bottom: 0.35rem;
	font-size: 0.9rem;
	opacity: 0.8;
}

.maca-hold-countdown-value {
	font-size: 1.25rem;
	color: var(--maca-hold-accent);
}
