/* Anmeldemaske - Aufbau, Farben und Masse aus der neuen Oberflaeche (Hyper-Thema)
   uebernommen. Bewusst eigenstaendig: die Seite laedt weder Bootstrap noch
   AdminLTE, damit der Anmeldebildschirm unabhaengig vom restlichen Altbestand
   bleibt. Die Werte unten stehen so auch im Thema:
   Text #6c757d, Rahmen #e5e8eb, Anhang grau #f6f7fb, Primaerfarbe #2c8ef8. */

:root {
	--bb-primary: #2c8ef8;
	--bb-primary-dark: #2983e5;
	--bb-text: #6c757d;
	--bb-muted: #8a969c;
	--bb-border: #e5e8eb;
	--bb-grau: #f6f7fb;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
}

body {
	font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: .9rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bb-text);
	background: url(/img/login_bg.jpg) center no-repeat;
	background-size: cover;
}

.auth-fluid {
	position: relative;
	display: flex;
	flex-direction: row;
	align-items: stretch;
	min-height: 100vh;
}

/* linke Spalte: die eigentliche Anmeldung */
.auth-fluid-form-box {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 480px;
	padding: 3rem;
	background-color: #fff;
	display: flex;
	flex-direction: column;
}

.auth-brand {
	margin-bottom: 2rem;
}

.auth-brand img {
	height: 60px;
	max-width: 100%;
}

/* Logo links, Sprachwahl rechts daneben */
.auth-brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

/* kleine Flaggen; spezifischer als ".auth-brand img" (0,1,1),
   sonst wuerden sie 60px hoch wie das Logo */
.auth-brand .auth-sprachen {
	display: flex;
	align-items: center;
	gap: .35rem;
}

.auth-brand .auth-sprachen a {
	display: block;
	line-height: 0;
	padding: 3px;
	border-radius: 4px;
	opacity: .55;
	transition: opacity .15s ease-in-out, background-color .15s ease-in-out;
}

.auth-brand .auth-sprachen a:hover,
.auth-brand .auth-sprachen a:focus-visible {
	opacity: 1;
	background-color: var(--bb-grau);
	outline: none;
}

.auth-brand .auth-sprachen a.aktiv {
	opacity: 1;
	background-color: var(--bb-grau);
}

.auth-brand .auth-sprachen img {
	width: 22px;
	height: 16px;
	object-fit: cover;
	border-radius: 3px;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
}

.auth-mitte {
	margin-top: auto;
	margin-bottom: auto;
}

.auth-mitte h4 {
	margin: 0 0 10px 0;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.1;
}

.text-muted {
	color: var(--bb-muted);
}

.auth-hinweis {
	margin: 0 0 1.5rem 0;
}

/* Formular */
.form-group {
	margin-bottom: 1rem;
}

.form-label {
	display: inline-block;
	margin-bottom: .5rem;
	font-weight: 400;
}

.form-control {
	display: block;
	width: 100%;
	min-height: calc(1.5em + .9rem + 2px);
	padding: .45rem .9rem;
	font-family: inherit;
	font-size: .9rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bb-text);
	background-color: #fff;
	background-clip: padding-box;
	border: 1px solid var(--bb-border);
	border-radius: .25rem;
	-webkit-appearance: none;
	appearance: none;
}

/* das Thema zeigt beim Tippen keinen Rahmen an; ein Hauch davon bleibt,
   sonst ist bei Tastaturbedienung nicht zu sehen, wo man steht */
.form-control:focus {
	outline: 0;
	border-color: #c9d2da;
	box-shadow: none;
}

/* Passwortfeld mit grauem Kaestchen fuer das Auge */
.input-group {
	display: flex;
	align-items: stretch;
	width: 100%;
}

.input-group .form-control {
	position: relative;
	flex: 1 1 auto;
	width: 1%;
	min-width: 0;
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}

.input-group-text {
	display: flex;
	align-items: center;
	padding: .45rem .9rem;
	font-size: .9rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--bb-text);
	text-align: center;
	white-space: nowrap;
	background-color: var(--bb-grau);
	border: 1px solid var(--bb-border);
	border-left: 0;
	border-top-right-radius: .25rem;
	border-bottom-right-radius: .25rem;
	cursor: pointer;
}

.input-group-text:hover {
	background-color: #eef1f7;
}

