/*
 * SSLGA Login – wp-login.php und Passwort-Seite (Password Protected).
 * Links Foto mit Vereinsname, rechts das Formular. Eckig, ohne Schatten.
 * --sslga-login-logo und --sslga-login-foto setzt PHP (inc/login.php).
 */

:root {
	--sl-tinte: #001427;
	--sl-rot: #E6332A;
	--sl-rot-dunkel: #AC2523;
	--sl-grund: #F9F9F9;
	--sl-linie: #E3DED2;
	--sl-linie-stark: #8C8779;
	--sl-leise: #4A5561;
	--sl-gruen: #3F7A2A;
}

html {
	background: var(--sl-grund);
}

body.login {
	min-height: 100vh;
	margin: 0;
	padding: 56px 24px;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: var(--sl-grund);
	font-family: "Source Sans 3", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: var(--sl-tinte);
}

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

/* ---------- Bildseite ---------- */

.sslga-login-bild {
	display: none;
}

@media (min-width: 961px) {
	body.login {
		padding-left: calc(50% + 24px);
	}

	.sslga-login-bild {
		position: fixed;
		inset: 0 auto 0 0;
		z-index: 0;
		display: flex;
		align-items: flex-end;
		width: 50%;
		background-color: var(--sl-tinte);
		background-image: linear-gradient(180deg, rgba(0, 20, 39, 0) 45%, rgba(0, 20, 39, .88) 100%), var(--sslga-login-foto, none);
		background-size: cover;
		background-position: center 30%;
		border-top: 6px solid var(--sl-rot);
	}

	.sslga-login-bild__text {
		width: 100%;
		max-width: 560px;
		padding: 0 56px 56px;
		color: #ffffff;
	}

	.sslga-login-bild__kennung {
		display: inline-block;
		margin: 0 0 16px;
		padding: 5px 10px;
		background: var(--sl-rot);
		font-size: 12.5px;
		font-weight: 700;
		letter-spacing: .14em;
		text-transform: uppercase;
	}

	.sslga-login-bild__titel {
		margin: 0;
		font-size: clamp(30px, 2.8vw, 44px);
		font-weight: 700;
		line-height: 1.08;
		letter-spacing: -.01em;
		text-wrap: balance;
	}
}

/* ---------- Spalte ---------- */

#login {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 400px;
	margin: 0 auto !important;
	padding: 0 !important;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: visible;
}

/* ---------- Logo ---------- */

#login h1.wp-login-logo {
	margin: 0 0 36px;
	padding: 0;
	text-align: left;
}

#login h1.wp-login-logo a {
	display: block;
	width: 220px;
	height: 76px;
	margin: 0;
	padding: 0;
	background-image: var(--sslga-login-logo);
	background-repeat: no-repeat;
	background-position: left center;
	background-size: contain;
	font-size: 0;
	line-height: 0;
	color: transparent;
	text-indent: -9999em;
	overflow: hidden;
	box-shadow: none;
	outline: 0;
}

#login h1.wp-login-logo a:focus-visible {
	outline: 2px solid var(--sl-rot);
	outline-offset: 4px;
}

/* ---------- Begrüssung ---------- */

.sslga-login-kopf {
	margin: 0 0 24px;
}

.sslga-login-kopf__titel {
	margin: 0 0 8px;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -.01em;
	color: var(--sl-tinte);
}

.sslga-login-kopf__text,
.sslga-login-intro {
	margin: 0;
	padding: 0;
	font-size: 15.5px;
	line-height: 1.5;
	text-align: left;
	color: var(--sl-leise);
}

.sslga-login-intro {
	margin: 0 0 24px;
}

/* ---------- Meldungen ---------- */

#login .message,
#login .notice,
#login .success,
#login_error {
	margin: 0 0 20px;
	padding: 12px 14px;
	border: 1px solid var(--sl-linie);
	border-left: 4px solid var(--sl-tinte);
	background: #ffffff;
	box-shadow: none;
	font-size: 14.5px;
	line-height: 1.5;
	color: var(--sl-tinte);
}

#login .success {
	border-left-color: var(--sl-gruen);
}

#login_error,
#login .notice-error {
	border-left-color: var(--sl-rot);
}

#login_error a {
	color: var(--sl-rot-dunkel);
}

/* ---------- Formular ---------- */

#loginform,
#lostpasswordform,
#resetpassform,
#registerform {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	overflow: visible;
}

#login form p,
#login .user-pass-wrap {
	margin: 0 0 18px;
}

#loginform > p:empty {
	display: none;
}

#login label:not([for="rememberme"]):not([for="pp_rememberme"]) {
	display: block;
	margin: 0 0 8px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1.3;
	text-transform: uppercase;
	color: var(--sl-tinte);
}

#login .wp-pwd {
	position: relative;
}

#login input[type="text"],
#login input[type="email"],
#login input[type="password"] {
	width: 100%;
	height: 52px;
	min-height: 52px;
	margin: 0;
	padding: 0 14px;
	border: 1px solid var(--sl-linie-stark);
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.3;
	color: var(--sl-tinte);
	transition: border-color .15s ease, box-shadow .15s ease;
}

#login .wp-pwd input[type="password"],
#login .wp-pwd input[type="text"] {
	padding-right: 52px;
}

#login input[type="text"]:hover,
#login input[type="email"]:hover,
#login input[type="password"]:hover {
	border-color: var(--sl-tinte);
}

