/* Premium login page — matches approved fleet SaaS mockup */
:root {
	--nu-blue: #2f6fed;
	--nu-blue-deep: #1d4ed8;
	--nu-blue-soft: #eff6ff;
	--nu-ink: #0f172a;
	--nu-muted: #64748b;
	--nu-line: #e2e8f0;
	--nu-card: #ffffff;
	--nu-input: #f8fafc;
	--nu-shadow: 0 18px 50px rgba(15, 23, 42, .18);
	--nu-radius: 18px;
}

.nu-login[data-theme="dark"] {
	--nu-ink: #f8fafc;
	--nu-muted: #94a3b8;
	--nu-line: #334155;
	--nu-card: #0f172a;
	--nu-input: #1e293b;
	--nu-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}

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

html.nu-login-html,
body.nu-login {
	margin: 0;
	min-height: 100%;
	font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
	color: var(--nu-ink);
	background: #0b1220;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--nu-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }

.nu-login-shell {
	min-height: 100vh;
	min-height: 100dvh;
	display: grid;
	grid-template-columns: minmax(0, 1.55fr) minmax(360px, 0.78fr);
	position: relative;
	overflow: hidden;
}

/* ── Hero ── */
.nu-login-hero {
	position: relative;
	min-height: 100vh;
	min-height: 100dvh;
	background-image: var(--nu-login-bg);
	background-size: cover;
	background-position: center;
	color: #fff;
	isolation: isolate;
}

.nu-login-hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(90deg, rgba(8, 18, 40, .62) 0%, rgba(8, 18, 40, .34) 48%, rgba(8, 18, 40, .18) 100%),
		linear-gradient(180deg, rgba(8, 18, 40, .28) 0%, rgba(8, 18, 40, .12) 40%, rgba(8, 18, 40, .55) 100%);
	z-index: 0;
}

.nu-login-hero-inner {
	position: relative;
	z-index: 1;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: clamp(28px, 4.5vw, 56px);
	max-width: 820px;
}

.nu-login-eyebrow {
	margin: 0 0 18px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(255,255,255,.92);
	display: inline-block;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--nu-blue);
}

.nu-login-headline {
	margin: 0 0 14px;
	font-size: clamp(34px, 4.4vw, 52px);
	line-height: 1.08;
	font-weight: 800;
	letter-spacing: -.03em;
}
.nu-login-headline span { display: block; }

.nu-login-sub {
	margin: 0 0 28px;
	max-width: 420px;
	font-size: 15px;
	line-height: 1.55;
	color: rgba(255,255,255,.88);
	font-weight: 500;
}

.nu-login-features {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 10px;
	max-width: 680px;
}

.nu-login-feature {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	padding: 12px 12px;
	border-radius: 14px;
	background: rgba(255,255,255,.12);
	border: 1px solid rgba(255,255,255,.18);
	backdrop-filter: blur(8px);
	min-height: 74px;
}

.nu-login-feature-ico {
	width: 28px;
	height: 28px;
	border-radius: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(47, 111, 237, .95);
	color: #fff;
	flex-shrink: 0;
}

.nu-login-feature strong {
	display: block;
	font-size: 12px;
	font-weight: 700;
	margin-bottom: 2px;
}
.nu-login-feature span {
	display: block;
	font-size: 11px;
	line-height: 1.35;
	color: rgba(255,255,255,.78);
	font-weight: 500;
}

.nu-login-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 18px 28px;
	margin-bottom: 14px;
}

.nu-login-stat {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}
.nu-login-stat-ico {
	width: 28px;
	height: 28px;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.14);
	border: 1px solid rgba(255,255,255,.2);
}
.nu-login-stat strong {
	display: block;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.1;
}
.nu-login-stat span {
	display: block;
	font-size: 11px;
	color: rgba(255,255,255,.78);
	font-weight: 500;
}

.nu-login-tagline {
	margin: 0;
	font-size: 10px;
	letter-spacing: .14em;
	text-transform: uppercase;
	font-weight: 700;
	color: rgba(255,255,255,.78);
	padding-top: 8px;
	border-top: 2px solid var(--nu-blue);
	display: inline-block;
}

