/* ==========================================================================
   PCTL Login / Registrierung - Optik in Anlehnung an Logo und Header-Banner
   (dunkles Stadion bei Nacht, blaue Flutlicht-Akzente, Esports-Typografie)

   Bewusst ohne externe Webfonts (Datenschutz) und ohne AdminLTE-Abhaengigkeit,
   damit die Seite unabhaengig vom Theme-Umschalter immer im Banner-Look bleibt.
   ========================================================================== */

/* ==========================================================================
   Oswald, selbst gehostet (SIL Open Font License 1.1, Lizenztext liegt unter
   templates/fonts/Oswald-OFL.txt).

   Variable Schrift: eine Datei je Zeichensatz deckt alle Schnitte von 200 bis
   700 ab. Bewusst kein Google-CDN, damit beim Seitenaufruf keine Nutzerdaten
   an Dritte gehen. "latin" traegt die deutschen Umlaute, "latin-ext" die
   osteuropaeischen Zeichen in Vereins- und Spielernamen.
   ========================================================================== */

@font-face {
	font-family: "Oswald";
	font-style: normal;
	font-weight: 200 700;
	font-display: swap;
	src: url("/templates/fonts/oswald-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: "Oswald";
	font-style: normal;
	font-weight: 200 700;
	font-display: swap;
	src: url("/templates/fonts/oswald-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 {
	--pctl-navy-900: #05090f;
	--pctl-navy-800: #0a1424;
	--pctl-navy-700: #10203a;
	--pctl-navy-600: #16304f;
	--pctl-blue: #2f7fe0;
	--pctl-blue-bright: #4da3ff;
	--pctl-blue-soft: #8fc2ff;
	--pctl-text: #e8f0fb;
	--pctl-muted: #8ea6c4;
	--pctl-line: rgba(93, 160, 233, 0.22);
	--pctl-radius: 14px;
	--pctl-font-display: "Oswald", "Arial Narrow", "Liberation Sans Narrow", Impact, Arial, sans-serif;
}

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

html,
body {
	height: 100%;
}

body.pctl-login {
	margin: 0;
	min-height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
	color: var(--pctl-text);
	background: var(--pctl-navy-900);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* --- Hintergrund: Flutlicht, Stadionrang, Spielfeld ---------------------- */

.pctl-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	pointer-events: none;
	background:
		radial-gradient(90% 60% at 50% 0%, rgba(47, 127, 224, 0.28) 0%, rgba(10, 20, 36, 0) 70%),
		radial-gradient(70% 50% at 50% 100%, rgba(47, 127, 224, 0.18) 0%, rgba(10, 20, 36, 0) 70%),
		linear-gradient(180deg, #0a1628 0%, #071021 45%, #05090f 100%);
}

/* Flutlichtkegel oben links und rechts */
.pctl-bg__beam {
	position: absolute;
	top: -30%;
	width: 55vw;
	height: 120vh;
	background: linear-gradient(180deg, rgba(141, 194, 255, 0.34) 0%, rgba(141, 194, 255, 0) 68%);
	filter: blur(30px);
	opacity: 0.75;
	animation: pctl-beam 9s ease-in-out infinite alternate;
}

.pctl-bg__beam--left {
	left: -18vw;
	transform: rotate(16deg);
	transform-origin: top center;
}

.pctl-bg__beam--right {
	right: -18vw;
	transform: rotate(-16deg);
	transform-origin: top center;
	animation-delay: -4.5s;
}

@keyframes pctl-beam {
	from { opacity: 0.45; }
	to   { opacity: 0.85; }
}

/* Punktuelles Bloom der Flutlichtmasten */
.pctl-bg__beam::before {
	content: "";
	position: absolute;
	top: 26%;
	left: 50%;
	width: 220px;
	height: 220px;
	transform: translateX(-50%);
	border-radius: 50%;
	background: radial-gradient(circle, rgba(220, 238, 255, 0.55) 0%, rgba(141, 194, 255, 0) 65%);
	filter: blur(10px);
}

/* Angedeutete Zuschauerraenge */
.pctl-bg__stands {
	position: absolute;
	inset: 0 0 42% 0;
	opacity: 0.18;
	background-image:
		radial-gradient(circle at 1px 1px, rgba(150, 200, 255, 0.5) 1px, transparent 0);
	background-size: 6px 6px;
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 5%, #000 45%, rgba(0, 0, 0, 0) 100%);
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 5%, #000 45%, rgba(0, 0, 0, 0) 100%);
}

/* Spielfeld in Perspektive */
.pctl-bg__pitch {
	position: absolute;
	left: -25%;
	right: -25%;
	bottom: -14vh;
	height: 58vh;
	transform: perspective(520px) rotateX(64deg);
	transform-origin: bottom center;
	background-image:
		repeating-linear-gradient(90deg, rgba(140, 195, 255, 0.28) 0 2px, transparent 2px 120px),
		repeating-linear-gradient(0deg, rgba(140, 195, 255, 0.18) 0 2px, transparent 2px 90px);
	-webkit-mask-image: radial-gradient(65% 80% at 50% 88%, #000 0%, rgba(0, 0, 0, 0) 100%);
	mask-image: radial-gradient(65% 80% at 50% 88%, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.pctl-bg__pitch::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 30%;
	width: 28%;
	aspect-ratio: 1 / 1;
	transform: translateX(-50%);
	border: 2px solid rgba(140, 195, 255, 0.26);
	border-radius: 50%;
}

/* Vignette */
.pctl-bg__vignette {
	position: absolute;
	inset: 0;
	background: radial-gradient(75% 70% at 50% 45%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.75) 100%);
}

/* --- Inhalt -------------------------------------------------------------- */

.pctl-shell {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 480px;
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.pctl-shell--wide {
	max-width: 560px;
}

/* --- Kopf: Logo, Schriftzug, Wettbewerbsleiste --------------------------- */

.pctl-brand {
	text-align: center;
}

.pctl-brand__logo {
	display: inline-block;
	width: 150px;
	max-width: 45vw;
	height: auto;
	filter: drop-shadow(0 10px 26px rgba(47, 127, 224, 0.45));
}

.pctl-brand__platforms {
	margin: 6px 0 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-family: var(--pctl-font-display);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.24em;
	text-transform: uppercase;
	color: var(--pctl-muted);
}

.pctl-brand__platforms span::after {
	content: "\00b7";
	margin-left: 10px;
	color: rgba(142, 166, 196, 0.5);
}

.pctl-brand__platforms span:last-child::after {
	content: none;
}

.pctl-title {
	margin: 2px 0 14px;
	font-family: var(--pctl-font-display);
	font-weight: 700;
	font-size: clamp(32px, 9vw, 56px);
	line-height: 1;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	color: #ffffff;
	transform: skewX(-8deg);
	text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55), 0 0 26px rgba(77, 163, 255, 0.35);
}

@supports (-webkit-background-clip: text) or (background-clip: text) {
	.pctl-title {
		background: linear-gradient(180deg, #ffffff 0%, #e4efff 36%, #97c4f7 54%, #ffffff 100%);
		-webkit-background-clip: text;
		background-clip: text;
		color: transparent;
		text-shadow: none;
		filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.55)) drop-shadow(0 0 22px rgba(77, 163, 255, 0.35));
	}
}

/* Wettbewerbsleiste wie im Banner */
.pctl-comps {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 14px;
	margin: 0;
	padding: 9px 16px;
	list-style: none;
	font-family: var(--pctl-font-display);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #cfe0f5;
	background: linear-gradient(180deg, rgba(16, 32, 58, 0.92), rgba(7, 16, 33, 0.92));
	border: 1px solid var(--pctl-line);
	border-radius: 999px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 24px rgba(0, 0, 0, 0.45);
}

.pctl-comps li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.pctl-comps i {
	color: var(--pctl-blue-bright);
	font-size: 11px;
}

/* --- Karte --------------------------------------------------------------- */

.pctl-card {
	position: relative;
	padding: 26px 24px 22px;
	background: linear-gradient(180deg, rgba(16, 32, 58, 0.86), rgba(6, 13, 26, 0.94));
	border: 1px solid var(--pctl-line);
	border-radius: var(--pctl-radius);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.05);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

/* Leuchtende Oberkante */
.pctl-card::before {
	content: "";
	position: absolute;
	top: -1px;
	left: 12%;
	right: 12%;
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--pctl-blue-bright), transparent);
	box-shadow: 0 0 14px rgba(77, 163, 255, 0.7);
}

.pctl-card__claim {
	margin: 0 0 20px;
	text-align: center;
	font-size: 15px;
	color: var(--pctl-muted);
}

.pctl-card__claim strong {
	color: var(--pctl-text);
}

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

.pctl-field {
	position: relative;
	margin-bottom: 14px;
}

.pctl-field__icon {
	position: absolute;
	top: 50%;
	left: 14px;
	transform: translateY(-50%);
	color: var(--pctl-muted);
	font-size: 14px;
	pointer-events: none;
	transition: color 0.15s ease;
}

.pctl-input {
	width: 100%;
	height: 48px;
	padding: 0 14px 0 42px;
	font-size: 15px;
	color: var(--pctl-text);
	background: rgba(5, 12, 24, 0.85);
	border: 1px solid rgba(93, 160, 233, 0.25);
	border-radius: 10px;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.pctl-input::placeholder {
	color: #6b809b;
}

.pctl-input:focus {
	background: rgba(9, 20, 38, 0.95);
	border-color: var(--pctl-blue-bright);
	box-shadow: 0 0 0 3px rgba(77, 163, 255, 0.18), 0 0 22px rgba(47, 127, 224, 0.25);
}

.pctl-field:focus-within .pctl-field__icon {
	color: var(--pctl-blue-bright);
}

/* Felder mit Label darueber: Icon und Auge sitzen auf Hoehe des Eingabefeldes */
.pctl-field__icon--labelled,
.pctl-field__toggle--labelled {
	top: auto;
	bottom: 24px;
	transform: translateY(50%);
}

.pctl-field__toggle {
	position: absolute;
	top: 50%;
	right: 6px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	color: var(--pctl-muted);
	background: none;
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.pctl-field__toggle:hover,
.pctl-field__toggle:focus-visible {
	color: var(--pctl-blue-bright);
	outline: none;
}

.pctl-formrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 18px;
	font-size: 13px;
}

.pctl-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--pctl-muted);
	cursor: pointer;
	user-select: none;
}

