/* Clear Fleet Login — premium split-screen, login-first */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&family=Sora:wght@500;600;700&display=swap');

body#login.theme-clear-fleet {
	--cf-accent: #0f766e;
	--cf-accent-bright: #14b8a6;
	--cf-ink: #0b1220;
	--cf-muted: #64748b;
	--cf-line: rgba(148, 163, 184, 0.35);
	--cf-font: "Instrument Sans", "NRT-Bd", "Segoe UI", sans-serif;
	--cf-display: "Sora", "Instrument Sans", sans-serif;

	margin: 0;
	min-height: 100%;
	height: auto !important;
	overflow: auto !important;
	font-family: var(--cf-font) !important;
	color: var(--cf-ink);
	background: #0b1220 !important;
	background-image: none !important;
	display: block !important;
}

body#login.theme-clear-fleet *:not(i):not(.fa):not(svg):not(path) {
	font-family: var(--cf-font) !important;
}

body#login.theme-clear-fleet #loading_panel {
	background: #0b1220 !important;
}

/* Hide legacy wrapper chrome when using split shell */
body#login.theme-clear-fleet .wrapper {
	display: block !important;
	padding: 0 !important;
	height: 100%;
	min-height: 100vh;
}

body#login.theme-clear-fleet .cf-login {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	min-height: 100vh;
	width: 100%;
}

/* ===== Hero / brand side ===== */
body#login.theme-clear-fleet .cf-login__hero {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(900px 500px at 20% 10%, rgba(20, 184, 166, 0.35) 0%, transparent 55%),
		radial-gradient(700px 400px at 80% 80%, rgba(2, 132, 199, 0.28) 0%, transparent 50%),
		linear-gradient(160deg, #07111f 0%, #0b1220 45%, #102033 100%);
	color: #e2e8f0;
	padding: 48px 48px 40px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

body#login.theme-clear-fleet .cf-login__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 40% 30%, #000 20%, transparent 75%);
	pointer-events: none;
}

body#login.theme-clear-fleet .cf-login__routes {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0.55;
	pointer-events: none;
}
body#login.theme-clear-fleet .cf-login__routes path {
	fill: none;
	stroke: #14b8a6;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-dasharray: 8 10;
	animation: cfDash 18s linear infinite;
}
body#login.theme-clear-fleet .cf-login__routes path:nth-child(2) {
	stroke: #38bdf8;
	stroke-width: 2;
	animation-duration: 26s;
	opacity: 0.7;
}
body#login.theme-clear-fleet .cf-login__routes path:nth-child(3) {
	stroke: #94a3b8;
	stroke-width: 1.5;
	animation-duration: 32s;
	opacity: 0.45;
}

@keyframes cfDash {
	to { stroke-dashoffset: -400; }
}

body#login.theme-clear-fleet .cf-login__hero-top,
body#login.theme-clear-fleet .cf-login__hero-copy {
	position: relative;
	z-index: 1;
}

body#login.theme-clear-fleet .cf-login__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 30px;
	padding: 0 12px;
	border-radius: 999px;
	background: rgba(20, 184, 166, 0.15);
	border: 1px solid rgba(20, 184, 166, 0.35);
	color: #5eead4;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	margin-bottom: 28px;
}
body#login.theme-clear-fleet .cf-login__badge i {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #14b8a6;
	box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.25);
}

body#login.theme-clear-fleet .cf-login__hero h1 {
	font-family: var(--cf-display) !important;
	font-size: clamp(32px, 4vw, 46px);
	line-height: 1.1;
	letter-spacing: -0.03em;
	margin: 0 0 14px;
	color: #f8fafc;
	max-width: 12ch;
}
body#login.theme-clear-fleet .cf-login__hero p {
	margin: 0;
	max-width: 36ch;
	font-size: 16px;
	line-height: 1.55;
	color: #94a3b8;
}

