/**
 * Demo auth pages — split layout, DM Sans, A2Z accent (matches theme blocks).
 * Loaded only for A2Z Login / Register page templates.
 */

:root {
	--a2z-auth-accent: #2563eb;
	--a2z-auth-accent-deep: #1d4ed8;
	--a2z-auth-surface: #f8fafc;
	--a2z-auth-ink: #0f172a;
	--a2z-auth-muted: #64748b;
	--a2z-auth-white: #ffffff;
	--a2z-auth-radius: 0.65rem;
	--a2z-auth-radius-lg: 0.85rem;
	--a2z-auth-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

body.a2z-auth-demo {
	font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Blocksy / common theme wrappers — allow true full-bleed shell */
body.a2z-auth-demo .site,
body.a2z-auth-demo .site-content,
body.a2z-auth-demo .ct-container,
body.a2z-auth-demo .ct-container-fluid {
	max-width: 100% !important;
}

body.a2z-auth-demo .site-content,
body.a2z-auth-demo .content-area {
	padding-left: 0 !important;
	padding-right: 0 !important;
}

/* Break out of theme content width — edge-to-edge shell */
body.a2z-auth-demo #primary,
body.a2z-auth-demo #main,
body.a2z-auth-demo .site-main,
body.a2z-auth-demo .site-content,
body.a2z-auth-demo .content-area,
body.a2z-auth-demo article.type-page,
body.a2z-auth-demo .entry-content {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
}

body.a2z-auth-demo .entry-header {
	display: none;
}

body.a2z-auth-demo .a2z-auth-shell {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: min(100dvh, 100vh);
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	box-sizing: border-box;
}

body.a2z-auth-demo .a2z-auth-shell *,
body.a2z-auth-demo .a2z-auth-shell *::before,
body.a2z-auth-demo .a2z-auth-shell *::after {
	box-sizing: border-box;
}

/* ---------- Left panel ---------- */
body.a2z-auth-demo .a2z-auth-aside {
	position: relative;
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
	background:
		radial-gradient(120% 80% at 10% 0%, rgba(255, 255, 255, 0.12), transparent 55%),
		linear-gradient(160deg, var(--a2z-auth-accent-deep) 0%, var(--a2z-auth-accent) 48%, #1e40af 100%);
	color: var(--a2z-auth-white);
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(1.5rem, 3vw, 2.25rem);
}

body.a2z-auth-demo .a2z-auth-brand {
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	opacity: 0.95;
}

body.a2z-auth-demo .a2z-auth-aside__title {
	margin: 0;
	font-size: clamp(1.65rem, 3.2vw, 2.35rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: var(--a2z-auth-white) !important;
}

body.a2z-auth-demo .a2z-auth-aside__meta-link {
	margin: 0.85rem 0 0;
	font-size: clamp(0.9rem, 1.5vw, 1rem);
	line-height: 1.55;
	color: rgba(255, 255, 255, 0.9);
	max-width: 26rem;
}

body.a2z-auth-demo .a2z-auth-aside__meta-link a {
	color: #ffffff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}

body.a2z-auth-demo .a2z-auth-aside__meta-link a:hover,
body.a2z-auth-demo .a2z-auth-aside__meta-link a:focus-visible {
	color: #ffffff;
	text-decoration-thickness: 2px;
}

body.a2z-auth-demo .a2z-auth-aside__lead {
	margin: 0;
	font-size: clamp(0.95rem, 1.6vw, 1.05rem);
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.82);
	max-width: 26rem;
}

body.a2z-auth-demo .a2z-auth-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 1.1rem;
	max-width: 28rem;
}

body.a2z-auth-demo .a2z-auth-feature {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.85rem 1rem;
	align-items: start;
}

body.a2z-auth-demo .a2z-auth-feature__icon {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: var(--a2z-auth-radius);
	background: rgba(255, 255, 255, 0.12);
	border: 1px solid rgba(255, 255, 255, 0.18);
	display: grid;
	place-items: center;
	font-size: 1rem;
	line-height: 1;
}

body.a2z-auth-demo .a2z-auth-feature__title {
	margin: 0 0 0.2rem;
	font-size: 0.92rem;
	font-weight: 700;
}

body.a2z-auth-demo .a2z-auth-feature__text {
	margin: 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: rgba(255, 255, 255, 0.75);
}

/* ---------- Right panel / form ---------- */
body.a2z-auth-demo .a2z-auth-main {
	background: var(--a2z-auth-white);
	padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem);
	display: flex;
	align-items: center;
	justify-content: center;
}

body.a2z-auth-demo .a2z-auth-card {
	width: 100%;
	max-width: 26rem;
}

body.a2z-auth-demo .a2z-auth-card__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.55rem, 2.8vw, 1.95rem);
	font-weight: 800;
	letter-spacing: -0.03em;
	color: var(--a2z-auth-ink);
}

