/* web.petiht.com auth pages (classic theme): form + Amah AI S.R.L. motion stage.
   Haiti palette only: blue #00209F, red #D21034, gold #F5C518. No purple. */

.amah-auth {
	--amah-blue: #00209f;
	--amah-red: #d21034;
	--amah-gold: #f5c518;
	--amah-ink: #0b1430;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	overflow-x: clip;
}

/* ---------- form column ---------- */

.amah-auth__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 28px clamp(16px, 4vw, 56px);
}

.amah-auth__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.amah-auth__brand img {
	max-height: 36px;
	width: auto;
}

.amah-auth__back {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 8px 14px;
	border: 1px solid rgba(0, 32, 159, 0.14);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	color: var(--amah-blue);
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.2s, border-color 0.2s;
}

.amah-auth__back:hover {
	background: rgba(0, 32, 159, 0.06);
	border-color: rgba(0, 32, 159, 0.3);
}

.amah-auth__form-wrap {
	display: flex;
	flex: 1;
	align-items: center;
	justify-content: center;
	padding: 48px 0;
}

.amah-auth__form {
	width: 100%;
	max-width: 440px;
	text-align: start;
}

.amah-auth__form h1 {
	font-size: clamp(28px, 3vw, 36px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--amah-ink);
}

/* Haiti flag accent under the page title */
.amah-auth__form h1::after {
	content: '';
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 16px;
	border-radius: 4px;
	background: linear-gradient(90deg, var(--amah-blue) 0 50%, var(--amah-red) 50% 100%);
}

.amah-auth__form .text-indigo-600 {
	color: var(--amah-blue);
	font-weight: 500;
}

.amah-auth__form .lqd-btn-primary {
	background: var(--amah-red);
	color: #fff;
	border-radius: 14px;
	box-shadow: 0 10px 24px -12px rgba(210, 16, 52, 0.65);
}

.amah-auth__form .lqd-btn-primary:hover,
.amah-auth__form .lqd-btn-primary:focus-visible {
	background: #b80d2c;
}

.amah-auth__form .lqd-btn-primary:disabled {
	background: rgba(11, 20, 48, 0.12);
	color: rgba(11, 20, 48, 0.45);
	box-shadow: none;
}

.amah-auth__form input[type='email']:focus,
.amah-auth__form input[type='password']:focus,
.amah-auth__form input[type='text']:focus,
.amah-auth__form input[type='tel']:focus {
	border-color: var(--amah-blue);
	box-shadow: 0 0 0 3px rgba(0, 32, 159, 0.14);
	outline: none;
}

.amah-auth__form input[type='checkbox']:checked {
	background-color: var(--amah-blue);
	border-color: var(--amah-blue);
}

.amah-auth__form .lqd-auth-form-foot-text {
	margin-top: 40px;
	text-align: center;
}

.amah-auth__legal {
	margin: 0;
	font-size: 12px;
	text-align: center;
	opacity: 0.55;
}

/* dark mode: yellow accents, white text, red CTA stays */
.theme-dark .amah-auth__form h1 {
	color: #fff;
}

.theme-dark .amah-auth__form .text-indigo-600,
.theme-dark .amah-auth__back {
	color: var(--amah-gold);
}

.theme-dark .amah-auth__back {
	border-color: rgba(245, 197, 24, 0.3);
}

.theme-dark .amah-auth__back:hover {
	background: rgba(245, 197, 24, 0.08);
}

.theme-dark .amah-auth__form h1::after {
	background: linear-gradient(90deg, var(--amah-gold) 0 50%, var(--amah-red) 50% 100%);
}

.theme-dark .amah-auth__form input:focus {
	border-color: var(--amah-gold);
	box-shadow: 0 0 0 3px rgba(245, 197, 24, 0.16);
}

.theme-dark .amah-auth__form input[type='checkbox']:checked {
	background-color: var(--amah-gold);
	border-color: var(--amah-gold);
}

/* ---------- motion stage ---------- */