body#login.theme-clear-fleet .cf-login__stats {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-top: 40px;
}
body#login.theme-clear-fleet .cf-login__stat {
	padding: 14px;
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.08);
}
body#login.theme-clear-fleet .cf-login__stat span {
	display: block;
	font-size: 11px;
	color: #94a3b8;
	margin-bottom: 4px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-weight: 600;
}
body#login.theme-clear-fleet .cf-login__stat strong {
	font-family: var(--cf-display) !important;
	font-size: 18px;
	color: #f1f5f9;
}

/* ===== Form side ===== */
body#login.theme-clear-fleet .cf-login__panel {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 28px;
	background:
		radial-gradient(700px 400px at 90% 0%, rgba(204, 251, 241, 0.55) 0%, transparent 55%),
		#f4f7fb;
}

body#login.theme-clear-fleet .inner-wrapper {
	width: min(420px, 100%) !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

body#login.theme-clear-fleet .cf-login__card {
	background: #fff;
	border: 1px solid rgba(226, 232, 240, 0.9);
	border-radius: 24px;
	padding: 32px 32px 24px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

body#login.theme-clear-fleet .logo-block {
	float: none !important;
	text-align: left;
	margin: 0 0 8px;
}
body#login.theme-clear-fleet .logo {
	margin: 0 0 18px !important;
	max-width: 160px;
	display: block;
}

body#login.theme-clear-fleet .cf-login__title {
	font-family: var(--cf-display) !important;
	font-size: 24px;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
	color: var(--cf-ink);
}
body#login.theme-clear-fleet .cf-login__sub {
	margin: 0 0 22px;
	color: var(--cf-muted);
	font-size: 14px;
	line-height: 1.45;
}

body#login.theme-clear-fleet .wrapper .inner-wrapper .content {
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
}
body#login.theme-clear-fleet .content-block {
	height: auto !important;
	display: none !important;
}
body#login.theme-clear-fleet .content-block.is-active {
	display: block !important;
	animation: cfFade 0.28s ease;
}
@keyframes cfFade {
	from { opacity: 0; transform: translateY(6px); }
	to { opacity: 1; transform: translateY(0); }
}

body#login.theme-clear-fleet .row3 {
	margin-bottom: 12px !important;
	display: block !important;
	font-size: inherit !important;
	line-height: normal !important;
	position: relative !important;
	overflow: visible !important;
	/* Prevent floated input.icon from collapsing the row (password row then steals clicks) */
	min-height: 50px;
}

body#login.theme-clear-fleet input.inputbox {
	float: none !important;
	display: block !important;
	position: relative !important;
	z-index: 2 !important;
	height: 50px !important;
	border-radius: 14px !important;
	border: 1px solid #e2e8f0 !important;
	background: #f8fafc !important;
	padding-left: 48px !important;
	font-size: 15px !important;
	color: var(--cf-ink) !important;
	width: 100% !important;
	box-sizing: border-box !important;
	pointer-events: auto !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
body#login.theme-clear-fleet input.inputbox.icon {
	float: none !important;
	width: 100% !important;
	height: 50px !important;
	background-position: 16px center !important;
	background-repeat: no-repeat !important;
	background-size: 16px 16px !important;
}
body#login.theme-clear-fleet input.inputbox:hover,
body#login.theme-clear-fleet input.inputbox:focus {
	background-color: #fff !important;
	border-color: var(--cf-accent-bright) !important;
	box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
	z-index: 3 !important;
}

/* Password reveal must not cover the whole field row */
body#login.theme-clear-fleet .content-block .reveal {
	z-index: 4 !important;
	pointer-events: auto !important;
}

body#login.theme-clear-fleet .wrapper .content-block input.button {
	background: linear-gradient(180deg, #14b8a6 0%, #0f766e 100%) !important;
	border: none !important;
	border-radius: 14px !important;
	height: 50px !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	letter-spacing: 0.01em;
	box-shadow: 0 14px 28px rgba(15, 118, 110, 0.28);
	margin-top: 4px;
}
body#login.theme-clear-fleet input.button:hover {
	filter: brightness(1.05);
	opacity: 1 !important;
}