.btn-primary {
	display: block;
	width: 100%;
	padding: .45rem .9rem;
	font-family: inherit;
	font-size: .9rem;
	font-weight: 400;
	line-height: 1.5;
	color: #fff;
	text-align: center;
	vertical-align: middle;
	background-color: var(--bb-primary);
	border: 1px solid var(--bb-primary);
	border-radius: .15rem;
	box-shadow: 0 2px 6px 0 rgba(44, 142, 248, .5);
	cursor: pointer;
	transition: color .15s ease-in-out, background-color .15s ease-in-out,
		border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-primary:hover {
	background-color: var(--bb-primary-dark);
	border-color: var(--bb-primary-dark);
}

a.btn-primary {
	text-decoration: none;
}

.auth-vergessen {
	margin: 1rem 0 0 0;
	text-align: center;
}

.auth-vergessen a {
	text-decoration: none;
}

.auth-vergessen a:hover {
	text-decoration: underline;
}

.alert-erfolg {
	margin-bottom: 1rem;
	padding: .75rem 1rem;
	color: #04533c;
	background-color: #e6faf4;
	border: 1px solid #9debd5;
	border-radius: .25rem;
}

.alert-danger {
	margin-bottom: 1rem;
	padding: .75rem 1rem;
	color: #64242f;
	background-color: #fdeef1;
	border: 1px solid #fdbdca;
	border-radius: .25rem;
}

.alert-hinweis {
	margin-bottom: 1rem;
	padding: .75rem 1rem;
	color: #7a5b0c;
	background-color: #fef7e0;
	border: 1px solid #fbe2a0;
	border-radius: .25rem;
}

.auth-fuss {
	margin-top: auto;
	padding-top: 1.5rem;
	text-align: center;
	font-size: .8rem;
}

/* Zwei-Faktor: sechs Felder fuer den Code (wie auth-login-pin) */
.auth-pin {
	display: flex;
	gap: .5rem;
	margin-bottom: 1rem;
}

.auth-pin .form-control {
	flex: 1 1 0;
	width: auto;
	min-width: 0;
	height: 3rem;
	padding: .45rem 0;
	font-size: 1.25rem;
	font-weight: 600;
	text-align: center;
}

.auth-person {
	margin: -.5rem 0 1rem 0;
	font-weight: 600;
}

/* "Neuen Code senden" sieht aus wie ein Link */
.auth-link {
	padding: 0;
	font-family: inherit;
	font-size: .8rem;
	color: var(--bb-muted);
	background: none;
	border: 0;
	cursor: pointer;
}

.auth-link:hover:not(:disabled) {
	text-decoration: underline;
}

.auth-link:disabled {
	cursor: default;
	opacity: .7;
}

/* Passkey: zweiter Knopf unter der Anmeldung */
.auth-oder {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: 1.25rem 0;
	font-size: .8rem;
	color: var(--bb-muted);
}

.auth-oder::before,
.auth-oder::after {
	content: "";
	flex: 1 1 auto;
	border-top: 1px solid var(--bb-border);
}

.btn-passkey {
	display: block;
	width: 100%;
	padding: .45rem .9rem;
	font-family: inherit;
	font-size: .9rem;
	line-height: 1.5;
	color: var(--bb-text);
	text-align: center;
	background-color: #fff;
	border: 1px solid var(--bb-border);
	border-radius: .15rem;
	cursor: pointer;
}

.btn-passkey:hover {
	background-color: var(--bb-grau);
}

.btn-passkey:disabled {
	cursor: default;
	opacity: .7;
}

/* rechte Spalte: Leitsatz ueber dem Hintergrundbild */
.auth-fluid-right {
	flex: 1;
	position: relative;
	padding: 6rem 3rem;
	color: #fff;
	text-align: center;
	background-color: rgba(0, 0, 0, .3);
}

.auth-spruch {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 3rem;
	margin: 0 auto;
	padding: 0 1.75rem;
}

.auth-spruch h2 {
	margin: 0 0 1rem 0;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.1;
}

.auth-spruch p {
	margin: 0 auto;
	max-width: 700px;
	font-size: 1.125rem;
	font-weight: 300;
}

/* schmale Bildschirme: nur die Anmeldung, wie in der neuen Oberflaeche */
@media (max-width: 991px) {
	.auth-fluid {
		display: block;
	}
	.auth-fluid-form-box {
		max-width: 100%;
		min-height: 100vh;
	}
	.auth-fluid-right {
		display: none;
	}
}

@media (max-width: 575px) {
	.auth-fluid-form-box {
		padding: 1.75rem;
	}
}