.amah-stage {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	min-width: 0;
	color: #fff;
	background:
		radial-gradient(60% 50% at 68% 30%, rgba(64, 120, 255, 0.38), transparent 70%),
		radial-gradient(50% 40% at 15% 95%, rgba(0, 32, 159, 0.6), transparent 70%),
		linear-gradient(155deg, #00269e 0%, #001766 48%, #000c36 100%);
}

.amah-stage__canvas,
.amah-stage__fallback {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.amah-stage__canvas canvas {
	display: block;
	width: 100% !important;
	height: 100% !important;
	opacity: 0;
	transition: opacity 1s ease;
}

.amah-stage.is-live .amah-stage__canvas canvas {
	opacity: 1;
}

.amah-stage.is-live .amah-stage__fallback {
	opacity: 0;
}

/* static fallback (no WebGL / before three.js loads): CSS rings around a glowing core */
.amah-stage__fallback {
	transition: opacity 0.8s ease;
}

.amah-stage__ring,
.amah-stage__core {
	position: absolute;
	top: var(--amah-cy, 40%);
	left: var(--amah-cx, 62%);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.amah-stage__core {
	width: var(--amah-core, 150px);
	aspect-ratio: 1;
	background: radial-gradient(circle at 35% 30%, #8fb2ff 0%, #1d4ff0 35%, #00209f 70%, #001055 100%);
	box-shadow: 0 0 80px rgba(64, 120, 255, 0.45);
}

.amah-stage__ring--1 {
	width: calc(var(--amah-core, 150px) * 1.9);
	aspect-ratio: 1;
	border: 2px solid rgba(210, 16, 52, 0.85);
	transform: translate(-50%, -50%) rotateX(68deg) rotateZ(20deg);
}

.amah-stage__ring--2 {
	width: calc(var(--amah-core, 150px) * 2.4);
	aspect-ratio: 1;
	border: 1px solid rgba(245, 197, 24, 0.7);
	transform: translate(-50%, -50%) rotateX(72deg) rotateY(-24deg);
}

.amah-stage__ring--3 {
	width: calc(var(--amah-core, 150px) * 3);
	aspect-ratio: 1;
	border: 1px solid rgba(255, 255, 255, 0.18);
}

.amah-stage__copy {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
	padding: 20px;
	pointer-events: none;
	background: linear-gradient(180deg, transparent 0%, rgba(0, 10, 44, 0.55) 55%, rgba(0, 10, 44, 0.8) 100%);
}

.amah-stage__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.08);
	backdrop-filter: blur(6px);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.amah-stage__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--amah-gold);
	box-shadow: 0 0 0 4px rgba(245, 197, 24, 0.2);
}

.amah-stage__title {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.03em;
	line-height: 1.05;
	color: #fff;
}

.amah-stage__word {
	display: inline-block;
	overflow: hidden;
	padding-bottom: 0.08em;
	vertical-align: top;
}

.amah-stage__word > span {
	display: inline-block;
}

.amah-stage__title .is-accent {
	color: var(--amah-gold);
}

.amah-stage__lead,
.amah-stage__pills {
	display: none;
}

/* phones: compact brand band between the header and the form */
@media (max-width: 899px) {
	.amah-auth__main {
		display: contents;
	}

	.amah-auth__header {
		order: 1;
		padding: 20px 16px 16px;
	}

	.amah-stage {
		order: 2;
		height: 230px;
		margin: 0 16px;
		border-radius: 24px;
		--amah-cx: 75%;
		--amah-cy: 44%;
		--amah-core: 90px;
	}

	.amah-auth__form-wrap {
		order: 3;
		padding: 36px 16px 24px;
	}

	.amah-auth__legal {
		order: 4;
		padding: 0 16px 28px;
	}
}

/* desktop: form left, full-height stage right */
@media (min-width: 900px) {
	.amah-auth {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	}

	.amah-stage {
		position: sticky;
		top: 0;
		height: calc(100vh - 24px);
		height: calc(100dvh - 24px);
		margin: 12px 12px 12px 0;
		border-radius: 28px;
		--amah-cx: 54%;
		--amah-cy: 29%;
		--amah-core: 190px;
	}

	.amah-stage__copy {
		padding: 48px;
	}

	.amah-stage__title {
		font-size: clamp(40px, 4.2vw, 64px);
	}

	.amah-stage__lead {
		display: block;
		max-width: 520px;
		margin: 18px 0 0;
		font-size: 15px;
		line-height: 1.6;
		color: rgba(255, 255, 255, 0.78);
	}

	.amah-stage__pills {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		margin: 24px 0 0;
		padding: 0;
		list-style: none;
	}

	.amah-stage__pills li {
		padding: 7px 14px;
		border: 1px solid rgba(255, 255, 255, 0.2);
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.06);
		font-size: 13px;
		font-weight: 500;
	}

	.amah-stage__pills li:nth-child(1) {
		border-color: rgba(245, 197, 24, 0.55);
	}

	.amah-stage__pills li:nth-child(2) {
		border-color: rgba(210, 16, 52, 0.7);
	}
}

@media (min-width: 900px) and (max-height: 720px) {
	.amah-stage__lead {
		display: none;
	}
}