body#login.theme-clear-fleet .submit-btn {
	position: relative;
}
body#login.theme-clear-fleet .submit-btn .remember-block {
	top: 17px !important;
	right: 16px !important;
}

body#login.theme-clear-fleet .recover-register-block {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
	margin: 20px 0 4px !important;
	padding: 0 !important;
	text-align: center;
}
body#login.theme-clear-fleet .recover-register-block li {
	display: inline-block;
	list-style: none;
}
body#login.theme-clear-fleet .recover-register-block li a {
	color: var(--cf-accent) !important;
	font-weight: 700 !important;
	font-size: 13px;
}
body#login.theme-clear-fleet .recover-register-block li a:hover {
	color: #0f766e !important;
	text-decoration: underline;
}
body#login.theme-clear-fleet .recover-register-block span {
	color: #94a3b8;
	font-size: 12px;
}

body#login.theme-clear-fleet .footer {
	border-top: 1px solid #e2e8f0 !important;
	margin-top: 18px;
	padding-top: 14px !important;
	height: auto !important;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
body#login.theme-clear-fleet .footer .float-left,
body#login.theme-clear-fleet .footer .float-right {
	float: none !important;
}
body#login.theme-clear-fleet .footer .mobile-v,
body#login.theme-clear-fleet .footer input.button.mobile-v {
	color: var(--cf-muted) !important;
	font-weight: 600;
	background: none !important;
	height: auto !important;
	box-shadow: none !important;
}
body#login.theme-clear-fleet .footer input.button.mobile-v:hover {
	color: var(--cf-accent) !important;
}
body#login.theme-clear-fleet #system_language,
body#login.theme-clear-fleet .ms-choice {
	height: 34px !important;
	border-radius: 10px !important;
	border: 1px solid #e2e8f0 !important;
	background: #f8fafc !important;
}

body#login.theme-clear-fleet .server-select { margin-bottom: 12px; }
body#login.theme-clear-fleet .registration-closed {
	border-radius: 12px !important;
	margin-bottom: 12px !important;
}

body#login.theme-clear-fleet .ui-dialog {
	border-radius: 16px !important;
	overflow: visible;
	border: 1px solid #e2e8f0 !important;
	box-shadow: 0 28px 70px rgba(15, 23, 42, 0.25) !important;
}
body#login.theme-clear-fleet .ui-dialog .ui-dialog-titlebar {
	position: relative !important;
	background: #0b1220 !important;
	color: #fff !important;
	border: none !important;
	padding: 14px 52px 14px 18px !important;
	min-height: 52px !important;
	box-sizing: border-box !important;
}
body#login.theme-clear-fleet .ui-dialog .ui-dialog-titlebar-close {
	position: absolute !important;
	top: 50% !important;
	right: 12px !important;
	width: 32px !important;
	height: 32px !important;
	transform: translateY(-50%) !important;
	border-radius: 10px !important;
	background: rgba(255,255,255,0.12) !important;
	border: 1px solid rgba(255,255,255,0.16) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	margin: 0 !important;
	padding: 0 !important;
}
body#login.theme-clear-fleet .ui-dialog .ui-dialog-titlebar-close .ui-icon {
	background: url(../images/close.svg) center / 14px 14px no-repeat !important;
	filter: invert(1) !important;
	width: 14px !important;
	height: 14px !important;
	margin: 0 !important;
	position: static !important;
}

@media (max-width: 960px) {
	body#login.theme-clear-fleet .cf-login {
		grid-template-columns: 1fr;
	}
	body#login.theme-clear-fleet .cf-login__hero {
		min-height: 220px;
		padding: 28px 24px;
	}
	body#login.theme-clear-fleet .cf-login__hero h1 {
		max-width: none;
		font-size: 28px;
	}
	body#login.theme-clear-fleet .cf-login__stats { display: none; }
	body#login.theme-clear-fleet .cf-login__panel {
		padding: 20px 16px 32px;
	}
	body#login.theme-clear-fleet .cf-login__card {
		padding: 24px 20px 18px;
		border-radius: 20px;
	}
}