body.a2z-auth-demo .a2z-auth-card__sub {
	margin: 0 0 2rem;
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--a2z-auth-muted);
}

body.a2z-auth-demo .a2z-auth-card__sub a {
	color: var(--a2z-auth-accent);
	font-weight: 600;
	text-decoration: none;
}

body.a2z-auth-demo .a2z-auth-card__sub a:hover {
	text-decoration: underline;
}

body.a2z-auth-demo .a2z-auth-field {
	margin-bottom: 1.15rem;
}

body.a2z-auth-demo .a2z-auth-label {
	display: block;
	margin-bottom: 0.45rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--a2z-auth-muted);
}

body.a2z-auth-demo .a2z-auth-input {
	width: 100%;
	padding: 0.85rem 1rem;
	font: inherit;
	font-size: 0.95rem;
	color: var(--a2z-auth-ink);
	border: 1px solid #e2e8f0;
	border-radius: var(--a2z-auth-radius-lg);
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.a2z-auth-demo .a2z-auth-input:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--a2z-auth-accent) 45%, #e2e8f0);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--a2z-auth-accent) 22%, transparent);
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
	body.a2z-auth-demo .a2z-auth-input:focus {
		border-color: #93c5fd;
		box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
	}
}

body.a2z-auth-demo .a2z-auth-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 0.25rem 0 1.35rem;
	font-size: 0.875rem;
}

body.a2z-auth-demo .a2z-auth-check {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	cursor: pointer;
	color: var(--a2z-auth-muted);
	font-weight: 500;
}

body.a2z-auth-demo .a2z-auth-check input {
	width: 1rem;
	height: 1rem;
	accent-color: var(--a2z-auth-accent);
}

body.a2z-auth-demo .a2z-auth-link {
	color: var(--a2z-auth-accent);
	font-weight: 600;
	text-decoration: none;
}

body.a2z-auth-demo .a2z-auth-link:hover {
	text-decoration: underline;
}

body.a2z-auth-demo .a2z-auth-submit {
	width: 100%;
	margin-top: 0.25rem;
	padding: 0.85rem 1.75rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	font-family: inherit;
	color: #fff;
	background: var(--a2z-auth-accent);
	border: none;
	border-radius: 999px;
	cursor: default;
	box-shadow: 0 12px 28px color-mix(in srgb, var(--a2z-auth-accent) 42%, transparent);
	transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, color 0.18s ease;
}

body.a2z-auth-demo .a2z-auth-submit:hover,
body.a2z-auth-demo .a2z-auth-submit:active {
	color: #fff;
}

body.a2z-auth-demo .a2z-auth-submit:focus-visible {
	outline: 2px solid var(--a2z-auth-accent);
	outline-offset: 3px;
	color: #fff;
}

@supports not (color: color-mix(in srgb, white 50%, black)) {
	body.a2z-auth-demo .a2z-auth-submit {
		box-shadow: 0 12px 28px rgba(37, 99, 235, 0.35);
	}
}

body.a2z-auth-demo .a2z-auth-foot {
	margin-top: 2rem;
	font-size: 0.78rem;
	line-height: 1.55;
	color: var(--a2z-auth-muted);
	text-align: center;
}

body.a2z-auth-demo .a2z-auth-foot a {
	color: var(--a2z-auth-muted);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

body.a2z-auth-demo .a2z-auth-notice {
	margin-top: -1rem;
	margin-bottom: 0;
	padding: 1rem;
	border-radius: var(--a2z-auth-radius-lg);
	background: var(--a2z-auth-surface);
	border: 1px solid #e2e8f0;
	font-size: 0.9rem;
	line-height: 1.55;
	color: var(--a2z-auth-ink);
}

@media (max-width: 900px) {
	body.a2z-auth-demo .a2z-auth-shell {
		grid-template-columns: 1fr;
		min-height: auto;
	}

	body.a2z-auth-demo .a2z-auth-aside {
		padding-bottom: clamp(2rem, 6vw, 3rem);
	}

	body.a2z-auth-demo .a2z-auth-main {
		padding-top: clamp(1.75rem, 5vw, 2.5rem);
		padding-bottom: clamp(2.5rem, 8vw, 4rem);
	}
}
