/*#################################################*/
/* PANTALLA DE ENTRADA - designs of the login (inc/inc_login_screen.php)
/* Same tokens as style.modern.css; the color of the brand is --ls-brand (inline), the photo --ls-bg (inline).
/* Every rule starts with body#login.ls so the theme options of the old login (position, opacity) do not move it.
/*#################################################*/

body#login.ls {
	display: block;
	background: #f4f6f9 none;
	min-height: 100vh;
	margin: 0;
	overflow-x: hidden;
}
body#login.ls .ls-page {
	--ls-brand: var(--gs-primary, #2b82d4);
	--ls-on: #ffffff;
	--ls-ink: var(--ls-brand);
	--ls-text: var(--gs-text, #2f3b4a);
	--ls-muted: var(--gs-text-muted, #6b7785);
	--ls-border: var(--gs-border, #e1e6ec);
	--ls-soft: var(--gs-surface-2, #f4f6f9);
	min-height: 100vh;
	display: flex;
	position: relative;
	color: var(--ls-text);
}
body#login.ls .ls-main {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 20px;
	position: relative;
	z-index: 1;
	box-sizing: border-box;
}
body#login.ls .wrapper { display: block; width: 100%; max-width: 420px; }
body#login.ls .wrapper .inner-wrapper {
	width: auto;
	margin: 0;
	float: none !important;
	opacity: 1 !important;
	padding: 30px;
	box-sizing: border-box;
	position: relative;
	border-radius: 14px;
	background: #ffffff;
	box-shadow: var(--gs-shadow-lg, 0 18px 40px rgba(16, 24, 40, 0.18));
}
body#login.ls .logo-block { float: none !important; display: flex !important; justify-content: center; }
body#login.ls .logo { max-width: 260px; max-height: 80px; margin-bottom: 22px; }
body#login.ls .content-block input.button,
body#login.ls input[type=submit].button {
	background: var(--ls-brand) !important;
	border-color: var(--ls-brand) !important;
	color: var(--ls-on) !important;
	box-shadow: 0 6px 16px color-mix(in srgb, var(--ls-brand) 30%, transparent);
}
body#login.ls input.inputbox:focus { border-color: var(--ls-brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ls-brand) 18%, transparent); }
body#login.ls .recover-register-block li a:hover { color: var(--ls-ink); }
body#login.ls .footer.text { height: auto; text-align: center; font-size: 12px; color: var(--ls-muted); padding-top: 8px; }

/* title over the form (A, D) */
body#login.ls .ls-hello { margin: 0 0 20px; }
body#login.ls .ls-hello h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.3px; color: var(--ls-text); }
body#login.ls .ls-hello p { margin: 4px 0 0; font-size: 13px; color: var(--ls-muted); }

/* route of the maps */
body#login.ls .ls-drive { stroke: var(--ls-brand); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 8 10; }
body#login.ls .ls-drive.ls-white { stroke: #ffffff; stroke-width: 4; }
body#login.ls .ls-route-soft { stroke: var(--ls-brand); stroke-width: 5; stroke-linecap: round; opacity: .35; }
body#login.ls .ls-dot { fill: var(--ls-brand); }
body#login.ls .ls-pulse { opacity: 0; }
body#login.ls .ls-anim .ls-drive, body#login.ls .ls-side-map .ls-drive { animation: ls-drive 3s linear infinite; }
body#login.ls .ls-anim .ls-pulse { animation: ls-pulse 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ls-drive { to { stroke-dashoffset: -36; } }
@keyframes ls-pulse { 0% { opacity: .55; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }

/* ---------- A: color (or photo) of the brand with its phrase, form on white */
body#login.ls .ls-A .ls-side {
	flex: 1.15 1 0;
	min-width: 0;
	position: relative;
	overflow: hidden;
	padding: 48px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
	color: var(--ls-on);
	background: linear-gradient(150deg, color-mix(in srgb, var(--ls-brand) 92%, #000000), color-mix(in srgb, var(--ls-brand) 70%, #0b1a2b));
	box-sizing: border-box;
}
body#login.ls .ls-A .ls-side.photo { color: #ffffff; background: linear-gradient(0deg, rgba(10, 20, 30, .62), rgba(10, 20, 30, .22)), var(--ls-bg) center center / cover no-repeat; }
body#login.ls .ls-A .ls-side-map { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .22; }
body#login.ls .ls-A .ls-side > *:not(.ls-side-map) { position: relative; }
body#login.ls .ls-A .ls-side-logo { align-self: flex-start; background: #ffffff; border-radius: 10px; padding: 8px 12px; }
body#login.ls .ls-A .ls-side-logo img { display: block; max-height: 48px; max-width: 220px; }
body#login.ls .ls-A .ls-claim h2 { font-size: 36px; line-height: 1.15; margin: 0 0 12px; font-weight: 800; letter-spacing: -0.5px; max-width: 14ch; color: inherit; }
body#login.ls .ls-A .ls-claim p { margin: 0; font-size: 16px; line-height: 1.5; max-width: 36ch; opacity: .9; }
body#login.ls .ls-A .ls-pills { display: flex; flex-wrap: wrap; gap: 8px; }
body#login.ls .ls-A .ls-pills span { font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: 6px 12px; }
body#login.ls .ls-A .ls-main { background: #ffffff; }
body#login.ls .ls-A .inner-wrapper { box-shadow: none; padding: 0; }
body#login.ls .ls-A .logo-block { display: none !important; }

/* ---------- B: drawn map, form on a light card */
body#login.ls .ls-B { background: #e9eef4; overflow: hidden; }
body#login.ls .ls-B .ls-map { position: absolute; inset: 0; width: 100%; height: 100%; }
body#login.ls .ls-B .inner-wrapper { background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px; }

/* ---------- C: card of today with a band of the color of the brand */
body#login.ls .ls-C { background-image: var(--ls-bg, none), linear-gradient(135deg, #f3f6fa 0%, #e6edf6 55%, #dbe6f3 100%); background-size: cover, cover; background-position: center, center; }
body#login.ls .ls-C .inner-wrapper { overflow: hidden; padding-top: 34px; }
body#login.ls .ls-C .ls-band { position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ls-brand); }

/* ---------- D: form, and notices, apps and help of the brand */
body#login.ls .ls-D { background: #ffffff; }
body#login.ls .ls-D .ls-main { background: #ffffff; }
body#login.ls .ls-D .inner-wrapper { box-shadow: none; padding: 0; }
body#login.ls .ls-D .logo-block { justify-content: flex-start; }
body#login.ls .ls-info {
	flex: 1 1 0;
	min-width: 0;
	background: var(--ls-soft);
	border-left: 1px solid var(--ls-border);
	padding: 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	box-sizing: border-box;
}
body#login.ls .ls-notes { display: grid; gap: 10px; }
body#login.ls .ls-note { display: none; background: #ffffff; border: 1px solid var(--ls-border); border-radius: 12px; padding: 18px 20px; }
body#login.ls .ls-note.on { display: block; animation: ls-in .35s ease; }
@keyframes ls-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
body#login.ls .ls-note b { display: block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--ls-ink); }
body#login.ls .ls-note h3 { margin: 6px 0 6px; font-size: 17px; color: var(--ls-text); }
body#login.ls .ls-note p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ls-muted); }
body#login.ls .ls-dots { display: flex; gap: 6px; justify-content: center; }
body#login.ls .ls-dots i { width: 7px; height: 7px; border-radius: 50%; background: #c9d2dc; display: block; }
body#login.ls .ls-dots i.on { background: var(--ls-brand); }
body#login.ls .ls-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
body#login.ls .ls-app { background: #ffffff; border: 1px solid var(--ls-border); border-radius: 12px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; color: var(--ls-text); text-decoration: none; }
body#login.ls .ls-app:hover { border-color: var(--ls-brand); }
body#login.ls .ls-app i { width: 36px; height: 36px; flex: none; border-radius: 9px; background: var(--ls-brand); color: var(--ls-on); display: grid; place-items: center; font-style: normal; font-size: 15px; }
body#login.ls .ls-app small { display: block; font-weight: 400; font-size: 12px; color: var(--ls-muted); }
body#login.ls .ls-help { font-size: 13px; color: var(--ls-muted); }
body#login.ls .ls-help b { color: var(--ls-ink); }

/* preview inside Marca: nothing reacts */
body#login.ls .ls-preview .ls-main { pointer-events: none; }
body#login.ls .ls-preview .ls-app { pointer-events: none; }

/* phones and narrow windows: one column */
@media (max-width: 860px) {
	body#login.ls .ls-page { flex-direction: column; }
	body#login.ls .ls-A .ls-side { flex: none; padding: 24px; gap: 14px; }
	body#login.ls .ls-A .ls-claim h2 { font-size: 24px; }
	body#login.ls .ls-A .ls-claim p, body#login.ls .ls-A .ls-pills { display: none; }
	body#login.ls .ls-main { flex: none; padding: 24px 16px; }
	body#login.ls .ls-info { flex: none; border-left: 0; border-top: 1px solid var(--ls-border); padding: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
	body#login.ls .ls-drive, body#login.ls .ls-pulse, body#login.ls .ls-note.on { animation: none !important; }
}
