/* Inlogpagina /inloggen/ — zie inc/inlogpagina.php */

.lm-inlog {
	--lm-blauw: #135a83;
	--lm-blauw-diep: #0a4670;
	--lm-navy: #003465;
	--lm-knoptekst: #0b3f5e;
	--lm-cyaan: #2ec1fb;
	--lm-cyaan-licht: #9be3ff;
	--lm-geel: #fdc14d;
	--lm-geel-hover: #ffcb5e;
	--lm-inkt: #0b2a3f;
	--lm-tekst: #4a6275;
	--lm-veld: #f2f6f9;
	--lm-rand: #d3dfe8;
	--lm-rand-hover: #b5c8d6;
	--lm-fout: #b42318;
	--lm-ease: cubic-bezier(0.16, 1, 0.3, 1);

	font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
	color: var(--lm-inkt);
}

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

.lm-inlog ::selection {
	background: rgba(46, 193, 251, 0.35);
	color: var(--lm-inkt);
}

/* Het blauwe veld: het blauw van de homepagekop, aflopend naar diep blauw. Bewust niet tot
   #003465: dat is precies de footer, en dan zou het veld in de footer opgaan. */
.lm-inlog__veld {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 440px) minmax(0, 1fr);
	grid-template-areas:
		"links kaart rechts"
		".     hulp  .";
	align-content: center;
	min-height: max(640px, calc(100svh - 110px));
	padding: 72px 24px 80px;
	overflow: hidden;
	background:
		radial-gradient(1100px 460px at 50% -22%, rgba(46, 193, 251, 0.1), rgba(46, 193, 251, 0) 62%),
		linear-gradient(180deg, var(--lm-blauw) 0%, var(--lm-blauw-diep) 100%);
}

/* Circuitsporen in de lijnstijl van het logo, lopend tot tegen de kaart */
.lm-inlog__sporen {
	display: block;
	width: 100%;
	height: 400px;
	overflow: visible;
	align-self: center;
	pointer-events: none;
}

.lm-inlog__sporen--links {
	grid-area: links;
}

.lm-inlog__sporen--rechts {
	grid-area: rechts;
}

.lm-inlog__sporen--boven {
	display: none;
}

