/* Benjamin Franklin Charter School - LoadMaster ESP SSO image set */
:root {
	--blue: #163451;
	--red: #a12842;
	--red-dark: #8a2238;
	--label-col: 154px;
	--input-w: 320px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	min-height: 100%;
	background: var(--blue);
	color: #ffffff;
	font-family: "Segoe UI", "Segoe UI Web (West European)", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
}

#dvErr {
	padding: 10px 16px;
	background: var(--red);
	color: #ffffff;
	font-size: 13px;
	text-align: center;
}
#dvErr img { vertical-align: -2px; margin-right: 6px; }

/* ---------------------------------------------------------------- login */
.page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding: 24px 24px 24px 7.3vw;
}

.brand { flex: none; margin-right: 110px; }
.logo { display: block; width: 341px; height: auto; }

.logon { flex: none; width: calc(var(--label-col) + var(--input-w)); }

.row {
	display: grid;
	grid-template-columns: var(--label-col) var(--input-w);
	align-items: center;
	margin-bottom: 6px;
}

.row > label {
	font-size: 12px;
	line-height: 1.3;
	color: #ffffff;
	cursor: default;
}

.txt {
	width: 100%;
	height: 36px;
	margin: 0;
	padding: 0 10px;
	border: 0;
	border-radius: 0;
	background: #ffffff;
	color: #1b1b1b;
	font-family: inherit;
	font-size: 14px;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}
.txt:focus { box-shadow: inset 0 0 0 2px var(--red); }

.btn-row { margin-top: 17px; margin-bottom: 0; }

.btn {
	display: inline-block;
	width: 100%;
	height: 36px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: var(--red);
	color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 36px;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: background-color .15s ease;
}
.btn:hover, .btn:focus { background: var(--red-dark); outline: none; }
.btn:focus-visible { box-shadow: 0 0 0 2px #ffffff; }
.btn:disabled { opacity: .6; cursor: default; }

/* Server messages: rows collapse while empty */
.msg-row { margin-bottom: 10px; }
.msg-row:has(.msg:empty) { display: none; }
.msg:empty { display: none; }
.msg {
	padding: 8px 10px;
	border-left: 3px solid #ffffff;
	background: rgba(255, 255, 255, .1);
	font-size: 12px;
	line-height: 1.45;
}
.msg a { color: #ffffff; font-weight: 600; }
.msg.err { background: var(--red); border-left: 0; padding-left: 12px; }

/* Public/private option - only shown when enabled on the Virtual Service */
.opt-row { margin-top: 4px; margin-bottom: 2px; }
.opt {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 12px;
	cursor: pointer;
}
.opt input { margin: 0; accent-color: var(--red); }

.captcha-row { margin-bottom: 0; }
#captchabox { margin-top: 6px; }

/* ---------------------------------------------------------------- logout */
.logout { min-height: 100vh; padding-top: 185px; }

.logoff-box {
	width: 458px;
	max-width: calc(100% - 32px);
	margin: 0 auto;
	padding: 28px 20px 40px;
	border: 1px solid rgba(255, 255, 255, .14);
	background: var(--blue);
	box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
	text-align: center;
}

.logoff-msg {
	margin: 0 0 20px;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: .1px;
}

.btn-sm {
	width: auto;
	height: 22px;
	padding: 0 16px;
	font-size: 11px;
	font-weight: 400;
	line-height: 22px;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
	.page {
		flex-direction: column;
		justify-content: center;
		padding: 32px 20px;
	}
	.brand { margin: 0 0 40px; }
	.logo { width: 300px; max-width: 100%; }
	.logon { width: 100%; max-width: var(--input-w); }
	.row { grid-template-columns: 1fr; }
	.row > span:first-child { display: none; }
	.row > label { margin-bottom: 4px; }
	.opt-row > label { margin-bottom: 0; }
	.btn-row { margin-top: 12px; }
}

@media (max-width: 520px) {
	.logout { padding-top: 80px; }
}
