/* The GPAfleet login (theme layout "map", _ui_lab/login-brand-final.html): the live map of Tirana with the form in a
   white panel (or dark glass), right, centre or left as the theme says; a sheet from the bottom on a phone.
   index.php and mobile/index.php. This sheet is not compiled by the themes (it sits in its own folder): the map and
   the brand stay navy, the form takes the theme's colours from the --th-* variables (docs/themes-standards.md). The
   dark page is the one exception to "themes stay light", approved on 2026-09-30 for the login page only. */

html.lm-html, html.lm-html body { height: 100%; }
body.lm {
	margin: 0; overflow: hidden; background: #081040; color: #EEF1FF;
	font: 15px/1.5 Poppins, "Segoe UI", system-ui, sans-serif;
	-webkit-font-smoothing: antialiased;
	--lm-accent: var(--th-accent, #2F4BFA);
	--lm-text: var(--th-text, #2B3150);
	--lm-muted: var(--th-muted, #5D6380);
	--lm-line: var(--th-line, #D9DDEA);
	--lm-ink: #0E1C6B;
	--lm-soft: #8FA6FF;
	--lm-mist: #C9D2FF;
}
body.lm *, body.lm *::before, body.lm *::after { box-sizing: border-box; }
.lm-map { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }

/* top: logo left, clock / contacts / language right */
.lm-logo { position: fixed; z-index: 6; left: 32px; top: 22px; height: 30px; width: auto; }
.lm-chips { position: fixed; z-index: 6; right: 32px; top: 18px; display: flex; gap: 10px; align-items: center; }
.lm-chip {
	display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px;
	background: rgba(10, 18, 70, 0.55); border: 1px solid rgba(143, 166, 255, 0.22); color: #C9D2FF;
	font: 500 12.5px Poppins, "Segoe UI", sans-serif; text-decoration: none; white-space: nowrap;
	-webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
a.lm-chip:hover { color: #ffffff; border-color: #8FA6FF; }
.lm-chip svg { width: 14px; height: 14px; flex: none; }
select.lm-chip { -webkit-appearance: none; appearance: none; cursor: pointer; text-align: center; text-align-last: center; }
select.lm-chip option { color: #2B3150; background: #ffffff; }
.lm-live { width: 8px; height: 8px; border-radius: 50%; background: #5BE3A0; animation: lm-live 2s infinite; }
@keyframes lm-live { 0% { box-shadow: 0 0 0 0 rgba(91, 227, 160, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(91, 227, 160, 0); } 100% { box-shadow: 0 0 0 0 rgba(91, 227, 160, 0); } }

/* legend: the map's vehicles are a demo, no client data is shown before the login */
.lm-legend { position: fixed; z-index: 6; left: 32px; bottom: 22px; display: flex; gap: 16px; flex-wrap: wrap; font: 500 12px Consolas, "Cascadia Mono", ui-monospace, monospace; color: #C9D2FF; }
.lm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lm-legend .lm-osm { opacity: 0.8; }
.lm-lg-move { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-bottom: 11px solid #8FA6FF; transform: rotate(50deg); }
.lm-lg-stop { width: 9px; height: 9px; background: #F5B84B; }
.lm-lg-off { width: 9px; height: 9px; border: 2px solid #7F88B8; border-radius: 50%; }
.lm-pos-left .lm-legend { left: auto; right: 32px; }

/* the form panel */
.lm-panel { position: fixed; z-index: 7; top: 50%; right: 40px; transform: translateY(-50%); width: 400px; max-width: calc(100vw - 32px); max-height: calc(100vh - 110px); overflow: auto; border-radius: 24px; padding: 30px; }
.lm-pos-center .lm-panel { right: auto; left: 50%; transform: translate(-50%, -50%); }
.lm-pos-left .lm-panel { right: auto; left: 40px; }
.lm-grab { display: none; width: 40px; height: 5px; border-radius: 3px; background: #D5D9E6; margin: 0 auto 14px; }
.lm-panel h1 { margin: 0; font: 600 26px/1.2 Poppins, "Segoe UI", sans-serif; letter-spacing: -0.02em; }
.lm-sub { margin: 4px 0 20px; font-size: 14px; }
.lm-form { display: grid; gap: 14px; margin: 0; }
.lm-form label.lm-l, .lm-modal label.lm-l { display: block; font: 500 12.5px Poppins, "Segoe UI", sans-serif; margin: 0 0 6px; }
.lm-inp { position: relative; }
.lm-f {
	display: block; width: 100%; height: 50px; margin: 0; border-radius: 12px; padding: 0 44px 0 14px;
	font: 15px Poppins, "Segoe UI", sans-serif; outline: none; box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.lm-eye { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border: 0; border-radius: 9px; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.lm-eye svg { width: 19px; height: 19px; }
.lm-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.lm-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; margin: 0; font: 400 13px Poppins, "Segoe UI", sans-serif; }
.lm-check input { width: 17px; height: 17px; margin: 0; }
.lm a.lm-lnk { text-decoration: none; font-weight: 500; cursor: pointer; }
.lm a.lm-lnk:hover { text-decoration: underline; }
/* white text on the main colour: 4.5:1 is kept by ending the gradient only a little lighter (#2F4BFA to about #3F59FB) */
.lm-go {
	position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; margin: 4px 0 0;
	border: 0; border-radius: 14px; cursor: pointer; color: #ffffff; font: 600 15px Poppins, "Segoe UI", sans-serif;
	background: var(--lm-accent);
	background: linear-gradient(90deg, var(--lm-accent), color-mix(in srgb, var(--lm-accent) 92%, #ffffff));
}
.lm-go:hover { filter: brightness(1.07); }
.lm-go:focus-visible, .lm-eye:focus-visible, .lm a.lm-lnk:focus-visible, .lm-chip:focus-visible, .lm-faceid:focus-visible { outline: 2px solid #8FA6FF; outline-offset: 2px; }
.lm-go svg { width: 18px; height: 18px; transition: transform 0.25s; }
.lm-go:hover svg { transform: translate(3px, -3px); }
.lm-faceid { display: none; width: 100%; height: 48px; margin: 10px 0 0; border-radius: 14px; align-items: center; justify-content: center; gap: 9px; cursor: pointer; font: 500 14px Poppins, "Segoe UI", sans-serif; }
.lm-faceid.on { display: flex; }
.lm-faceid svg { width: 20px; height: 20px; }
.lm-alt { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding-top: 16px; font-size: 13px; }
.lm-langs { display: none; gap: 6px; margin-top: 14px; justify-content: center; flex-wrap: wrap; }
.lm-langs button { height: 30px; min-width: 40px; padding: 0 10px; border-radius: 8px; font: 500 12px Poppins, "Segoe UI", sans-serif; cursor: pointer; }
.lm-server { margin: 0 0 14px; }
.lm-server select { padding-right: 14px; cursor: pointer; }
.lm-note { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; font-size: 13px; }

/* white form (default) */
.lm-white .lm-panel { background: #ffffff; color: var(--lm-text); box-shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.55); }
.lm-white .lm-panel h1 { color: var(--lm-ink); }
.lm-white .lm-sub, .lm-white .lm-alt { color: var(--lm-muted); }
.lm-white label.lm-l { color: var(--lm-text); }
.lm-white .lm-f { border: 1px solid var(--lm-line); background: #F7F8FC; color: var(--lm-text); }
.lm-white .lm-f:focus { border-color: var(--lm-accent); background: #ffffff; box-shadow: 0 0 0 4px color-mix(in srgb, var(--lm-accent) 14%, transparent); }
.lm-white .lm-eye { color: var(--lm-muted); }
.lm-white .lm-check { color: var(--lm-text); }
.lm-white .lm-check input { accent-color: var(--lm-accent); }
/* links on white: the darker shade of the main colour when the main colour itself is too light */
.lm-white a.lm-lnk { color: var(--th-accent-600, #2F4BFA); }
.lm-white .lm-alt { border-top: 1px solid #E3E6F0; }
.lm-white .lm-faceid { border: 1px solid var(--lm-line); background: #ffffff; color: var(--lm-ink); }
.lm-white .lm-langs button { border: 1px solid var(--lm-line); background: #ffffff; color: var(--lm-muted); }
.lm-white .lm-langs button.on { background: #E8ECFF; border-color: #E8ECFF; color: #1F35C8; }
.lm-white .lm-note { background: #FFF4E5; color: #8a4b08; }

/* dark glass form */
.lm-glass .lm-panel { background: rgba(10, 18, 70, 0.72); border: 1px solid rgba(143, 166, 255, 0.22); -webkit-backdrop-filter: blur(18px) saturate(1.2); backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6); color: #EEF1FF; }
.lm-glass .lm-panel h1 { color: #ffffff; }
.lm-glass .lm-sub, .lm-glass label.lm-l, .lm-glass .lm-check, .lm-glass .lm-alt { color: #C9D2FF; }
.lm-glass .lm-f { border: 1px solid rgba(143, 166, 255, 0.22); background: rgba(255, 255, 255, 0.06); color: #ffffff; }
.lm-glass .lm-f:focus { border-color: #8FA6FF; background: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 4px rgba(143, 166, 255, 0.18); }
.lm-glass .lm-eye { color: #C9D2FF; }
.lm-glass .lm-check input { accent-color: #4A74FF; }
.lm-glass a.lm-lnk { color: #8FA6FF; }
.lm-glass .lm-alt { border-top: 1px solid rgba(143, 166, 255, 0.22); }
.lm-glass .lm-faceid { border: 1px solid rgba(143, 166, 255, 0.22); background: rgba(255, 255, 255, 0.04); color: #EEF1FF; }
.lm-glass .lm-langs button { border: 1px solid rgba(143, 166, 255, 0.22); background: none; color: #C9D2FF; }
.lm-glass .lm-langs button.on { background: #ffffff; color: #0E1C6B; }
.lm-glass .lm-note { background: rgba(245, 184, 75, 0.14); color: #FFD9A0; }
.lm-glass .lm-grab { background: rgba(201, 210, 255, 0.35); }

/* the recovery and registration windows */
.lm-modal { position: fixed; inset: 0; z-index: 30; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(8, 16, 64, 0.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.lm-modal.on { display: flex; }
.lm-box { position: relative; width: 400px; max-width: 100%; background: #ffffff; color: var(--lm-text); border-radius: 20px; padding: 24px; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6); display: grid; gap: 12px; }
.lm-box h2 { margin: 0; padding-right: 36px; font: 600 19px/1.3 Poppins, "Segoe UI", sans-serif; color: var(--lm-ink); }
.lm-box p { margin: 0; font-size: 13px; color: var(--lm-muted); }
.lm-box .lm-f { border: 1px solid var(--lm-line); background: #F7F8FC; color: var(--lm-text); padding-right: 14px; }
.lm-box .lm-f:focus { border-color: var(--lm-accent); background: #ffffff; }
.lm-box label.lm-l { color: var(--lm-text); }
.lm-x { position: absolute; right: 12px; top: 12px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: none; color: var(--lm-muted); cursor: pointer; font-size: 22px; line-height: 1; }
.lm-x:hover { background: #F1F3F9; }
/* the offer of Face ID / the fingerprint after a login with the password */
.lm-offer .lm-box { text-align: center; justify-items: center; padding-top: 28px; }
.lm-offer .lm-box h2 { padding: 0; }
.lm-offer .lm-go { margin-top: 6px; }
.lm-offer-ic { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--lm-accent) 10%, #ffffff); color: var(--lm-accent); }
.lm-offer-ic svg { width: 30px; height: 30px; }
.lm-later { width: 100%; height: 44px; border: 0; border-radius: 12px; background: none; color: var(--lm-muted); font: 500 14px Poppins, "Segoe UI", sans-serif; cursor: pointer; }
.lm-later:hover { background: #F1F3F9; }
.lm-faceid[disabled] { opacity: 0.6; cursor: default; }

/* a field people do not see: bots fill it in (func/fn_connect.php) */
.lm-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* desktop intro: the logo builds in the middle, docks top-left, the arrows become three vehicles */
.lm-intro { position: fixed; inset: 0; z-index: 8; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.lm-mk { display: flex; align-items: center; gap: 26px; }
.lm-intro .lm-mk { --h: clamp(34px, 6vw, 76px); gap: calc(var(--h) * 0.34); }
.lm-intro .lm-icon { height: calc(var(--h) * 1.24); width: auto; overflow: visible; }
.lm-intro .lm-word { height: var(--h); width: auto; overflow: visible; }
.lm-slo { margin-left: 6px; padding-left: calc(var(--h) * 0.36); border-left: 3px solid rgba(255, 255, 255, 0.4); color: #C9D2FF; font: 500 calc(var(--h) * 0.34)/1.18 Poppins, "Segoe UI", sans-serif; white-space: nowrap; }
.lm .lm-ar { transform-box: fill-box; transform-origin: center; fill: url(#lm_gl); stroke: url(#lm_gl); stroke-width: 6.99; stroke-linejoin: round; }
.lm .lm-word path { transform-box: fill-box; transform-origin: 50% 100%; }
.lm .lm-g { fill: #ffffff; stroke: #ffffff; stroke-width: 24; stroke-linejoin: round; }
.lm .lm-fl { fill: #8FA6FF; stroke: #8FA6FF; stroke-width: 12; stroke-linejoin: round; }
.lm-fade { transition: opacity 0.6s; }
.lm-pre .lm-fade { opacity: 0; }

/* mobile splash: the arrows arrive, then the name; the arrows fly off and the map with the login opens */
.lm-splash { position: fixed; inset: 0; z-index: 40; background: #0E1C6B; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.5s; }
.lm-splash .lm-icon { height: 62px; width: auto; overflow: visible; }
.lm-splash .lm-word { height: 44px; width: auto; overflow: visible; }
.lm-splash .lm-mk { gap: 14px; }
.lm-splash-slo { position: absolute; bottom: calc(env(safe-area-inset-bottom, 0px) + 70px); left: 0; right: 0; text-align: center; color: #C9D2FF; font: 500 13px Poppins, "Segoe UI", sans-serif; opacity: 0; }
.lm-splash.gone { opacity: 0; pointer-events: none; }
.lm-opening .lm-panel { animation: lm-rise 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.lm-opening .lm-logo, .lm-opening .lm-chips { animation: lm-in 0.8s 0.3s both; }
.lm-opening .lm-map { animation: lm-in 0.9s both; }
@keyframes lm-rise { from { transform: translateY(100%); } to { transform: none; } }
@keyframes lm-in { from { opacity: 0; } to { opacity: 1; } }

/* phone: the form is a sheet from the bottom, the language as buttons under it */
@media (max-width: 760px) {
	body.lm { overflow: auto; }
	.lm-panel, .lm-pos-center .lm-panel, .lm-pos-left .lm-panel { top: auto; bottom: 0; right: 0; left: 0; transform: none; width: 100%; max-width: none; max-height: 86vh; border-radius: 28px 28px 0 0; padding: 14px 22px calc(env(safe-area-inset-bottom, 0px) + 22px); }
	.lm-white .lm-panel { box-shadow: 0 -20px 40px -20px rgba(8, 16, 64, 0.45); }
	.lm-grab { display: block; }
	.lm-panel h1 { font-size: 24px; }
	.lm-sub { margin-bottom: 16px; }
	.lm-form { gap: 11px; }
	.lm-legend, .lm-chips .lm-hide-s { display: none; }
	.lm-logo { left: 20px; top: calc(env(safe-area-inset-top, 0px) + 22px); height: 28px; }
	.lm-chips { right: 16px; top: calc(env(safe-area-inset-top, 0px) + 18px); }
	.lm-chips select.lm-chip { display: none; }
	.lm-langs { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
	.lm-fade, .lm-splash { transition: none; }
	.lm-live { animation: none; }
}
