/**
 * Login- und Registrierungsseite im CI.
 *
 * Main #db2978 · Text #181818 · Weiß #ffffff · Akzent #3a86b5
 * Apple-Style: große Radien, weiche Schatten, klare Typografie.
 */

.bul-auth {
	--bul-main: #db2978;
	--bul-main-dark: #b81f63;
	--bul-ink: #181818;
	--bul-muted: #6b6b70;
	--bul-line: #e6e6ec;
	--bul-accent: #3a86b5;

	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 20px 60px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--bul-ink);
	box-sizing: border-box;
}

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

.bul-auth__card {
	width: 100%;
	max-width: 440px;
	background: #fff;
	border: 1px solid var(--bul-line);
	border-radius: 26px;
	padding: 32px 28px;
	box-shadow: 0 18px 50px rgba(24, 24, 24, 0.10), 0 2px 6px rgba(24, 24, 24, 0.04);
	animation: bul-auth-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bul-auth__card--center {
	text-align: center;
}

@keyframes bul-auth-in {
	from { opacity: 0; transform: translateY(14px) scale(0.98); }
	to   { opacity: 1; transform: none; }
}

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

/* Logo / Marke */
.bul-auth__logo {
	display: block;
	max-width: 180px;
	max-height: 56px;
	width: auto;
	margin: 0 auto 22px;
	object-fit: contain;
}

.bul-auth__mark {
	width: 58px;
	height: 58px;
	margin: 0 auto 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 18px;
	color: #fff;
	background: linear-gradient(135deg, var(--bul-main) 0%, var(--bul-main-dark) 100%);
	box-shadow: 0 10px 24px rgba(219, 41, 120, 0.30);
}

.bul-auth__title {
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -0.01em;
	margin: 0 0 20px;
}

/* Reiter */
.bul-auth__tabs {
	display: flex;
	gap: 4px;
	padding: 4px;
	margin-bottom: 22px;
	background: #f3f3f6;
	border-radius: 14px;
}

.bul-auth__tab {
	flex: 1 1 50%;
	padding: 10px 12px;
	border: 0;
	border-radius: 11px;
	background: transparent;
	color: var(--bul-muted);
	font-size: 14.5px;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	font-family: inherit;
}

.bul-auth__tab.is-active {
	background: #fff;
	color: var(--bul-ink);
	box-shadow: 0 2px 8px rgba(24, 24, 24, 0.08);
}

/* Formulare */
.bul-auth__form {
	display: none;
}

.bul-auth__form.is-active {
	display: block;
}

.bul-auth__field {
	display: block;
	margin-bottom: 14px;
}

.bul-auth__field > span {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--bul-ink);
}

.bul-auth .bul-auth__field input {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	padding: 13px 15px;
	border: 1.5px solid var(--bul-line);
	border-radius: 14px;
	background: #fff;
	font-size: 16px; /* verhindert Zoom auf iOS */
	color: var(--bul-ink);
	font-family: inherit;
	box-sizing: border-box !important;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
	-webkit-appearance: none;
	appearance: none;
}

.bul-auth__field input:focus {
	outline: none;
	border-color: var(--bul-main);
	box-shadow: 0 0 0 3px rgba(219, 41, 120, 0.14);
}

.bul-auth__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.bul-auth__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 6px 0 20px;
	flex-wrap: wrap;
}

.bul-auth__check {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.4;
	color: var(--bul-muted);
	cursor: pointer;
}

.bul-auth__check input {
	width: 20px;
	height: 20px;
	accent-color: var(--bul-main);
	margin: 0;
	flex: 0 0 auto;
}

/* Zustimmung: gleiche Ausrichtung wie der Newsletter-Haken (bündig, mittig). */
.bul-auth__check--terms {
	margin: 0 0 20px;
	align-items: center;
	line-height: 1.4;
}

.bul-auth__check--terms input {
	flex: 0 0 auto;
}

.bul-auth__link {
	color: var(--bul-accent);
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
}

.bul-auth__link:hover {
	text-decoration: underline;
}

.bul-auth__link--block {
	display: block;
	margin-top: 14px;
	color: #d70015;
}

/* Aktionsbutton */
.bul-auth__submit {
	display: block;
	width: 100%;
	padding: 15px 20px;
	border: 0;
	border-radius: 980px;
	background: linear-gradient(135deg, var(--bul-main) 0%, var(--bul-main-dark) 100%);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	font-family: inherit;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	box-shadow: 0 6px 16px rgba(219, 41, 120, 0.24);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.bul-auth__submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(219, 41, 120, 0.30);
	color: #fff;
}

.bul-auth__submit:active {
	transform: scale(0.99);
}

/* Meldungen */
.bul-auth__errors {
	margin-bottom: 18px;
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(215, 0, 21, 0.07);
	border: 1px solid rgba(215, 0, 21, 0.25);
}

.bul-auth__errors p {
	margin: 3px 0;
	font-size: 13.5px;
	color: #a1000f;
}

.bul-auth__hint {
	margin: 14px 0 0;
	text-align: center;
	font-size: 12.5px;
	color: var(--bul-muted);
}

/* Mobil */
@media (max-width: 480px) {
	.bul-auth {
		padding: 24px 16px 40px;
	}
	.bul-auth__card {
		padding: 26px 20px;
		border-radius: 22px;
	}
	.bul-auth__grid {
		grid-template-columns: 1fr;
		gap: 0;
	}
}

/* Rechts-nach-links */
.rtl .bul-auth__field > span,
.rtl .bul-auth__check {
	text-align: right;
}

.rtl .bul-auth__check--terms {
	flex-direction: row-reverse;
}
