/* Kids Login page template (inc/kids-login.php, page-templates/tpl-kids-login.php). No Elementor or theme CSS needed. */
body.lingos-kids-login {
	--lkl-brand: #3e64de;
	--lkl-brand-dark: #2a47ad;
	--lkl-sun: #ffc93c;
	--lkl-pink: #ff5c8a;
	--lkl-mint: #12b886;
	--lkl-ink: #1f2547;
	--lkl-ink-soft: #4a5078;
	--lkl-line: #dfe5f7;
	--lkl-field: #f5f8ff;
	--lkl-error: #e03561;
	margin: 0;
	min-height: 100vh;
	background: linear-gradient(180deg, #bfe3ff 0%, #dff1ff 45%, #fff6dc 100%);
	color: var(--lkl-ink);
	font: 16px/1.5 "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	-webkit-font-smoothing: antialiased;
	-webkit-text-size-adjust: 100%;
}
.lkl,
.lkl *,
.lkl *::before,
.lkl *::after { box-sizing: border-box; }
:where(.lkl) :where(h1, h2, p, ul) { margin: 0; padding: 0; }
:where(.lkl) ul { list-style: none; }

.lkl {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: clamp(20px, 4vw, 48px) 16px calc(14px + env(safe-area-inset-bottom));
}

/* Sky scene */
.lkl-scene { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.lkl-sun {
	position: absolute;
	top: clamp(24px, 6vw, 70px);
	right: clamp(20px, 8vw, 120px);
	width: clamp(70px, 10vw, 130px);
	aspect-ratio: 1;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #ffe58a, var(--lkl-sun) 70%);
	box-shadow: 0 0 0 14px rgba(255, 201, 60, .25), 0 0 0 30px rgba(255, 201, 60, .12);
	animation: lkl-pulse 5s ease-in-out infinite;
}
.lkl-cloud {
	position: absolute;
	width: 150px;
	height: 46px;
	border-radius: 50px;
	background: #fff;
	box-shadow: inset 0 -8px 0 #e6eff8;
	animation: lkl-drift 60s linear infinite;
}
.lkl-cloud::before,
.lkl-cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.lkl-cloud::before { width: 64px; height: 64px; left: 22px; top: -30px; }
.lkl-cloud::after { width: 82px; height: 82px; left: 62px; top: -44px; }
.lkl-cloud-1 { top: 12%; left: -10%; }
.lkl-cloud-2 { top: 32%; left: -20%; scale: .7; animation-duration: 80s; animation-delay: -30s; opacity: .9; }
.lkl-cloud-3 { top: 6%; left: -15%; scale: .55; animation-duration: 95s; animation-delay: -60s; opacity: .8; }
.lkl-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: clamp(110px, 18vw, 230px); display: block; }
.lkl-hill-back { fill: #8fd694; }
.lkl-hill-front { fill: #5cbf6d; }

@keyframes lkl-drift { from { translate: 0 0; } to { translate: 130vw 0; } }
@keyframes lkl-pulse { 50% { scale: 1.06; } }
@keyframes lkl-float { 50% { translate: 0 -8px; } }
@keyframes lkl-wave { 0%, 60%, 100% { rotate: 0deg; } 10%, 30% { rotate: 16deg; } 20%, 40% { rotate: -8deg; } }
@keyframes lkl-shake { 25% { translate: -6px 0; } 75% { translate: 6px 0; } }
@keyframes lkl-spin { to { rotate: 360deg; } }
@keyframes lkl-pop { from { opacity: 0; translate: 0 18px; scale: .97; } }

/* Layout */
.lkl-wrap {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 1080px;
	margin: auto;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: clamp(20px, 4vw, 56px);
	align-items: center;
}
@media (min-width: 900px) {
	.lkl-wrap { grid-template-columns: 1fr 440px; }
}

/* Left: hello */
.lkl-hello { text-align: center; }
.lkl-logo {
	display: inline-flex;
	padding: 6px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 0 rgba(62, 100, 222, .15), 0 10px 24px rgba(31, 37, 71, .1);
	transition: rotate .3s ease;
}
.lkl-logo:hover { rotate: -8deg; }
.lkl-logo img { display: block; width: clamp(64px, 8vw, 92px); height: auto; border-radius: 50%; }
.lkl-title {
	margin-top: 14px;
	font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp(26px, 4.4vw, 50px);
	line-height: 1.08;
	color: var(--lkl-ink);
	text-wrap: balance;
}
.lkl-lead { margin-top: 10px; font-size: clamp(16px, 1.6vw, 19px); color: var(--lkl-ink-soft); font-weight: 600; }
.lkl-bubbles { display: none; }
.lkl-perks { display: none; }

@media (min-width: 900px) {
	.lkl-hello { text-align: left; }
	.lkl-bubbles { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; max-width: 470px; }
	.lkl-bubble {
		position: relative;
		padding: 8px 16px;
		border-radius: 18px;
		background: #fff;
		font-family: "Baloo 2", "Nunito", sans-serif;
		font-weight: 700;
		font-size: 20px;
		box-shadow: 0 4px 0 rgba(31, 37, 71, .08);
		animation: lkl-float 4s ease-in-out infinite;
	}
	.lkl-bubble::after {
		content: "";
		position: absolute;
		left: 18px;
		bottom: -7px;
		width: 14px;
		height: 14px;
		background: inherit;
		rotate: 45deg;
		border-radius: 0 0 4px 0;
	}
	.lkl-bubble-1 { color: var(--lkl-pink); }
	.lkl-bubble-2 { color: var(--lkl-brand); animation-delay: -.7s; }
	.lkl-bubble-3 { color: var(--lkl-mint); animation-delay: -1.4s; }
	.lkl-bubble-4 { color: #f08c00; animation-delay: -2.1s; }
	.lkl-bubble-5 { color: #7950f2; animation-delay: -2.8s; }
	.lkl-bubble-6 { color: var(--lkl-ink); animation-delay: -3.5s; }
	.lkl-perks { display: flex; gap: 10px; margin-top: 30px; }
	.lkl-perks li {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 8px 14px;
		border-radius: 999px;
		background: rgba(255, 255, 255, .65);
		font-weight: 800;
		color: var(--lkl-ink-soft);
	}
}

/* Right: card */
.lkl-card {
	position: relative;
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	padding: clamp(26px, 5vw, 40px) clamp(20px, 5vw, 38px) 26px;
	border-radius: 32px;
	background: #fff;
	box-shadow: 0 10px 0 rgba(62, 100, 222, .14), 0 24px 60px rgba(31, 37, 71, .14);
	animation: lkl-pop .5s cubic-bezier(.2, .9, .3, 1.2) both;
}
.lkl-wave { display: inline-block; font-size: 38px; line-height: 1; transform-origin: 70% 80%; animation: lkl-wave 2.6s ease-in-out 1s 2; }
.lkl-card-title {
	margin-top: 6px;
	font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp(28px, 4vw, 34px);
	line-height: 1.1;
	color: var(--lkl-ink);
}
.lkl-card-sub { margin-top: 4px; color: var(--lkl-ink-soft); font-weight: 600; }

/* Error */
.lkl-alert {
	display: flex;
	gap: 12px;
	margin-top: 18px;
	padding: 12px 14px;
	border-radius: 18px;
	background: #fff0f4;
	border: 2px solid #ffc9d8;
	color: #8a1c3d;
	font-size: 15px;
	animation: lkl-shake .4s ease 1;
}
.lkl-alert-icon { font-size: 26px; line-height: 1; }
.lkl-alert strong { display: block; font-weight: 800; color: var(--lkl-error); }
.lkl-alert p { margin-top: 2px; }

/* Form */
.lkl-form { margin-top: 22px; }
.lkl-field + .lkl-field { margin-top: 16px; }
.lkl-field label { display: block; margin-bottom: 6px; font-weight: 800; font-size: 15px; color: var(--lkl-ink); }
.lkl-input {
	position: relative;
	display: flex;
	align-items: center;
	border: 2px solid var(--lkl-line);
	border-radius: 18px;
	background: var(--lkl-field);
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.lkl-input:focus-within { border-color: var(--lkl-brand); background: #fff; box-shadow: 0 0 0 4px rgba(62, 100, 222, .18); }
.lkl-input-icon { flex: none; width: 48px; text-align: center; font-size: 22px; line-height: 1; }
.lkl .lkl-input input {
	flex: 1;
	min-width: 0;
	height: 56px;
	margin: 0;
	padding: 0 14px 0 0;
	border: 0;
	border-radius: 0 18px 18px 0;
	background: transparent;
	box-shadow: none;
	outline: 0;
	font: 700 17px/1.2 "Nunito", system-ui, sans-serif;
	color: var(--lkl-ink);
}
.lkl .lkl-input input::placeholder { color: #9aa1c4; font-weight: 600; }
.lkl-peek {
	flex: none;
	margin-right: 8px;
	padding: 7px 12px;
	border: 0;
	border-radius: 12px;
	background: #e7ecff;
	color: var(--lkl-brand-dark);
	font: 800 14px/1 "Nunito", system-ui, sans-serif;
	cursor: pointer;
}
.lkl-peek:hover { background: #d8e0ff; }
.lkl-peek:focus-visible,
.lkl-link:focus-visible,
.lkl-new a:focus-visible,
.lkl-logo:focus-visible,
.lkl-btn:focus-visible { outline: 3px solid var(--lkl-sun); outline-offset: 3px; }
.lkl-caps { margin-top: 6px; font-size: 14px; font-weight: 700; color: #b86e00; }
.lkl-caps::before { content: "⚠️ "; }
.lkl-field.is-empty .lkl-input { border-color: var(--lkl-error); background: #fff7f9; animation: lkl-shake .3s ease 1; }
.lkl-field.is-empty label::after { content: " — please fill this in"; color: var(--lkl-error); font-weight: 700; }

.lkl-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-top: 18px;
}
.lkl-check { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--lkl-ink-soft); cursor: pointer; }
.lkl .lkl-check input {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 26px;
	height: 26px;
	margin: 0;
	border: 2px solid #c3cbe8;
	border-radius: 9px;
	background: #fff;
	display: grid;
	place-content: center;
	cursor: pointer;
	transition: background-color .15s, border-color .15s;
}
.lkl .lkl-check input::after { content: "✓"; color: #fff; font-weight: 900; font-size: 16px; scale: 0; transition: scale .15s; }
.lkl .lkl-check input:checked { background: var(--lkl-mint); border-color: var(--lkl-mint); }
.lkl .lkl-check input:checked::after { scale: 1; }
.lkl .lkl-check input:focus-visible { outline: 3px solid var(--lkl-sun); outline-offset: 2px; }
.lkl-link { color: var(--lkl-brand); font-weight: 800; text-decoration: none; }
.lkl-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.lkl-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 60px;
	margin-top: 22px;
	border: 0;
	border-radius: 20px;
	background: var(--lkl-brand);
	color: #fff;
	font: 700 22px/1 "Baloo 2", "Nunito", system-ui, sans-serif;
	box-shadow: 0 6px 0 var(--lkl-brand-dark);
	cursor: pointer;
	transition: translate .1s, box-shadow .1s, background-color .15s;
}
.lkl-btn:hover { background: #4b70ea; }
.lkl-btn:active { translate: 0 4px; box-shadow: 0 2px 0 var(--lkl-brand-dark); }
.lkl-btn-icon { font-size: 22px; transition: translate .2s; }
.lkl-btn:hover .lkl-btn-icon { translate: 3px -3px; }
.lkl-btn.is-busy { pointer-events: none; opacity: .85; }
.lkl-btn.is-busy .lkl-btn-icon { display: none; }
.lkl-btn.is-busy::after {
	content: "";
	width: 20px;
	height: 20px;
	border: 3px solid rgba(255, 255, 255, .45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: lkl-spin .7s linear infinite;
}

.lkl-new {
	margin-top: 20px;
	padding: 12px;
	border-radius: 18px;
	background: #fff8e1;
	text-align: center;
	font-weight: 700;
	color: var(--lkl-ink-soft);
}
.lkl-new a { display: inline-block; margin-left: 4px; padding: 6px 2px; color: #9a5200; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; } /* 4.5:1 on the cream box; taller tap target */
.lkl-grownup { margin-top: 14px; text-align: center; font-size: 14px; color: var(--lkl-ink-soft); }

/* Sign-up page */
@media (min-width: 900px) {
	.lingos-kids-register .lkl-wrap { grid-template-columns: 1fr 500px; }
}
.lkl-card-wide { max-width: 500px; }
.lkl-wave-party { animation: lkl-float 2.4s ease-in-out infinite; }
a.lkl-btn { text-decoration: none; }
.lkl-pair { display: grid; gap: 16px; }
.lkl-pair .lkl-field + .lkl-field { margin-top: 0; }
.lkl-pair + .lkl-field { margin-top: 16px; }
@media (min-width: 440px) {
	.lkl-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
}
.lkl-hint { margin-top: 6px; font-size: 14px; color: var(--lkl-ink-soft); }
.lkl-flash:empty { display: none; }
.lkl-flash { margin-top: 16px; }

.lkl-meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--lkl-ink-soft); }
.lkl-meter-bar { display: inline-flex; gap: 4px; flex: none; }
.lkl-meter-bar i { width: 26px; height: 8px; border-radius: 8px; background: var(--lkl-line); transition: background-color .2s; }
.lkl-meter[data-level="1"] .lkl-meter-bar i:nth-child(1) { background: var(--lkl-pink); }
.lkl-meter[data-level="2"] .lkl-meter-bar i:nth-child(-n+2) { background: var(--lkl-sun); }
.lkl-meter[data-level="3"] .lkl-meter-bar i { background: var(--lkl-mint); }
.lkl-meter[data-level="1"] .lkl-meter-text { color: var(--lkl-error); }
.lkl-meter[data-level="3"] .lkl-meter-text { color: #0b8a63; }
.lkl-match { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--lkl-error); }
.lkl-match.is-ok { color: #0b8a63; }
.lkl-field.is-bad .lkl-input { border-color: var(--lkl-error); }

.lkl-extra { margin-top: 18px; }
.lkl-extra:empty { display: none; }
.lkl-terms { align-items: flex-start; font-weight: 600; }
.lkl-terms span { padding-top: 2px; }
.lkl-consent { margin-top: 12px; }
.lkl-consent .tutor-input-wrapper { display: flex; align-items: flex-start; gap: 10px; }
.lkl-consent .tutor-label { font: 600 15px/1.45 "Nunito", system-ui, sans-serif; color: var(--lkl-ink-soft); }
.lkl-consent a,
.lkl-terms a { color: var(--lkl-brand); font-weight: 800; }
.lkl .lkl-consent input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	flex: none;
	width: 26px;
	height: 26px;
	margin: 0 !important;
	border: 2px solid #c3cbe8;
	border-radius: 9px;
	background: #fff;
	display: grid;
	place-content: center;
	cursor: pointer;
}
.lkl .lkl-consent input[type="checkbox"]::after { content: "✓"; color: #fff; font-weight: 900; font-size: 16px; scale: 0; transition: scale .15s; }
.lkl .lkl-consent input[type="checkbox"]:checked { background: var(--lkl-mint); border-color: var(--lkl-mint); }
.lkl .lkl-consent input[type="checkbox"]:checked::after { scale: 1; }
.is-unticked { animation: lkl-shake .3s ease 1; }
.is-unticked input[type="checkbox"] { border-color: var(--lkl-error) !important; box-shadow: 0 0 0 4px rgba(224, 53, 97, .15); }

/* Success message (password link sent) */
.lkl-alert-ok { background: #ebfbf3; border-color: #b2f0d3; color: #0b5e44; animation: lkl-pop .4s ease both; }
.lkl-alert-ok strong { color: #0b8a63; }

/* 404 */
.lkl-card-404 { text-align: center; }
.lkl-404 {
	font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
	font-weight: 700;
	font-size: clamp(72px, 14vw, 110px);
	line-height: 1;
	color: var(--lkl-brand);
	text-shadow: 0 6px 0 rgba(62, 100, 222, .15);
}
.lkl-404 span { display: inline-block; font-size: .8em; margin: 0 .05em; animation: lkl-spin 6s linear infinite; }
.lkl-card-404 .lkl-card-title { margin-top: 8px; }
.lkl-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.lkl-links a {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 999px;
	background: #eef2ff;
	color: var(--lkl-brand-dark);
	font-weight: 800;
	text-decoration: none;
}
.lkl-links a:hover { background: #dfe6ff; }
.lkl-links a:focus-visible { outline: 3px solid var(--lkl-sun); outline-offset: 3px; }

/* Copyright, on the front hill */
.lkl-copy {
	position: relative;
	z-index: 1;
	margin-top: clamp(36px, 6vw, 64px);
	text-align: center;
	font-size: 14px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 1px 2px rgba(31, 37, 71, .35);
}

/* Tutor add-ons (legal consent, social login) inside the card */
.lkl-card .tutor-mt-8,
.lkl-card .tutor-mt-9 { margin-top: 18px; }
.lkl-card label { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
	.lkl *,
	.lkl *::before,
	.lkl *::after { animation: none !important; transition: none !important; }
}
