/* ==========================================================
   Customer ESP login - LoadMaster image set
   ----------------------------------------------------------
   BRANDING: change only the values in :root below and
   replace espblank.png with the customer logo (PNG, transparent
   background, about 480x120 px). Everything else follows.
   ========================================================== */
:root
{
	/* Salzburg Verkehr - colours taken from the logo */
	--brand:          #810ca8;   /* primary colour: button, links (purple) */
	--brand-dark:     #650985;   /* button hover                           */
	--brand-contrast: #ffffff;   /* text on primary colour                 */
	--accent:         #009cc7;   /* focus ring (cyan)                      */
	--c-red:          #ec3b50;
	--c-orange:       #ed5c01;
	--c-lime:         #bbd702;
	--c-cyan:         #009cc7;
	--error:          #b3202f;   /* login failed messages                  */
	--page:           #f3f4f6;   /* light page background                  */
	--card:           #ffffff;
	--text:           #111212;
	--muted:          #5f6368;
	--border:         #d6d9de;
	--field:          #fafafb;
	--radius:         10px;
	--font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html, body { height: 100%; }

body
{
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.45;
	color: var(--text);
	background-color: var(--page);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	padding: 24px 16px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- card ---------- */
.card
{
	position: relative;
	overflow: hidden;
	width: 100%;
	max-width: 400px;
	background: var(--card);
	border-radius: var(--radius);
	border: 1px solid #e6e8eb;
	box-shadow: 0 12px 32px rgba(17, 18, 18, 0.08);
	padding: 40px 36px 28px;
}

/* colour stripe from the logo ribbons */
.card::before
{
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 5px;
	background: linear-gradient(90deg, var(--brand) 0 20%, var(--c-red) 20% 40%, var(--c-orange) 40% 60%, var(--c-lime) 60% 80%, var(--c-cyan) 80% 100%);
}

.logo
{
	display: block;
	max-width: 260px;
	max-height: 68px;
	width: auto;
	height: auto;
	margin: 0 auto 24px;
}

h1
{
	font-size: 21px;
	font-weight: 600;
	margin: 0 0 4px;
	text-align: center;
}

.subtitle
{
	color: var(--muted);
	text-align: center;
	margin: 0 0 22px;
	font-size: 14px;
}
.subtitle:empty { display: none; }

/* ---------- messages ---------- */
.msg { margin: 0 0 14px; font-size: 14px; }
.msg:empty { display: none; }

#reset_pass
{
	background: #fff8e6;
	border: 1px solid #f0d58a;
	border-radius: 6px;
	padding: 10px 12px;
}

.wrng, #badmsg
{
	color: var(--error);
}
#badmsg:not(:empty)
{
	background: #fdecea;
	border: 1px solid #f5c2bd;
	border-radius: 6px;
	padding: 10px 12px;
}
#badmsg br { display: none; }

/* ---------- form fields ---------- */
.field { margin: 0 0 16px; }

.field label
{
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 6px;
}

.txt
{
	display: block;
	width: 100%;
	height: 44px;
	padding: 0 12px;
	font: inherit;
	color: var(--text);
	background: var(--field);
	border: 1px solid var(--border);
	border-radius: 6px;
	outline: none;
	transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.txt:focus
{
	background: #ffffff;
	border-color: var(--accent);
	box-shadow: 0 0 0 3px rgba(0, 156, 199, 0.25);
}

/* public / private computer */
.opt
{
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
	font-size: 14px;
	color: var(--muted);
}
.opt input { margin: 0; accent-color: var(--brand); }
.opt label { cursor: pointer; }
#nopub1 { margin-bottom: 18px; }

/* ---------- button ---------- */
.btn
{
	display: block;
	width: 100%;
	height: 46px;
	margin-top: 6px;
	font: inherit;
	font-weight: 600;
	color: var(--brand-contrast);
	background: var(--brand);
	border: 0;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color .15s;
}
.btn:hover, .btn:focus-visible { background: var(--brand-dark); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

#captchabox { margin: 12px auto 0; }

/* ---------- footer ---------- */
.foot
{
	width: 100%;
	max-width: 400px;
	margin-top: 18px;
	text-align: center;
	font-size: 12px;
	color: var(--muted);
}
.foot small { display: block; font-size: 10px; opacity: .8; margin-top: 2px; }

/* ---------- javascript disabled ---------- */
#dvErr
{
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 16px;
	padding: 10px 12px;
	background: #fdecea;
	border: 1px solid var(--error);
	border-radius: 6px;
	font-size: 14px;
}

/* ---------- logout page ---------- */
.done { text-align: center; color: var(--muted); margin: 0; }

@media (max-width: 440px)
{
	.card { padding: 28px 22px 22px; }
}
