/* The signed-out pages (sign in, forgotten password, new password). This file is all they load, with Font Awesome
   for the icons: the old frame's Bootstrap 3 and vgm.css are gone, so the few base rules those gave these pages
   are written out here. */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	font-size: 16px;
	line-height: 27px;
	margin: 0;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
}

h1, h4, p {
	margin-top: 0;
}

button, input {
	font-family: inherit;
}

img {
	border: 0;
	vertical-align: text-bottom;
}

a {
	color: #3c8dbc;
	text-decoration: none;
}

label {
	display: inline-block;
	max-width: 100%;
}

.form-control {
	border: 1px solid #ccc;
	display: block;
	line-height: 1.42857143;
	transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
	width: 100%;
}

/* Message boxes and the error under a box */
.callout {
	border-left: 5px solid #eee;
	border-radius: 3px;
	margin: 0 0 20px;
	padding: 15px 30px 15px 15px;
}

.callout p {
	line-height: 16px;
}

.form-callout {
	margin-bottom: 0;
	padding: 6px 10px;
}

/* Sign in, forgotten password, new password: the website admin's sign-in look. The website's banner photo on one
   half, under the Centre's navy, with the app's name and the site's blue-and-yellow heading bars; the website's logo,
   the heading and the form on a white half beside it. A strip of the photo on phones. Sizes are in pixels.
---------------------------------------- */
.ts-auth-page {
	background: #fff;
	color: #333;
	font-family: 'Open Sans', 'Helvetica Neue', Arial, sans-serif;
}

.ts-auth {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	min-height: 100vh;
}

.ts-auth-photo {
	align-items: flex-end;
	background: #22577a url('/assets/img/home-banner.jpg') center / cover no-repeat;
	display: flex;
	padding: 56px;
	position: relative;
}

.ts-auth-photo::before {
	background: linear-gradient(0deg, rgba(22, 53, 75, 0.94) 0%, rgba(22, 53, 75, 0.7) 45%, rgba(22, 53, 75, 0.3) 100%);
	content: '';
	inset: 0;
	position: absolute;
}

.ts-auth-tagline {
	color: #fff;
	font-family: 'Roboto', 'Open Sans', sans-serif;
	font-size: clamp(32px, 19px + 2.2vw, 50px);
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.08;
	margin: 0;
	max-width: 11ch;
	position: relative;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
}

.ts-auth-tagline::after {
	background: linear-gradient(90deg, #336699 0 52px, transparent 52px 62px, #f2bc0c 62px 76px, transparent 76px);
	content: '';
	display: block;
	height: 5px;
	margin-top: 22px;
	width: 76px;
}

.ts-auth-panel {
	align-items: center;
	background: #fff;
	display: flex;
	justify-content: center;
	padding: 48px 32px;
}

.ts-auth-wrap {
	display: flex;
	flex-direction: column;
	max-width: 380px;
	width: 100%;
}

.ts-auth-logo {
	align-self: flex-start;
	height: auto;
	margin-bottom: 44px;
	max-height: 72px;
	max-width: 250px;
	width: auto;
}

.ts-auth-wrap h1 {
	color: #16354b;
	font-family: 'Roboto', 'Open Sans', sans-serif;
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 22px;
}

.ts-auth-help {
	color: #5b6b78;
	font-size: 15px;
	line-height: 1.5;
	margin: -8px 0 20px;
}

.ts-auth-form .form-group {
	margin-bottom: 18px;
}

.ts-auth-form label {
	color: #16354b;
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 6px;
}

.ts-auth-form .form-control {
	background: #fff;
	border-color: #cfd9e0;
	border-radius: 10px;
	box-shadow: none;
	color: #333;
	font-size: 16px;
	height: 50px;
	padding: 0 14px;
}

.ts-auth-form .form-control:focus {
	background: #fff;
	border-color: #336699;
	box-shadow: 0 0 0 4px rgba(51, 102, 153, 0.16);
	outline: 0;
}

.ts-password {
	position: relative;
}

.ts-password .form-control {
	padding-right: 52px;
}

.ts-password-toggle {
	align-items: center;
	background: none;
	border: 0;
	border-radius: 8px;
	color: #5b6b78;
	cursor: pointer;
	display: flex;
	height: 40px;
	justify-content: center;
	position: absolute;
	right: 5px;
	top: 5px;
	width: 42px;
}

.ts-password-toggle:hover, .ts-password-toggle:focus-visible {
	background: #eef3f6;
	color: #336699;
}

.ts-auth-remember {
	align-items: center;
	color: #333;
	cursor: pointer;
	display: inline-flex;
	font-size: 15px;
	font-weight: 400 !important;
	gap: 9px;
	margin: 2px 0 22px;
}

.ts-auth-remember input {
	accent-color: #336699;
	height: 18px;
	margin: 0;
	width: 18px;
}

.ts-auth-submit {
	background: #336699;
	border: 0;
	border-radius: 999px;
	color: #fff;
	cursor: pointer;
	font-size: 16px;
	font-weight: 700;
	height: 52px;
	transition: background-color 0.15s ease;
	width: 100%;
}

.ts-auth-submit:hover {
	background: #16354b;
}

.ts-auth-submit:focus-visible {
	outline: 3px solid #f2bc0c;
	outline-offset: 3px;
}

.ts-auth-link {
	align-items: center;
	align-self: center;
	color: #5b6b78;
	display: inline-flex;
	font-size: 15px;
	gap: 8px;
	margin-top: 26px;
	text-decoration: none;
}

.ts-auth-link:hover, .ts-auth-link:focus-visible {
	color: #336699;
	text-decoration: underline;
}

.ts-auth-copyright {
	color: #8a97a1;
	font-size: 13px;
	margin: 34px 0 0;
	text-align: center;
}

/* Messages: a problem under its box, or a notice above the form */
.ts-auth .callout, .ts-auth .callout.callout-danger {
	background: #fdf1ef !important; /* the AdminLTE rules further down colour callouts with !important */
	border: 0;
	border-left: 4px solid #c0392b;
	border-radius: 0 10px 10px 0;
	color: #5f1f17 !important;
	font-size: 15px;
	margin: 0 0 18px;
	padding: 10px 14px;
}

.ts-auth .callout.form-callout {
	margin: 8px 0 0;
}

.ts-auth .callout.callout-warning {
	background: #fff8e1 !important;
	border-left-color: #f2bc0c;
	color: #5c4500 !important;
}

.ts-auth .callout.callout-success {
	background: #eaf6ef !important;
	border-left-color: #009966;
	color: #10442c !important;
}

.ts-auth .callout h4 {
	font-size: 16px;
	font-weight: 700;
	margin: 0 0 4px;
}

.ts-auth .callout p {
	margin: 0;
}

.ts-auth .callout .fa {
	margin-right: 6px;
}

@media (max-width: 899.98px) {
	.ts-auth {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto 1fr;
	}

	.ts-auth-photo {
		min-height: 190px;
		padding: 28px 24px;
	}

	.ts-auth-tagline {
		font-size: 27px;
		max-width: 14ch;
	}

	.ts-auth-tagline::after {
		margin-top: 14px;
	}

	.ts-auth-panel {
		align-items: flex-start;
		padding: 32px 22px 40px;
	}

	.ts-auth-logo {
		margin-bottom: 30px;
	}
}