.lm-inlog__spoor,
.lm-inlog__signaal {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.lm-inlog__spoor {
	stroke: rgba(46, 193, 251, 0.34);
	stroke-width: 1.5;
	stroke-dasharray: 1;
	stroke-dashoffset: 0;
	transition: stroke 0.5s var(--lm-ease);
	animation: lm-inlog-teken 1.6s var(--lm-ease) both;
	animation-delay: calc(var(--i, 0) * 110ms + 120ms);
}

.lm-inlog__signaal {
	stroke: var(--lm-cyaan);
	stroke-width: 2.25;
	stroke-dasharray: 0.07 1.07;
	stroke-dashoffset: 0.07;
	opacity: 0;
}

.lm-inlog__knoop {
	fill: #11527a;
	stroke: rgba(46, 193, 251, 0.75);
	stroke-width: 1.5;
	vector-effect: non-scaling-stroke;
	animation: lm-inlog-knoop 0.6s var(--lm-ease) both;
	animation-delay: calc(var(--i, 0) * 110ms + 700ms);
}

/* Focus op een veld laat de sporen aan die kant oplichten: links het e-mailadres, rechts het
   wachtwoord. Mobiel (sporen van boven) lichten bij elk veld op. */
.lm-inlog__veld.is-focus-links .lm-inlog__sporen--links .lm-inlog__spoor,
.lm-inlog__veld.is-focus-rechts .lm-inlog__sporen--rechts .lm-inlog__spoor,
.lm-inlog__veld.is-focus-links .lm-inlog__sporen--boven .lm-inlog__spoor,
.lm-inlog__veld.is-focus-rechts .lm-inlog__sporen--boven .lm-inlog__spoor {
	stroke: rgba(46, 193, 251, 0.7);
}

.lm-inlog__veld.is-signaal-links .lm-inlog__sporen--links .lm-inlog__signaal,
.lm-inlog__veld.is-signaal-rechts .lm-inlog__sporen--rechts .lm-inlog__signaal,
.lm-inlog__veld.is-signaal-links .lm-inlog__sporen--boven .lm-inlog__signaal,
.lm-inlog__veld.is-signaal-rechts .lm-inlog__sporen--boven .lm-inlog__signaal {
	animation: lm-inlog-signaal 1.15s cubic-bezier(0.45, 0, 0.2, 1) both;
	animation-delay: calc(var(--i, 0) * 80ms);
}

.lm-inlog__veld.is-bezig .lm-inlog__signaal {
	animation: lm-inlog-signaal 1.1s cubic-bezier(0.45, 0, 0.2, 1) infinite;
	animation-delay: calc(var(--i, 0) * 140ms);
}

@keyframes lm-inlog-teken {
	from {
		stroke-dashoffset: 1;
	}
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes lm-inlog-knoop {
	from {
		opacity: 0;
		transform: scale(0.4);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.lm-inlog__knoop {
	transform-box: fill-box;
	transform-origin: center;
}

@keyframes lm-inlog-signaal {
	0% {
		stroke-dashoffset: 0.07;
		opacity: 0;
	}
	12% {
		opacity: 1;
	}
	88% {
		opacity: 1;
	}
	100% {
		stroke-dashoffset: -1;
		opacity: 0;
	}
}

/* De kaart */
.lm-inlog__kaart {
	position: relative;
	z-index: 1;
	grid-area: kaart;
	align-self: center;
	width: 100%;
	padding: 40px 40px 36px;
	background: #fff;
	border-radius: 20px;
	box-shadow:
		0 1px 2px rgba(0, 30, 55, 0.1),
		0 28px 56px -16px rgba(0, 24, 46, 0.5);
}

.lm-inlog .lm-inlog__titel {
	margin: 0;
	font-family: inherit;
	font-size: 32px;
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--lm-navy);
	text-wrap: balance;
}

.lm-inlog__intro {
	margin: 10px 0 28px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	color: var(--lm-tekst);
}

.lm-inlog__intro strong {
	font-weight: 700;
	color: var(--lm-inkt);
}

/* Meldingen */
.lm-inlog__melding {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: -8px 0 24px;
	padding: 14px 16px;
	border: 1px solid;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.5;
}

.lm-inlog__melding[hidden] {
	display: none;
}

.lm-inlog__melding p {
	margin: 0;
}

.lm-inlog__melding strong {
	font-weight: 700;
}

.lm-inlog__melding a {
	color: inherit;
	font-weight: 700;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.lm-inlog__melding--fout {
	background: #fef3f2;
	border-color: #fecdca;
	color: #7a271a;
}

.lm-inlog__melding--status {
	background: #ecf8fd;
	border-color: #bfe6f7;
	color: var(--lm-knoptekst);
}

.lm-inlog__melding-icoon {
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	margin-top: 1px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lm-inlog__melding--fout .lm-inlog__melding-icoon {
	stroke: var(--lm-fout);
}

.lm-inlog__melding--status .lm-inlog__melding-icoon {
	stroke: var(--lm-blauw);
}

/* Formulier */
.lm-inlog__form {
	margin: 0;
}

.lm-inlog__groep + .lm-inlog__groep {
	margin-top: 20px;
}

.lm-inlog__labelrij {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 16px;
	margin-bottom: 8px;
}

.lm-inlog .lm-inlog__label {
	display: block;
	margin: 0 0 8px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--lm-knoptekst);
}

.lm-inlog__labelrij .lm-inlog__label {
	margin: 0;
}

.lm-inlog .lm-inlog__vergeten {
	display: inline-block;
	margin: -4px 0;
	padding: 4px 0;
	font-size: 13px;
	font-weight: 600;
	color: var(--lm-blauw);
	text-decoration: underline;
	text-decoration-color: rgba(19, 90, 131, 0.35);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 0.15s, text-decoration-color 0.15s;
}

.lm-inlog .lm-inlog__vergeten:hover {
	color: var(--lm-knoptekst);
	text-decoration-color: currentColor;
}

.lm-inlog .lm-inlog__invoer {
	display: block;
	width: 100%;
	height: 52px;
	margin: 0;
	padding: 0 16px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 500;
	line-height: normal;
	color: var(--lm-inkt);
	caret-color: var(--lm-blauw);
	background: var(--lm-veld);
	border: 1.5px solid var(--lm-rand);
	border-radius: 12px;
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s, background-color 0.15s, box-shadow 0.2s var(--lm-ease);
}

.lm-inlog .lm-inlog__invoer:hover {
	border-color: var(--lm-rand-hover);
}

.lm-inlog .lm-inlog__invoer:focus {
	background: #fff;
	border-color: var(--lm-blauw);
	box-shadow: 0 0 0 4px rgba(46, 193, 251, 0.32);
}

/* Automatisch ingevuld door de browser of een wachtwoordbeheerder: zelfde veldkleur */
.lm-inlog .lm-inlog__invoer:-webkit-autofill {
	-webkit-text-fill-color: var(--lm-inkt);
	box-shadow: 0 0 0 100px var(--lm-veld) inset;
}

.lm-inlog .lm-inlog__invoer:-webkit-autofill:focus {
	box-shadow: 0 0 0 100px #fff inset, 0 0 0 4px rgba(46, 193, 251, 0.32);
}

.lm-inlog .lm-inlog__invoer:autofill {
	-webkit-text-fill-color: var(--lm-inkt);
	box-shadow: 0 0 0 100px var(--lm-veld) inset;
}

.lm-inlog .lm-inlog__invoer:autofill:focus {
	box-shadow: 0 0 0 100px #fff inset, 0 0 0 4px rgba(46, 193, 251, 0.32);
}

.lm-inlog .lm-inlog__invoer[aria-invalid="true"] {
	border-color: var(--lm-fout);
}

.lm-inlog .lm-inlog__invoer[aria-invalid="true"]:focus {
	box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.16);
}

.lm-inlog__wachtwoord {
	position: relative;
}

.lm-inlog .lm-inlog__wachtwoord .lm-inlog__invoer {
	padding-right: 56px;
}

.lm-inlog .lm-inlog__toon {
	position: absolute;
	top: 4px;
	right: 4px;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	color: var(--lm-tekst);
	background: transparent;
	border: 0;
	border-radius: 9px;
	cursor: pointer;
	transition: color 0.15s, background-color 0.15s;
}

.lm-inlog .lm-inlog__toon:hover {
	color: var(--lm-blauw);
	background: #e4edf3;
}

.lm-inlog .lm-inlog__toon:focus {
	outline: none;
}

.lm-inlog .lm-inlog__toon:focus-visible {
	outline: 2px solid var(--lm-blauw);
	outline-offset: -2px;
}

.lm-inlog__oog {
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.75;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.lm-inlog__oog-streep {
	opacity: 0;
	transition: opacity 0.15s;
}

.lm-inlog__toon[aria-pressed="true"] .lm-inlog__oog-streep {
	opacity: 1;
}

.lm-inlog__caps {
	margin: 8px 0 0;
	font-size: 13px;
	font-weight: 600;
	color: #8a5300;
}

.lm-inlog__caps[hidden] {
	display: none;
}

/* Knop: de gele pilknop van de homepage */
.lm-inlog .lm-inlog__knop {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 54px;
	margin: 28px 0 0;
	padding: 0 28px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: none;
	text-decoration: none;
	color: var(--lm-knoptekst);
	background: var(--lm-geel);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 10px 28px rgba(253, 193, 77, 0.32);
	cursor: pointer;
	transition: transform 0.18s var(--lm-ease), box-shadow 0.18s var(--lm-ease), background-color 0.15s;
}

.lm-inlog .lm-inlog__knop:hover {
	color: var(--lm-knoptekst);
	background: var(--lm-geel-hover);
	box-shadow: 0 14px 32px rgba(253, 193, 77, 0.42);
	transform: translateY(-1px);
}

.lm-inlog .lm-inlog__knop:active {
	transform: translateY(0);
	box-shadow: 0 6px 18px rgba(253, 193, 77, 0.3);
}

.lm-inlog .lm-inlog__knop:focus {
	outline: none;
}

.lm-inlog .lm-inlog__knop:focus-visible {
	outline: 3px solid var(--lm-blauw);
	outline-offset: 3px;
}

.lm-inlog__pijl {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s var(--lm-ease);
}

.lm-inlog__knop:hover .lm-inlog__pijl {
	transform: translateX(3px);
}

.lm-inlog .lm-inlog__knop[aria-busy="true"] {
	cursor: progress;
	transform: none;
}

.lm-inlog__knop[aria-busy="true"] .lm-inlog__pijl {
	display: none;
}

.lm-inlog__knop[aria-busy="true"]::after {
	content: "";
	width: 16px;
	height: 16px;
	border: 2px solid rgba(11, 63, 94, 0.25);
	border-top-color: var(--lm-knoptekst);
	border-radius: 50%;
	animation: lm-inlog-draai 0.7s linear infinite;
}

@keyframes lm-inlog-draai {
	to {
		transform: rotate(360deg);
	}
}

.lm-inlog__onder {
	margin: 20px 0 0;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	color: var(--lm-tekst);
}

.lm-inlog .lm-inlog__onder a {
	font-weight: 700;
	color: var(--lm-blauw);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* Hulp onder de kaart, op het blauw */
.lm-inlog__hulp {
	position: relative;
	z-index: 1;
	grid-area: hulp;
	display: grid;
	gap: 12px;
	margin-top: 32px;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.55;
	text-align: center;
	color: rgba(255, 255, 255, 0.82);
}

.lm-inlog__hulp p {
	margin: 0;
}

.lm-inlog__hulp strong {
	font-weight: 700;
	color: #fff;
}

.lm-inlog .lm-inlog__hulp a {
	font-weight: 700;
	color: var(--lm-cyaan-licht);
	text-decoration: underline;
	text-decoration-color: rgba(155, 227, 255, 0.45);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	white-space: nowrap;
	transition: color 0.15s, text-decoration-color 0.15s;
}

.lm-inlog .lm-inlog__hulp a:hover {
	color: #fff;
	text-decoration-color: currentColor;
}

.lm-inlog .lm-inlog__hulp a:focus-visible {
	outline: 2px solid var(--lm-cyaan-licht);
	outline-offset: 3px;
	border-radius: 2px;
}

/* Smaller dan de zijsporen: de sporen komen van boven de kaart in */
@media (max-width: 900px) {
	.lm-inlog__veld {
		grid-template-columns: minmax(0, 480px);
		grid-template-areas:
			"boven"
			"kaart"
			"hulp";
		justify-content: center;
		align-content: start;
		min-height: 0;
		padding: 0 16px 48px;
	}

	.lm-inlog__sporen--links,
	.lm-inlog__sporen--rechts {
		display: none;
	}

	.lm-inlog__sporen--boven {
		display: block;
		grid-area: boven;
		justify-self: center;
		width: min(360px, 100%);
		height: 56px;
	}
}

@media (max-width: 480px) {
	.lm-inlog__kaart {
		padding: 28px 22px 26px;
		border-radius: 18px;
	}

	.lm-inlog .lm-inlog__titel {
		font-size: 28px;
	}

	.lm-inlog__intro {
		margin-bottom: 24px;
	}

	.lm-inlog__hulp {
		margin-top: 28px;
		padding: 0 4px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lm-inlog__spoor,
	.lm-inlog__knoop,
	.lm-inlog__veld .lm-inlog__signaal {
		animation: none;
	}

	.lm-inlog__spoor,
	.lm-inlog__knop,
	.lm-inlog__pijl {
		transition: none;
	}
}
