/* ============================================================================
 * Centova Cast UI refresh - login page (login.tpl) override layer.
 * Loads AFTER theme/login.css. Scoped to login.tpl's markup, whose #footer /
 * #login_block differ from the panel's. Additive; removes nothing.
 * ========================================================================== */

:root {
	--cc-page:   linear-gradient(145deg, #eef3f9 0%, #e9eef5 30%, #f5f3f0 55%, #eef2f7 100%);
	--cc-glass:  rgba(255, 255, 255, 0.82);
	--cc-solid:  #ffffff;
	--cc-bd:     rgba(190, 205, 225, 0.55);
	--cc-text:   #1e293b;
	--cc-mut:    #64748b;
	--cc-rim:    rgba(255, 255, 255, 0.9);
	--cc-accent: #3b5bdb;
	--cc-shadow: 0 12px 40px rgba(50, 70, 100, 0.16);
}
html[data-cc-theme="dark"] {
	--cc-page:   linear-gradient(145deg, #0f1419 0%, #161b26 35%, #1a1f2e 60%, #0d1117 100%);
	--cc-glass:  rgba(24, 29, 43, 0.85);
	--cc-solid:  #1a2030;
	--cc-bd:     rgba(255, 255, 255, 0.09);
	--cc-text:   #f1f5f9;
	--cc-mut:    #94a3b8;
	--cc-rim:    rgba(255, 255, 255, 0.07);
	--cc-accent: #818cf8;
	--cc-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

body { background: var(--cc-page) fixed; background-color: transparent; color: var(--cc-text); }
body, input, select, textarea, td, th {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Tahoma, Arial, sans-serif;
}
a:link, a:visited, a:active, a:hover { color: var(--cc-accent); font-weight: 500; }

/* the login card (was login-bg.png) */
#login_block {
	background-image: none;
	background: var(--cc-glass);
	-webkit-backdrop-filter: blur(28px) saturate(180%);
	backdrop-filter: blur(28px) saturate(180%);
	border: 1px solid var(--cc-bd);
	border-radius: 18px;
	box-shadow: var(--cc-shadow), inset 0 1px 0 var(--cc-rim);
	box-sizing: border-box;
	padding: 24px 28px;
	height: auto;
	min-height: 220px;
}
#login_table th { color: var(--cc-mut); }
.loginfield {
	border: 1px solid var(--cc-bd);
	border-radius: 8px;
	background: var(--cc-solid);
	color: var(--cc-text);
	padding: 5px 8px;
}
.loginfield:focus {
	outline: none;
	border-color: var(--cc-accent);
	box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.14);
}

/* the PNG separator -> hairline rule */
.login_sep {
	background-image: none;
	background: var(--cc-bd);
	height: 1px;
}

#footer {
	background-image: none;
	background: var(--cc-glass);
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	border-top: 1px solid var(--cc-bd);
}
#footer, #footer .content { color: var(--cc-mut); }
#footer a:link, #footer a:visited, #footer a:active, #footer a:hover { color: var(--cc-accent); }
#loginerror { color: var(--cc-accent); }
#loginerror.error, .error { color: #e24b4a; }

/* logo: replace the gray-box "Centova Cast" PNG with the Exodus Edition
   wordmark.  Themed: dark ink on the light card, light ink on the dark card. */
#login_logo {
	display: block;
	margin: 4px auto 16px;
	width: 230px;
	height: auto;
	content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 40"><g fill="none" stroke="%233b5bdb" stroke-width="2.5" stroke-linecap="round"><circle cx="15" cy="27" r="2.6" fill="%233b5bdb" stroke="none"/><path d="M9 27a6 6 0 0 1 12 0"/><path d="M4.5 27a10.5 10.5 0 0 1 21 0"/></g><text x="34" y="27" font-family="-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,sans-serif" font-size="19" font-weight="600" fill="%231e293b" letter-spacing="-.3">Centova<tspan fill="%233b5bdb" font-weight="400">: Exodus Edition</tspan></text></svg>');
}
html[data-cc-theme="dark"] #login_logo {
	content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 40"><g fill="none" stroke="%23818cf8" stroke-width="2.5" stroke-linecap="round"><circle cx="15" cy="27" r="2.6" fill="%23818cf8" stroke="none"/><path d="M9 27a6 6 0 0 1 12 0"/><path d="M4.5 27a10.5 10.5 0 0 1 21 0"/></g><text x="34" y="27" font-family="-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,sans-serif" font-size="19" font-weight="600" fill="%23f1f5f9" letter-spacing="-.3">Centova<tspan fill="%23818cf8" font-weight="400">: Exodus Edition</tspan></text></svg>');
}