/* ── Right side ── */
.nu-login-side {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 18px 22px 16px;
	background:
		radial-gradient(1200px 500px at 80% -10%, rgba(47,111,237,.18), transparent 55%),
		linear-gradient(180deg, rgba(15,23,42,.55), rgba(15,23,42,.72));
}

.nu-login-topbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.nu-login-icon-btn,
.nu-login-lang-btn {
	height: 34px;
	border-radius: 999px;
	border: 1px solid rgba(255,255,255,.22);
	background: rgba(255,255,255,.12);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 12px;
	cursor: pointer;
	backdrop-filter: blur(8px);
	transition: background .15s, border-color .15s;
}
.nu-login-icon-btn { width: 34px; padding: 0; }
.nu-login-icon-btn:hover,
.nu-login-lang-btn:hover {
	background: rgba(255,255,255,.2);
	border-color: rgba(255,255,255,.35);
	text-decoration: none;
}
.nu-login-lang { position: relative; }
.nu-login-lang-btn { font-size: 12px; font-weight: 600; }
.nu-login-lang-menu {
	position: absolute;
	right: 0;
	top: calc(100% + 6px);
	min-width: 180px;
	max-height: 260px;
	overflow: auto;
	background: #fff;
	border: 1px solid var(--nu-line);
	border-radius: 12px;
	box-shadow: var(--nu-shadow);
	z-index: 20;
	padding: 6px;
}
.nu-login-lang-item {
	display: block;
	padding: 8px 10px;
	border-radius: 8px;
	color: #0f172a;
	font-size: 12.5px;
	font-weight: 600;
}
.nu-login-lang-item:hover,
.nu-login-lang-item.is-active {
	background: var(--nu-blue-soft);
	color: var(--nu-blue-deep);
	text-decoration: none;
}

.nu-login-card-wrap {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 0 18px;
}

.nu-login-card {
	width: min(392px, 100%);
	background: var(--nu-card);
	border-radius: var(--nu-radius);
	box-shadow: var(--nu-shadow);
	border: 1px solid rgba(255,255,255,.55);
	padding: 22px 22px 18px;
}

.nu-login-logo {
	display: flex;
	justify-content: center;
	margin: 2px 0 14px;
}
.nu-login-logo img {
	max-height: 46px;
	width: auto;
	object-fit: contain;
}
.nu-login-logo-fallback {
	display: block;
	text-align: center;
	font-size: 18px;
	font-weight: 800;
	color: var(--nu-ink);
	margin-bottom: 12px;
}

.nu-login-card-head {
	text-align: center;
	margin-bottom: 16px;
}
.nu-login-card-head h2 {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--nu-ink);
}
.nu-login-card-head p {
	margin: 0;
	font-size: 12.5px;
	color: var(--nu-muted);
	font-weight: 500;
}

