/* Vitalytics — frontend-stijl.
   De app-shell (sidebar/topbar/kaarten/charts) komt uit het gedeelde
   design-system; hier alleen de publieke (uitgelogde) landings- en
   inlogschermen die géén sidebar tonen. */

@import url("../shell.css");

/* -------------------------------------------------- Publiek (uitgelogd) shell */

body.vit-public
{
	background:
		radial-gradient(1100px 520px at 15% -10%, #123056 0%, rgba(18,48,86,0) 60%),
		linear-gradient(180deg, #0c2340 0%, #0f2a4d 100%);
	min-height: 100vh;
	color: #eaf0f6;
}

.vit-public-main
{
	max-width: 1080px;
	margin: 0 auto;
	padding: 30px 24px 80px;
}

/* Landings-hero */
.vit-hero { max-width: 640px; }
.vit-hero h1 { font-size: 40px; line-height: 1.1; margin: 12px 0 16px; color: #fff; letter-spacing: -.02em; }
.vit-hero .vit-lead { font-size: 19px; color: #b7c5d6; }
.vit-hero p { color: #93a7bd; }

.vit-button
{
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 18px;
	padding: 12px 24px 12px 20px;
	background: var(--vit-gradient);
	color: #fff;
	border: 0;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(31,111,196,.4);
	transition: box-shadow .15s, transform .1s, background .15s;
}
.vit-button::before { font-family: "Material Icons"; font-size: 19px; content: "login"; }
.vit-button:hover { background: var(--vit-gradient-hover); box-shadow: 0 10px 26px rgba(22,166,166,.45); }
.vit-button:active { transform: translateY(1px); }

/* Platte tabelstructuur van het WebForm-component naar normale flow. */
.vit-hero-form table, .vit-hero-form tbody, .vit-hero-form tr,
.vit-hero-form td, .vit-hero-form th, .vit-hero-form fieldset
{ display: block; width: auto; margin: 0; padding: 0; border: 0; }
.vit-hero-form p { margin: 0 0 12px; }

/* -------------------------------------------------------------- Inlogscherm */

.vit-login
{
	max-width: 400px;
	margin: 4vh auto 48px;
	background: var(--vit-card);
	border: 1px solid var(--vit-border);
	border-radius: var(--vit-radius);
	padding: 32px 30px;
	color: var(--vit-ink);
	box-shadow: 0 20px 60px rgba(4,14,30,.4);
}
.vit-login .vit-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.vit-login .vit-logo-img { width: 172px; }
.vit-login h1 { margin: 0 0 4px; font-size: 22px; text-align: center; }
.vit-login .vit-lead { font-size: 15px; margin: 0 0 20px; color: var(--vit-muted); text-align: center; }

/* WebLoginForm (table-form) platslaan tot net gestapeld formulier. */
.vit-loginform table, .vit-loginform tbody, .vit-loginform tr,
.vit-loginform td, .vit-loginform th
{ display: block; width: auto; padding: 0; border: 0; }
.vit-loginform fieldset { border: 0; margin: 0; padding: 0; }
.vit-loginform th
{
	text-align: left; font-weight: 500; font-size: 13px;
	color: var(--vit-muted); margin: 14px 0 6px;
}
.vit-loginform input[type="text"],
.vit-loginform input[type="password"]
{
	width: 100%; padding: 11px 13px;
	border: 1px solid var(--vit-border); border-radius: 10px; font-size: 15px;
}
.vit-loginform input[type="text"]:focus,
.vit-loginform input[type="password"]:focus
{ outline: none; border-color: var(--vit-blue); box-shadow: 0 0 0 3px rgba(31,111,196,.15); }
.vit-loginform input[type="submit"]
{
	width: 100%; margin-top: 22px; padding: 12px 18px;
	background: var(--vit-gradient); color: #fff; border: 0; border-radius: 10px;
	font-size: 15px; font-weight: 600; cursor: pointer;
	box-shadow: 0 8px 20px rgba(31,111,196,.3);
	transition: box-shadow .15s, transform .1s, background .15s;
}
.vit-loginform input[type="submit"]:hover { background: var(--vit-gradient-hover); box-shadow: 0 10px 24px rgba(22,166,166,.35); }
.vit-loginform input[type="submit"]:active { transform: translateY(1px); }
.vit-loginform a
{ display: inline-block; margin-top: 16px; color: var(--vit-blue); font-size: 14px; text-decoration: none; }
.vit-loginform a:hover { text-decoration: underline; }
.vit-loginform #tr_error td, .vit-loginform .error
{ color: var(--vit-down); font-size: 14px; margin-bottom: 8px; }

/* ------------------------------------------------------------------ Select2 */
/* Select2 (frontend/header.inc.php + frontend/script.js) vervangt alle kale
   <select>-elementen; hier alleen de visuele afstemming op de bestaande
   invoervelden (rand/radius/kleur uit shell.css) — de widget zelf komt van
   de CDN. */

/* Vaste hoogte (42px) gelijk aan .vit-formcard input/select (shell.css,
   10px padding + 1px rand + browser-eigen tekstveld-content-hoogte bij
   font-size 15px) — select2's eigen "normal" tekst-line-height wijkt net
   genoeg af van die van een <input> om er via padding/line-height alleen
   niet 1:1 op uit te komen, vandaar een expliciete hoogte + flex-centrering
   i.p.v. gokken met line-height. */
.select2-container--default .select2-selection--single
{
	height: 42px;
	box-sizing: border-box;
	display: flex;
	align-items: center;
	padding: 0 12px;
	border: 1px solid var(--vit-border);
	border-radius: 10px;
	background: #fff;
}
.select2-container--default .select2-selection--single .select2-selection__rendered
{ padding: 0 20px 0 0; line-height: normal; color: var(--vit-ink); font-size: 15px; }
.select2-container--default .select2-selection--single .select2-selection__arrow
{ height: 100%; top: 0; right: 6px; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single
{ border-color: var(--vit-blue); box-shadow: 0 0 0 3px rgba(31,111,196,.15); }
.select2-dropdown
{ border-color: var(--vit-border); border-radius: 10px; overflow: hidden; }
.select2-container--default .select2-results__option--highlighted[aria-selected]
{ background: var(--vit-blue); }
.select2-container--default .select2-search--dropdown .select2-search__field
{ border: 1px solid var(--vit-border); border-radius: 8px; padding: 6px 8px; }

/* Filterbalk: zelfde vaste breedte als de vroegere kale <select class="vit-filter-select">. */
.vit-filter-bar .select2-container
{ flex: 0 0 auto; min-width: 180px; cursor: pointer; }

/* AVG-toestemming-modal: de kale <select> stond al op width:100% (shell.css). */
.vit-avg-modal-box .select2-container
{ width: 100% !important; margin-top: 4px; }
