/* ==========================================================================
   METROPOL BERLIN — Login / Backstage
   ========================================================================== */

/* Lato (selbst gehostet, SIL OFL 1.1): Regular, Bold, Black + Kursiv.
   Gewichtsbereiche: 100–500 → Regular, 600–700 → Bold, 800–900 → Black. */
@font-face {
	font-family: "Lato";
	src: url("../fonts/lato-latin-400-normal.woff2") format("woff2");
	font-weight: 100 500;
	font-style: normal;
	font-display: swap;
	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: "Lato";
	src: url("../fonts/lato-latin-ext-400-normal.woff2") format("woff2");
	font-weight: 100 500;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Lato";
	src: url("../fonts/lato-latin-400-italic.woff2") format("woff2");
	font-weight: 100 500;
	font-style: italic;
	font-display: swap;
	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: "Lato";
	src: url("../fonts/lato-latin-ext-400-italic.woff2") format("woff2");
	font-weight: 100 500;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Lato";
	src: url("../fonts/lato-latin-700-normal.woff2") format("woff2");
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
	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: "Lato";
	src: url("../fonts/lato-latin-ext-700-normal.woff2") format("woff2");
	font-weight: 600 700;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Lato";
	src: url("../fonts/lato-latin-700-italic.woff2") format("woff2");
	font-weight: 600 900;
	font-style: italic;
	font-display: swap;
	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: "Lato";
	src: url("../fonts/lato-latin-ext-700-italic.woff2") format("woff2");
	font-weight: 600 900;
	font-style: italic;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Lato";
	src: url("../fonts/lato-latin-900-normal.woff2") format("woff2");
	font-weight: 800 900;
	font-style: normal;
	font-display: swap;
	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: "Lato";
	src: url("../fonts/lato-latin-ext-900-normal.woff2") format("woff2");
	font-weight: 800 900;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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;
}

body.login {
	--pink: #ff0086;
	--ink: #0b0b0b;
	--paper: #ffffff;
	--muted: rgb(255 255 255 / .62);
	--ease: cubic-bezier(.7, 0, .2, 1);
	--ease-out: cubic-bezier(.16, 1, .3, 1);
	--cut: 26px; /* Kreuzkopf-Schräge der Karte */

	min-height: 100vh;
	min-height: 100svh;
	margin: 0;
	background: var(--ink);
	color: var(--paper);
	font-family: "Lato", system-ui, sans-serif;
	font-stretch: 100%;
	display: grid;
	align-items: center;
	-webkit-font-smoothing: antialiased;
}
body.login ::selection { background: var(--pink); color: var(--ink); }
body.login a { color: inherit; transition: color .25s; }
body.login a:hover, body.login a:focus { color: var(--pink); }
body.login *:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; box-shadow: none; }

/* ---------- Backstage-Fläche (Desktop) ---------- */
.mp-stage { display: none; }

@media (min-width: 960px) {
	body.login:not(.interim-login) {
		grid-template-columns: minmax(0, 1fr) minmax(420px, 34vw);
	}
	.mp-stage {
		position: relative;
		display: block;
		height: 100vh;
		height: 100svh;
		overflow: hidden;
		background: radial-gradient(55% 45% at 50% 46%, rgb(255 0 134 / .22), transparent 70%), var(--ink);
		/* rechte Kante im Kreuzkopf-Winkel */
		clip-path: polygon(0 0, 100% 0, calc(100% - 23.37vh) 100%, 0 100%);
		isolation: isolate;
	}
	/* Nebel */
	.mp-stage::before {
		content: "";
		position: absolute;
		inset: -20%;
		z-index: -1;
		background:
			radial-gradient(40% 30% at 30% 60%, rgb(255 0 134 / .10), transparent 70%),
			radial-gradient(35% 25% at 70% 35%, rgb(255 255 255 / .05), transparent 70%);
		animation: mp-haze 18s ease-in-out infinite alternate;
	}
	.mp-stage__cross {
		position: absolute;
		left: 50%;
		top: 46%;
		height: 50vh;
		width: auto;
		transform: translate(-50%, -50%);
		filter: drop-shadow(0 0 28px rgb(255 0 134 / .55)) drop-shadow(0 0 90px rgb(255 0 134 / .35));
		animation: mp-shine 7s ease-in-out infinite;
	}
	.mp-stage__cross polygon { fill: var(--pink); }
	.mp-stage__text {
		position: absolute;
		left: clamp(32px, 4vw, 64px);
		bottom: clamp(32px, 6vh, 64px);
	}
	.mp-stage__kicker {
		margin: 0 0 10px;
		font-size: .75rem;
		font-weight: 600;
		font-stretch: 125%;
		letter-spacing: .14em;
		text-transform: uppercase;
		color: var(--pink);
	}
	.mp-stage__title {
		margin: 0;
		font-size: clamp(3.5rem, 6.4vw, 7.5rem); /* passt vor die schräge Kante */
		font-weight: 800;
		font-stretch: 62%;
		line-height: .84;
		text-transform: uppercase;
		animation: mp-stretch 1.6s var(--ease-out) both .2s;
	}
	.mp-stage__meta {
		margin: 14px 0 0;
		font-size: .75rem;
		font-weight: 600;
		font-stretch: 125%;
		letter-spacing: .12em;
		text-transform: uppercase;
		color: var(--muted);
	}
}
@keyframes mp-shine {
	0%, 100% { filter: drop-shadow(0 0 24px rgb(255 0 134 / .5)) drop-shadow(0 0 80px rgb(255 0 134 / .3)); }
	50% { filter: drop-shadow(0 0 34px rgb(255 0 134 / .65)) drop-shadow(0 0 110px rgb(255 0 134 / .42)); }
}
@keyframes mp-haze { to { transform: translate3d(4%, -3%, 0) scale(1.08); } }
@keyframes mp-stretch { from { font-stretch: 62%; opacity: 0; transform: translateY(20px); } to { font-stretch: 100%; opacity: 1; transform: none; } }