#login input[type="text"]:focus,
#login input[type="email"]:focus,
#login input[type="password"]:focus {
	outline: none;
	border-color: var(--sl-rot);
	box-shadow: inset 0 -2px 0 var(--sl-rot);
}

/* Auge "Passwort anzeigen" */
#login .wp-pwd .button.wp-hide-pw {
	top: 0;
	right: 0;
	width: 52px;
	height: 52px;
	min-height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--sl-leise);
}

#login .wp-pwd .button.wp-hide-pw:hover,
#login .wp-pwd .button.wp-hide-pw:focus {
	color: var(--sl-rot);
	background: transparent;
	box-shadow: none;
}

#login .wp-pwd .button.wp-hide-pw .dashicons {
	top: 0;
	width: 20px;
	height: 20px;
	font-size: 20px;
}

/* ---------- Angemeldet bleiben ---------- */

#login .forgetmenot {
	float: none;
	display: flex;
	align-items: center;
	margin: 0 0 22px;
}

#login .forgetmenot label {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: var(--sl-tinte);
	cursor: pointer;
}

#login input[type="checkbox"] {
	-webkit-appearance: none;
	appearance: none;
	display: inline-grid;
	place-content: center;
	width: 22px;
	height: 22px;
	min-width: 22px;
	margin: 0;
	border: 1.5px solid var(--sl-linie-stark);
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	cursor: pointer;
}

#login input[type="checkbox"]::before {
	content: "" !important;
	width: 6px !important;
	height: 11px !important;
	margin: -3px 0 0 !important;
	border-right: 2.5px solid #ffffff;
	border-bottom: 2.5px solid #ffffff;
	transform: rotate(45deg) scale(0);
	transition: transform .15s ease;
}

#login input[type="checkbox"]:checked {
	background: var(--sl-rot);
	border-color: var(--sl-rot);
}

#login input[type="checkbox"]:checked::before {
	transform: rotate(45deg) scale(1);
}

#login input[type="checkbox"]:focus-visible {
	outline: 2px solid var(--sl-rot);
	outline-offset: 2px;
}

/* ---------- Knopf ---------- */

#login .submit {
	float: none;
	margin: 0;
	padding: 0;
}

#login .button-primary,
#login #wp-submit {
	float: none;
	display: block;
	width: 100%;
	height: 54px;
	min-height: 54px;
	margin: 0;
	padding: 0 24px;
	border: 2px solid var(--sl-rot);
	border-radius: 0;
	background: var(--sl-rot);
	box-shadow: none;
	text-shadow: none;
	font-family: inherit;
	font-size: 16.5px;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1;
	color: #ffffff;
	transition: background-color .15s ease, color .15s ease;
}

#login .button-primary:hover,
#login .button-primary:focus,
#login #wp-submit:hover,
#login #wp-submit:focus {
	background: #ffffff;
	border-color: var(--sl-rot);
	color: var(--sl-rot);
	box-shadow: none;
}

#login .button-primary:focus-visible,
#login #wp-submit:focus-visible {
	outline: 2px solid var(--sl-tinte);
	outline-offset: 2px;
}

/* ---------- Links unter dem Formular ---------- */

#login #nav,
#login #backtoblog {
	margin: 18px 0 0;
	padding: 0;
	font-size: 14.5px;
	text-align: left;
}

#login #backtoblog {
	margin-top: 8px;
}

#login #nav a,
#login #backtoblog a {
	color: var(--sl-leise);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

#login #nav a:hover,
#login #backtoblog a:hover {
	color: var(--sl-rot);
}

.login .privacy-policy-page-link {
	margin: 32px 0 0;
	text-align: left;
}

.login .privacy-policy-page-link a {
	font-size: 13.5px;
	color: var(--sl-leise);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Sprachwahl am Fuss der Anmeldeseite */
.login .language-switcher {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 400px;
	margin: 24px auto 0;
	padding: 0;
}

.login #language-switcher {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
}

.login #language-switcher label .dashicons {
	color: var(--sl-leise);
}

.login .language-switcher select {
	min-height: 38px;
	padding: 0 30px 0 10px;
	border: 1px solid var(--sl-linie);
	border-radius: 0;
	background-color: #ffffff;
	font-family: inherit;
	font-size: 14px;
	color: var(--sl-tinte);
}

.login .language-switcher .button {
	min-height: 38px;
	padding: 0 14px;
	border: 1px solid var(--sl-tinte);
	border-radius: 0;
	background: #ffffff;
	box-shadow: none;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	color: var(--sl-tinte);
}

.login .language-switcher .button:hover,
.login .language-switcher .button:focus {
	background: var(--sl-tinte);
	color: #ffffff;
}

/* ---------- Passwort-Seite (Wartungsmodus) ---------- */

body.login-password-protected #loginform p:has(#password_protected_pass) label {
	display: block;
}

body.login-password-protected .password-protected-text-below,
body.login-password-protected .password-protected-text-above {
	margin: 0 0 18px;
	font-size: 15px;
	color: var(--sl-leise);
}

/* ---------- Kleine Bildschirme ---------- */

@media (max-width: 960px) {
	body.login {
		justify-content: flex-start;
		padding: 40px 20px;
		border-top: 6px solid var(--sl-rot);
	}

	#login h1.wp-login-logo {
		margin-bottom: 28px;
	}

	#login h1.wp-login-logo a {
		width: 190px;
		height: 66px;
	}

	.sslga-login-kopf__titel {
		font-size: 26px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.login *,
	body.login *::before,
	body.login *::after {
		transition: none !important;
	}
}