.nu-login-alert {
	border-radius: 10px;
	padding: 9px 11px;
	font-size: 12px;
	font-weight: 600;
	margin-bottom: 12px;
}
.nu-login-alert.is-err {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}
.nu-login-alert.is-ok {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.nu-login-form { display: grid; gap: 12px; }

.nu-login-field label {
	display: block;
	font-size: 12px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 5px;
}
.nu-login[data-theme="dark"] .nu-login-field label { color: #cbd5e1; }

.nu-login-input {
	position: relative;
	display: flex;
	align-items: center;
}
.nu-login-input-ico {
	position: absolute;
	left: 12px;
	color: #94a3b8;
	display: inline-flex;
	pointer-events: none;
}
.nu-login-control {
	width: 100%;
	height: 42px;
	border: 1px solid var(--nu-line);
	border-radius: 11px;
	background: var(--nu-input);
	padding: 0 40px 0 38px;
	color: var(--nu-ink);
	outline: none;
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.nu-login-control:hover { border-color: #cbd5e1; background: #fff; }
.nu-login[data-theme="dark"] .nu-login-control:hover { background: #243247; }
.nu-login-control:focus {
	border-color: var(--nu-blue);
	background: #fff;
	box-shadow: 0 0 0 3px rgba(47,111,237,.16);
}
.nu-login[data-theme="dark"] .nu-login-control:focus { background: #1e293b; }

.nu-login-pass-toggle {
	position: absolute;
	right: 8px;
	width: 30px;
	height: 30px;
	border: 0;
	background: transparent;
	color: #94a3b8;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.nu-login-pass-toggle:hover { color: var(--nu-blue); background: var(--nu-blue-soft); }

.nu-login-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: -2px;
}
.nu-login-remember {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	user-select: none;
}
.nu-login-remember input {
	width: 15px;
	height: 15px;
	accent-color: var(--nu-blue);
	margin: 0;
}
.nu-login-forgot {
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
}

.nu-login-submit {
	width: 100%;
	height: 44px;
	border: 0;
	border-radius: 12px;
	background: linear-gradient(145deg, #3b82f6, #1d4ed8);
	color: #fff;
	font-size: 14px;
	font-weight: 750;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	box-shadow: 0 10px 22px rgba(37,99,235,.28);
	transition: transform .12s, box-shadow .12s, filter .12s;
}
.nu-login-submit:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 14px 26px rgba(37,99,235,.34);
}
.nu-login-submit:focus-visible {
	outline: 2px solid #93c5fd;
	outline-offset: 2px;
}

.nu-login-register {
	margin: 2px 0 0;
	text-align: center;
	font-size: 12px;
	font-weight: 600;
}

.nu-login-apps { margin-top: 14px; }
.nu-login-apps-divider {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	color: #94a3b8;
	font-size: 11px;
	font-weight: 600;
}
.nu-login-apps-divider::before,
.nu-login-apps-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: var(--nu-line);
}
.nu-login-apps-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}
.nu-login-store {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	border-radius: 10px;
	background: #0f172a;
	overflow: hidden;
	padding: 6px 8px;
}
.nu-login-store img {
	max-height: 28px;
	width: auto;
	margin: 0 auto;
}
.nu-login-store:hover { filter: brightness(1.08); text-decoration: none; }

.nu-login-help {
	margin: 14px 0 0;
	text-align: center;
	font-size: 12px;
	color: var(--nu-muted);
	font-weight: 500;
}
.nu-login-help a { font-weight: 700; }

.nu-login-footer {
	text-align: center;
	padding-top: 4px;
}
.nu-login-footer-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}
.nu-login-footer-links a,
.nu-login-footer-links span {
	color: rgba(255,255,255,.78);
	font-size: 11px;
	font-weight: 600;
}
.nu-login-footer-links a:hover { color: #fff; }
.nu-login-copy {
	margin: 0;
	color: rgba(255,255,255,.58);
	font-size: 10.5px;
	font-weight: 500;
}

.nu-login-external { margin-top: 8px; text-align: center; }

/* Captcha passthrough */
.nu-login-form .g-recaptcha,
.nu-login-form .captcha,
.nu-login-form iframe { max-width: 100%; }

/* ── Responsive ── */
@media (max-width: 1100px) {
	.nu-login-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nu-login-shell { grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.9fr); }
}

@media (max-width: 900px) {
	.nu-login-shell {
		grid-template-columns: 1fr;
	}
	.nu-login-hero {
		min-height: auto;
		padding-bottom: 0;
	}
	.nu-login-hero-inner {
		padding: 24px 20px 28px;
		gap: 28px;
	}
	.nu-login-side {
		min-height: auto;
		background: linear-gradient(180deg, #0b1220, #111827);
		padding: 16px 16px 20px;
	}
	.nu-login-card-wrap {
		padding: 4px 0 16px;
	}
	.nu-login-card {
		width: min(420px, 100%);
	}
	.nu-login-stats { gap: 14px 18px; }
}

@media (max-width: 560px) {
	.nu-login-features { grid-template-columns: 1fr 1fr; }
	.nu-login-apps-row { grid-template-columns: 1fr; }
	.nu-login-card { padding: 18px 16px 16px; border-radius: 16px; }
	.nu-login-headline { font-size: 30px; }
}
