/* BodyFactory Userportal — eigenständig, Winner/Landing-Farben. */

.bfup-portal {
	--bfup-red: #e30613;
	--bfup-red-hot: #ff2a36;
	--bfup-black: #0b0b0b;
	--bfup-ink: #111;
	--bfup-muted: #8d8d8d;
	--bfup-line: #2a2a2a;
	--bfup-paper: #f4f4f4;
	--bfup-white: #fff;
	box-sizing: border-box;
	display: block;
	width: 100%;
	margin: 0 auto;
	padding: clamp(28px, 6vw, 72px) clamp(16px, 4vw, 32px);
	min-height: min(88vh, 920px);
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	color: var(--bfup-white);
	background:
		radial-gradient(1200px 600px at 50% -10%, rgba(227, 6, 19, 0.28), transparent 55%),
		radial-gradient(800px 400px at 100% 100%, rgba(227, 6, 19, 0.12), transparent 50%),
		linear-gradient(165deg, #050505 0%, #121212 48%, #0a0a0a 100%);
	border-radius: 14px;
	overflow: hidden;
	position: relative;
}

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

.bfup-shell {
	position: relative;
	z-index: 1;
	max-width: 440px;
	margin: 0 auto;
}

.bfup-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	margin: 0 0 clamp(32px, 5vw, 52px);
	text-align: center;
}

.bfup-logo {
	display: block;
	width: min(300px, 82vw);
	height: auto;
	filter: drop-shadow(0 10px 32px rgba(227, 6, 19, 0.28));
}

.bfup-tag {
	margin: 0;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.42em;
	text-transform: uppercase;
	color: #9a9a9a;
}

.bfup-welcome-kicker {
	margin: 0 0 18px;
	font-size: 0.68rem;
	font-weight: 500;
	letter-spacing: 0.38em;
	text-transform: uppercase;
	color: #b0b0b0;
}

.bfup-eyebrow {
	margin: 0 0 10px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--bfup-red);
}

.bfup-title {
	margin: 0 0 12px;
	font-size: clamp(1.85rem, 1.4rem + 2.2vw, 2.6rem);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--bfup-white);
}

.bfup-title--welcome {
	margin: 0 0 20px;
	font-size: clamp(1.55rem, 1.2rem + 1.6vw, 2.15rem);
	font-weight: 500;
	letter-spacing: 0.04em;
	line-height: 1.25;
	text-transform: none;
	color: #f2f2f2;
}

/* Theme setzt .bf-slot h1 auf Uppercase — hier bewusst Satzschrift. */
.bfup-portal .bfup-title--welcome,
.bf-slot .bfup-portal h1.bfup-title--welcome {
	text-transform: none;
	font-weight: 500;
	letter-spacing: 0.04em;
}

.bfup-title--welcome::after {
	content: "";
	display: block;
	width: 42px;
	height: 1px;
	margin: 18px 0 0;
	background: linear-gradient(90deg, rgba(227, 6, 19, 0.95), rgba(200, 200, 200, 0.35));
}

.bfup-lead {
	margin: 0 0 28px;
	color: #c8c8c8;
	font-size: 1.02rem;
	line-height: 1.5;
}

.bfup-lead--welcome {
	margin: 0 0 36px;
	max-width: 28em;
	color: #a3a3a3;
	font-size: 0.95rem;
	font-weight: 400;
	letter-spacing: 0.02em;
	line-height: 1.65;
}

.bfup-form {
	display: grid;
	gap: 8px;
}

.bfup-label {
	margin: 8px 0 0;
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #b8b8b8;
}

.bfup-input {
	width: 100%;
	padding: 14px 14px;
	border: 1px solid var(--bfup-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.04);
	color: var(--bfup-white);
	font-size: 1rem;
	line-height: 1.3;
}

.bfup-input:focus {
	outline: 2px solid var(--bfup-red);
	outline-offset: 1px;
	border-color: transparent;
}

.bfup-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 12px 20px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.bfup-btn--primary {
	margin-top: 12px;
	background: var(--bfup-red);
	color: var(--bfup-white);
}

.bfup-btn--primary:hover,
.bfup-btn--primary:focus {
	background: var(--bfup-red-hot);
	color: var(--bfup-white);
}

.bfup-btn--ghost {
	background: transparent;
	border-color: #3a3a3a;
	color: var(--bfup-white);
}

.bfup-btn--ghost:hover,
.bfup-btn--ghost:focus {
	border-color: var(--bfup-red);
	color: var(--bfup-white);
}

.bfup-btn--text {
	background: transparent;
	color: var(--bfup-muted);
	min-height: 40px;
	font-weight: 600;
}

.bfup-btn--text:hover,
.bfup-btn--text:focus {
	color: var(--bfup-white);
}

.bfup-actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: stretch;
}

.bfup-actions form,
.bfup-logout {
	margin: 8px 0 0;
}

.bfup-hero .bfup-logout {
	margin-top: 20px;
	text-align: center;
}

.bfup-error {
	margin: 8px 0 0;
	color: #ff8a93;
	font-size: 0.9rem;
}

.bfup-note {
	margin: 0;
	padding: 14px 16px;
	border: 1px solid var(--bfup-line);
	border-radius: 8px;
	color: #c8c8c8;
	font-size: 0.92rem;
	line-height: 1.45;
}

.bfup-card {
	max-width: 440px;
	margin: 0 auto;
	padding: 24px;
	border-radius: 12px;
	background: #111;
}

/* Erster Eindruck: Logo + Titel kommen rein */
.bfup-portal.is-wow .bfup-logo {
	animation: bfup-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bfup-portal.is-wow .bfup-tag {
	animation: bfup-fade 0.8s ease 0.15s both;
}

.bfup-portal.is-wow .bfup-hero {
	animation: bfup-rise 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.bfup-portal.is-wow::before {
	content: "";
	position: absolute;
	inset: -20% -10% auto;
	height: 55%;
	background: radial-gradient(ellipse at center, rgba(227, 6, 19, 0.45), transparent 70%);
	animation: bfup-glow 2.8s ease-in-out infinite;
	pointer-events: none;
}

@keyframes bfup-rise {
	from {
		opacity: 0;
		transform: translateY(28px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes bfup-fade {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes bfup-glow {
	0%, 100% { opacity: 0.55; transform: scale(1); }
	50% { opacity: 0.9; transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
	.bfup-portal.is-wow .bfup-logo,
	.bfup-portal.is-wow .bfup-tag,
	.bfup-portal.is-wow .bfup-hero,
	.bfup-portal.is-wow::before {
		animation: none;
	}
}

@media (max-width: 719px) {
	.bfup-portal {
		padding: 24px 14px 40px;
		min-height: auto;
		border-radius: 10px;
	}

	.bfup-btn {
		min-height: 48px;
	}
}

body.bfup-has-portal .page_body .side_column {
	display: none;
}

body.bfup-has-portal .page_body .main_column {
	width: 100%;
	float: none;
}
