/* Self-hosted Roboto (from @fontsource/roboto) instead of Google Fonts:
   avoids third-party requests on the login page and the GDPR issue of leaking visitor IPs to Google */
@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-display: swap;
	font-weight: 300;
	src: url(/assets/fonts/roboto-300-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
		U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-display: swap;
	font-weight: 300;
	src: url(/assets/fonts/roboto-300-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
		U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
		U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url(/assets/fonts/roboto-400-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
		U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Roboto';
	font-style: normal;
	font-display: swap;
	font-weight: 400;
	src: url(/assets/fonts/roboto-400-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
		U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
		U+2C60-2C7F, U+A720-A7FF;
}

:root {
	color-scheme: auto !important;

	/* keep in sync with apps/web/src/style/variables.less */
	--border-radius: 8px;
	--button-radius: 3px;
}

body {
	font-family: 'Roboto', sans-serif;
	font-size: 0.95em;
	font-weight: 200;
	margin: 0;
	padding: 0;
	background-color: #fff;
	color: #000;
	min-height: 100vh;
}

div,
input,
button {
	font-family: 'Roboto', sans-serif;
}

button {
	cursor: pointer;
}

a {
	color: #007ad9;
	text-decoration: none;
}

main[_ngcontent-aqb-c0] {
	height: calc(100vh - 85px);
}

.login-background {
	background-color: #313131;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;

	background-size: cover;
	background-position: center top;
}

.language-selector {
	align-self: flex-end;
}

.language-selector.languages {
	padding: 8px 0;
}

.language-selector button {
	font-weight: 700;
	font-size: 0.95em;
	padding: 0 3px;
	border: 0;
	outline: 0;
	background: 0;
}

/* modern Microsoft (Entra ID) sign-in button */
.ms-login {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	box-sizing: border-box;
	height: 41px;
	background: #fff;
	border: 1px solid #8c8c8c;
	border-radius: var(--button-radius);
	color: #5e5e5e;
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
	transition: background-color 0.2s, box-shadow 0.2s;
}

.ms-login:hover {
	background: #f3f3f3;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.ms-login img {
	width: 21px;
	height: 21px;
	display: block;
}

/* "oder" separator between SSO button and credential form */
.sso-divider {
	display: flex;
	align-items: center;
	text-align: center;
	color: #9a9a9a;
	font-size: 12px;
	margin: 18px 0;
}

.sso-divider::before,
.sso-divider::after {
	content: '';
	flex: 1;
	border-bottom: 1px solid #e0e0e0;
}

.sso-divider span {
	padding: 0 12px;
}

form {
	width: 100%;
	min-width: 300px;
	height: 100%;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-direction: column;
	flex-direction: column;
	-ms-flex-align: start;
	align-items: flex-start;
	-ms-flex-pack: start;
	justify-content: flex-start;
	background-color: #fff;
}

label {
	display: block;
	color: #535353;
	font-size: 12pt;
	font-weight: 400;
	clear: both;
	margin: 0.6em 0;
}

input[type='text'],
input[type='email'],
input[type='password'] {
	letter-spacing: 1.5px;
	margin: 0 0 1em;
	padding: 10px;
	width: 100%;
	background-color: #f3f3f3;
	height: 40px;
	box-sizing: border-box;
	border: none;
	border-radius: var(--button-radius);
}

.login-box {
	width: 100%;
	max-width: 460px;
	background: #fff;
	padding: 0;
	margin-top: 100px;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow:
		0 4px 8px 0 rgba(0, 0, 0, 0.2),
		0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

@media only screen and (max-width: 600px) {
	.login-box {
		max-width: 100%;
		margin-top: 0;
		box-shadow: none;
		border-radius: 0;
	}
	.login-background {
		background-color: white;
		background-image: none !important;
	}
}

.inner-box {
	clear: both;
	margin: 0;
	padding: 2em;
	display: flex;
	flex-direction: column;
	min-height: 300px;
}

h1 {
	font-family: 'Open Sans', 'Source Sans Pro', sans-serif;
	font-weight: 200;
	margin-top: 0px;
	margin-bottom: 28px;
	font-size: 1.8em;
}

/* margin only if h1 does not have a h2 following as next element */
h1 + h2 {
	margin-top: -16px;
}

h2 {
	font-family: 'Open Sans', 'Source Sans Pro', sans-serif;
	font-weight: 200;
	margin-top: 0px;
	margin-bottom: 20px;
	font-size: 1.4em;
}

section {
	margin-bottom: 12px;
}

.error-message {
	color: red;
	font-weight: 500;
}
.rememberLogin {
	margin-top: 5px;
	width: 18px;
	height: 18px;
}

.password-reset {
	margin-top: 10px;
	font-weight: bolder;
}

.azure-ad-link {
	font-weight: lighter;
	font-size: 0.8em;
}

.submit-group {
	align-self: flex-end;
	/* margin-bottom: 30px; */
}

.submit-group button {
	border-style: none;
	/* background-color: #2f75cc; */
	padding: 8px 10px;
	color: #fff;
	margin-top: 20px;
	margin: 0;
	color: #fff;
	background-color: #007ad9;
	border: 1px solid #007ad9;
	font-size: 14px;
	transition:
		background-color 0.2s,
		box-shadow 0.2s;
	border-radius: var(--button-radius);
}

.submit-group button:hover {
	background-color: #0062a3;
	border: 1px solid #0062a3;
}

.submit-group button.clicked {
	background-color: #78c7ff;
	border: 1px solid #78c7ff;
}

.submit-group button:disabled {
	background-color: lightgrey;
	border: 0;
	cursor: not-allowed;
}

.submit-group span {
	padding: 5px 10px;
}

.sm-login-footer {
	padding: 10px 33px 33px;
	margin: 0;
	display: block;
}

.sm-login-footer img {
	height: 15px;
}

.version {
	font-size: 9pt;
	margin-top: 3px;
	float: right;
}

.qrcodebox {
	text-align: center;
}

/* The message box is shown when the user clicks on the password field */
p.password-expired {
	font-weight: 400;
}

#validationmessage {
	display: none;
	color: #000;
	position: relative;
}

#validationmessage p {
	padding: 2px 2px 2px 20px;
	font-size: 10pt;
}

/* Add a green text color and a checkmark when the requirements are right */
.valid {
	color: green;
}

.valid:before {
	position: absolute;
	left: 0px;
	content: '✔';
	line-height: 1.2em;
}

/* Add a red text color and an "x" when the requirements are wrong */
.invalid {
	color: red;
}

.invalid:before {
	position: absolute;
	left: 0px;
	content: '✖';
	line-height: 1.2em;
}

#password-reset .submit-group {
	margin-top: 25px;
}

#otp-input {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 100%;
	margin: 0;
	width: 100%;
	margin-bottom: 20px;
	margin-top: 20px;
}
#otp-input-inner {
	display: flex;
	column-gap: 8px;
}
#otp-input input {
	text-align: center;
	/* padding: 2px; */
	border: 1px solid #adadad;
	border-radius: var(--button-radius);
	outline: none;
	height: 48px;
	width: 40px;
}

#otp-input input:focus {
	border: 1px solid #497e76;
}

#otp-input input:focus::placeholder {
	color: transparent;
}

#otp-input input::-webkit-outer-spin-button,
#otp-input input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
#otp-input input[type='number'] {
	-moz-appearance: textfield; /* Firefox */
}
div.info {
	margin-bottom: 32px;
}

div.relogin {
	margin-bottom: 24px;
	font-weight: 400;
	color: #008e00;
}