/* ---------- Formular-Spalte ---------- */
body.login #login {
	width: 100%;
	max-width: 400px;
	padding: 6vh 24px;
	margin: 0 auto;
	box-sizing: border-box;
	animation: mp-in .9s var(--ease-out) both;
}
@keyframes mp-in { from { opacity: 0; transform: translateY(18px); } }

body.login h1 { margin-bottom: 32px; }
body.login h1 a {
	width: 200px;
	height: 70px;
	margin: 0;
	background-position: left center;
	background-size: contain;
	background-repeat: no-repeat;
}

/* Karte */
body.login form {
	margin: 0;
	padding: calc(var(--cut) + 26px) 28px 28px;
	background: var(--paper);
	color: var(--ink);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
	overflow: visible;
}
body.login form p { margin-bottom: 18px; }
body.login label {
	display: block;
	margin-bottom: 4px;
	font-size: .6875rem;
	font-weight: 700;
	font-stretch: 125%;
	letter-spacing: .12em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--ink);
}
body.login form .input,
body.login input[type="text"],
body.login input[type="email"],
body.login input[type="password"] {
	width: 100%;
	min-height: 48px;
	margin: 0 0 6px;
	padding: 6px 0;
	background: transparent;
	border: 0;
	border-bottom: 2px solid var(--ink);
	border-radius: 0;
	box-shadow: none;
	color: var(--ink);
	font-family: inherit;
	font-size: 1.25rem;
	font-weight: 500;
	transition: border-color .25s;
}
body.login form .input:focus,
body.login input[type="text"]:focus,
body.login input[type="password"]:focus {
	border-bottom-color: var(--pink);
	box-shadow: none;
	outline: 0;
}
body.login .wp-pwd { position: relative; }
body.login .wp-pwd .button.wp-hide-pw {
	top: 4px;
	right: -6px;
	height: 40px;
	min-width: 40px;
	color: var(--ink);
	background: transparent;
	border: 0;
	box-shadow: none;
}
body.login .wp-pwd .button.wp-hide-pw:hover, body.login .wp-pwd .button.wp-hide-pw:focus { color: var(--pink); background: transparent; }
body.login .wp-pwd .button.wp-hide-pw .dashicons { width: 22px; height: 22px; font-size: 22px; }

body.login .forgetmenot { float: none; margin: 4px 0 22px; }
body.login .forgetmenot label { display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
body.login input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	border: 2px solid var(--ink);
	border-radius: 0;
	box-shadow: none;
	accent-color: var(--pink);
}
body.login input[type="checkbox"]:checked { background: var(--pink); border-color: var(--pink); }
body.login input[type="checkbox"]:checked::before { display: none; }

/* Button mit Schräge + Wisch-Hover */
body.login .submit { float: none; padding: 0; margin: 0; }
body.login .button-primary,
body.login .button.button-large {
	position: relative;
	float: none;
	display: block;
	width: 100%;
	height: auto;
	min-height: 56px;
	padding: 14px 16px 10px;
	white-space: normal;
	line-height: 1.25;
	border: 0 !important;
	border-radius: 0;
	background: var(--pink) !important;
	color: var(--ink) !important;
	box-shadow: none !important;
	text-shadow: none;
	font-family: inherit;
	font-size: .8125rem;
	font-weight: 800;
	font-stretch: 125%;
	letter-spacing: .1em;
	text-transform: uppercase;
	clip-path: polygon(0 12px, 100% 0, 100% 100%, 0 100%);
	cursor: pointer;
	isolation: isolate;
	overflow: hidden;
	transition: color .3s;
}
body.login .button-primary:hover, body.login .button-primary:focus {
	background: var(--ink) !important;
	color: var(--paper) !important;
}

/* Meldungen */
body.login .message,
body.login .notice,
body.login #login_error,
body.login .success {
	margin: 0 0 18px;
	padding: 14px 16px;
	background: #161616;
	color: var(--paper);
	border: 0;
	border-left: 4px solid var(--pink);
	border-radius: 0;
	box-shadow: none;
	font-size: .9375rem;
	line-height: 1.45;
}
body.login #login_error a, body.login .message a { color: var(--pink); }
body.login .description, body.login .indicator-hint { color: rgb(11 11 11 / .6); font-size: .8125rem; }
body.login #pass-strength-result { margin-top: 8px; border-radius: 0; color: var(--ink); }

/* Links darunter */
body.login #nav, body.login #backtoblog {
	margin: 18px 0 0;
	padding: 0;
	font-size: .6875rem;
	font-weight: 700;
	font-stretch: 125%;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--muted);
}
body.login #nav a, body.login #backtoblog a { color: var(--muted); text-decoration: none; }
body.login #nav a:hover, body.login #backtoblog a:hover { color: var(--pink); }
body.login .privacy-policy-page-link { margin: 32px 0 0; text-align: left; }
body.login .privacy-policy-page-link a { font-size: .6875rem; font-weight: 600; font-stretch: 125%; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
body.login .language-switcher { display: none; }

/* Kompakt im Backend-Popup (Sitzung abgelaufen) */
body.login.interim-login #login { padding: 24px; }
body.login.interim-login h1 a { width: 160px; height: 56px; }

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