.pctl-check input {
	width: 16px;
	height: 16px;
	accent-color: var(--pctl-blue);
	cursor: pointer;
}

.pctl-link {
	color: var(--pctl-blue-soft);
	text-decoration: none;
	transition: color 0.15s ease;
}

.pctl-link:hover,
.pctl-link:focus-visible {
	color: #ffffff;
	text-decoration: underline;
}

.pctl-label {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #a8bdd6;
}

.pctl-hint {
	margin: -6px 0 16px;
	font-size: 12px;
	line-height: 1.6;
	color: var(--pctl-muted);
}

.pctl-hint a {
	color: var(--pctl-blue-soft);
	text-decoration: none;
}

.pctl-hint a:hover {
	color: #ffffff;
	text-decoration: underline;
}

/* Cloudflare Turnstile */
.pctl-captcha {
	margin-bottom: 16px;
	min-height: 65px;
}

/* --- Buttons ------------------------------------------------------------- */

.pctl-btn {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 50px;
	font-family: var(--pctl-font-display);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	text-decoration: none;
	border-radius: 10px;
	border: 1px solid transparent;
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.12s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.pctl-btn--primary {
	color: #ffffff;
	background: linear-gradient(180deg, #4da3ff 0%, #2f7fe0 52%, #1d5fb4 100%);
	border-color: rgba(154, 204, 255, 0.55);
	box-shadow: 0 10px 26px rgba(47, 127, 224, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.pctl-btn--primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 32px rgba(47, 127, 224, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.pctl-btn--primary:active {
	transform: translateY(1px);
}

/* Glanzstreifen */
.pctl-btn--primary::after {
	content: "";
	position: absolute;
	top: 0;
	left: -60%;
	width: 40%;
	height: 100%;
	background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
	transform: skewX(-20deg);
	transition: left 0.5s ease;
}

.pctl-btn--primary:hover::after {
	left: 120%;
}

.pctl-btn--ghost {
	margin-top: 10px;
	color: var(--pctl-blue-soft);
	background: rgba(77, 163, 255, 0.07);
	border-color: rgba(93, 160, 233, 0.35);
}

.pctl-btn--ghost:hover {
	color: #ffffff;
	background: rgba(77, 163, 255, 0.16);
	border-color: var(--pctl-blue-bright);
}

.pctl-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0 4px;
	font-size: 11px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: #6b809b;
}

.pctl-divider::before,
.pctl-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(93, 160, 233, 0.35), transparent);
}

/* --- Hinweisbox ---------------------------------------------------------- */

.pctl-alert {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 18px;
	padding: 11px 14px;
	font-size: 13px;
	color: #ffd9d9;
	background: rgba(176, 42, 55, 0.18);
	border: 1px solid rgba(233, 84, 96, 0.45);
	border-radius: 10px;
}

.pctl-alert i {
	color: #ff8e8e;
}

.pctl-alert--info {
	color: #d8e8ff;
	background: rgba(47, 127, 224, 0.16);
	border-color: rgba(93, 160, 233, 0.45);
}

.pctl-alert--info i {
	color: var(--pctl-blue-bright);
}

.pctl-alert--success {
	color: #d7f6e3;
	background: rgba(38, 148, 94, 0.16);
	border-color: rgba(64, 196, 129, 0.45);
}

.pctl-alert--success i {
	color: #5fd99b;
}

/* Bestaetigungsseiten (Registrierung abgeschlossen, Mail versendet) */
.pctl-message {
	margin: 0 0 20px;
	font-size: 15px;
	line-height: 1.7;
	color: #c3d4e8;
	text-align: center;
}

.pctl-message a {
	color: var(--pctl-blue-soft);
	text-decoration: none;
}

.pctl-message a:hover {
	color: #ffffff;
	text-decoration: underline;
}

.pctl-message__icon {
	display: block;
	margin: 0 auto 14px;
	width: 56px;
	height: 56px;
	line-height: 56px;
	font-size: 24px;
	color: #5fd99b;
	text-align: center;
	background: rgba(38, 148, 94, 0.14);
	border: 1px solid rgba(64, 196, 129, 0.4);
	border-radius: 50%;
}

/* --- Fuss ---------------------------------------------------------------- */

.pctl-footer {
	position: relative;
	z-index: 1;
	margin-top: 26px;
	text-align: center;
	font-size: 12px;
	line-height: 1.7;
	color: #6b809b;
}

.pctl-footer a {
	color: #8ea6c4;
	text-decoration: none;
}

.pctl-footer a:hover {
	color: var(--pctl-blue-soft);
	text-decoration: underline;
}

/* --- Mobil / Barrierefreiheit ------------------------------------------- */

@media (max-width: 480px) {
	body.pctl-login {
		padding: 24px 14px;
	}

	.pctl-card {
		padding: 22px 18px 18px;
	}

	.pctl-comps {
		font-size: 11px;
		gap: 4px 10px;
		padding: 8px 14px;
		/* mehrzeilig sieht die Pillenform unruhig aus */
		border-radius: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pctl-bg__beam {
		animation: none;
	}

	.pctl-btn,
	.pctl-btn--primary::after {
		transition: none;
	}
}
