/* ═══════════════════════════════════════════════════════════
   PMH LOGIN — schräger Split mit Naturbild rechts
   ═══════════════════════════════════════════════════════════ */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/inter/inter-400-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/inter/inter-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/inter/inter-600-latin.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/inter/inter-700-latin.woff2') format('woff2'); }

:root {
	--pmh-primary: #923E8F;
	--pmh-primary-dark: #7a3377;
	--pmh-primary-light: #f5ecf4;
	--pmh-primary-softer: #faf5fa;
	--pmh-text: #1f1530;
	--pmh-text-muted: #6b5e7a;
	--pmh-border: #e9dfe8;
}

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

body.login {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--pmh-text);
	background: #ffffff;
	min-height: 100vh;
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	display: block;
	position: relative;
}

/* ── Naturbild rechts mit schräger Kante ── */
body.login::before {
	content: '';
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 55vw;
	background: url('images/login-nature.jpg') center / cover no-repeat;
	clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
	z-index: 0;
	pointer-events: none;
}

/* sanftes Tönen über dem Naturbild — Dunkel + Brand-Tint für Kontrast */
body.login::after {
	content: '';
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 55vw;
	background:
		linear-gradient(135deg, rgba(146, 62, 143, 0.18) 0%, rgba(31, 21, 48, 0.32) 100%);
	clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
	z-index: 1;
	pointer-events: none;
}

/* ── Linke Spalte: weiß + Login-Card ── */
#login {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 480px;
	margin: 0;
	padding: 60px 64px 60px 96px;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: center;
	box-sizing: border-box;
}

/* ── HEADER mit Logo ── */
.login h1 {
	margin: 0 0 36px 0;
	text-align: left;
}

.login h1 a {
	background-image: url('images/pmh-logo.png');
	background-size: contain;
	background-repeat: no-repeat;
	background-position: left center;
	width: 220px;
	height: 80px;
	text-indent: -9999px;
	display: inline-block;
	margin: 0;
	padding: 0;
	transition: opacity 0.2s ease;
}
.login h1 a:hover { opacity: 0.85; }

/* ── Begrüßungs-Block ── */
.pmh-login-welcome {
	margin: 0 0 28px 0;
	color: var(--pmh-text);
	font-size: 15px;
	line-height: 1.6;
}
.pmh-login-welcome strong {
	display: block;
	font-size: 20px;
	font-weight: 700;
	color: var(--pmh-primary);
	margin-bottom: 10px;
	letter-spacing: -0.01em;
}
.pmh-login-welcome a {
	color: var(--pmh-primary);
	text-decoration: none;
}
.pmh-login-welcome a:hover { text-decoration: underline; }

.pmh-login-divider {
	height: 1px;
	background: var(--pmh-border);
	margin: 0 0 28px 0;
	border: 0;
}

/* ── FORM ── */
.login form {
	background: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	box-shadow: none;
	margin-top: 0;
	overflow: visible;
}

.login form .input,
.login input[type="text"],
.login input[type="password"],
.login input[type="email"] {
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 400;
	width: 100%;
	padding: 12px 14px;
	margin: 0;
	border: 1.5px solid var(--pmh-border);
	border-radius: 10px;
	background: #fff;
	color: var(--pmh-text);
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
	line-height: 1.4;
	height: auto;
}

.login form .input:focus,
.login input[type="text"]:focus,
.login input[type="password"]:focus {
	border-color: var(--pmh-primary);
	box-shadow: 0 0 0 4px rgba(146, 62, 143, 0.12);
}

.login label {
	font-size: 13px;
	font-weight: 500;
	color: var(--pmh-text-muted);
	margin-bottom: 6px;
	display: block;
}

.login form p {
	margin-bottom: 16px;
}

.login form .forgetmenot {
	margin: 4px 0 22px;
}

.login form .forgetmenot label {
	margin-bottom: 0;
	font-size: 14px;
	color: var(--pmh-text);
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

.login form .forgetmenot input[type="checkbox"] {
	accent-color: var(--pmh-primary);
	width: 16px;
	height: 16px;
}

/* ── BUTTON ── */
.login .button-primary,
.login form .submit .button {
	background: var(--pmh-primary);
	border: none;
	color: #fff;
	font-family: 'Inter', sans-serif;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0.01em;
	padding: 13px 20px;
	border-radius: 10px;
	cursor: pointer;
	width: 100%;
	height: auto;
	line-height: 1.4;
	box-shadow: 0 6px 16px -4px rgba(146, 62, 143, 0.45);
	text-shadow: none;
	transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.login .button-primary:hover,
.login .button-primary:focus,
.login form .submit .button:hover {
	background: var(--pmh-primary-dark);
	box-shadow: 0 8px 22px -4px rgba(146, 62, 143, 0.55);
	color: #fff;
}

.login .button-primary:active {
	transform: translateY(1px);
}

/* ── Tagline + Footer-Links ── */
.pmh-login-tagline {
	color: var(--pmh-text-muted);
	font-size: 14px;
	margin: 18px 0 0;
	text-align: left;
}

#nav,
#backtoblog {
	text-align: left;
	margin: 14px 0 0;
	padding: 0;
	font-size: 13px;
}

#nav a,
#backtoblog a {
	color: var(--pmh-text-muted);
	text-decoration: none;
	transition: color 0.15s ease;
}
#nav a:hover,
#backtoblog a:hover {
	color: var(--pmh-primary);
}

#backtoblog { display: none; }
.language-switcher { display: none; }
.privacy-policy-page-link { display: none; }

/* ── Fehler-/Hinweis-Boxen ── */
.login .message,
.login #login_error,
.login .notice {
	background: #fff;
	border: 1px solid var(--pmh-border);
	border-left: 4px solid var(--pmh-primary);
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 18px;
	color: var(--pmh-text);
	font-size: 14px;
	box-shadow: 0 4px 12px -4px rgba(31, 21, 48, 0.08);
}

.login #login_error {
	border-left-color: #c0392b;
}

/* ── Mobile: Naturbild als Hintergrund-Akzent oben, Form vollflächig drüber ── */
@media (max-width: 768px) {
	body.login::before {
		width: 100%;
		height: 220px;
		bottom: auto;
		clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
	}
	body.login::after {
		width: 100%;
		height: 220px;
		bottom: auto;
		clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
	}
	#login {
		max-width: 100%;
		padding: 250px 24px 40px;
		min-height: 100vh;
		justify-content: flex-start;
	}
	.login h1 {
		text-align: center;
	}
	.login h1 a {
		background-position: center;
		width: 180px;
		height: 64px;
	}
	.pmh-login-welcome strong {
		text-align: center;
	}
	.pmh-login-welcome,
	.pmh-login-tagline,
	#nav,
	#backtoblog {
		text-align: center;
	}
}

/* ── reCAPTCHA / 2FA ── */
.login form .g-recaptcha {
	margin-bottom: 16px;
}
