/* --------------------------------------------------------------------------
   Zugangsseiten (Anmeldung, Passwort vergessen, neues Passwort)
   -------------------------------------------------------------------------- */

.access-page {
	position: relative;
	display: flex;
	align-items: center;
	min-height: min(calc(100vh - 220px), 820px);
	overflow: hidden;
	padding-block: clamp(3rem, 6vw, 5rem);
}

.access-page .afmo-blob--access {
	position: absolute;
	top: -32%;
	right: -38%;
	width: 70%;
	z-index: -1;
}

.access-section {
	margin-block: 0;
	width: 100%;
}

.access-page .eyebrow {
	margin-bottom: 1rem;
}

.access-page .headline-2-medium {
	margin-bottom: 1.5rem;
}

.access-page .body-20 {
	margin-bottom: 2rem;
	max-width: 32rem;
}

/* Grüner Block hinter der Box, trägt die Überschrift */
.access-box-headline {
	color: #fff /* //color-struggle */;
	font-size: 24px;
	font-weight: bold;
	letter-spacing: 0.96px;
	margin: 0;
	padding: 36px 0 24px 50px;
}

.access-box-backlayer {
	background: var(--afmo-green);
	border-radius: 30px;
	height: 100%;
	left: 0;
	position: absolute;
	top: 0;
	width: 90%;
	z-index: -1;
}

.access-box {
	background: var(--blue-50);
	border-radius: 30px;
	color: var(--afmo-darkblue);
	margin-left: 50px;
	padding: clamp(1.7rem, 3.8vw, 2.55rem);
}

.access-form {
	display: flex;
	flex-direction: column;
	gap: 0.72rem;
}

.access-form-field {
	position: relative;
}

.access-form-label {
	align-items: center;
	color: var(--blue-300);
	display: flex;
	font-size: 13px;
	font-weight: 600;
	inset: 0;
	line-height: 1;
	margin: 0;
	padding-inline: clamp(1.05rem, 2vw, 1.55rem);
	pointer-events: none;
	position: absolute;
	z-index: 2;
}

.access-form-input {
	background: transparent;
	border: 2px solid var(--blue-300);
	border-radius: 999px;
	color: var(--afmo-darkblue);
	display: block;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	height: 45px;
	line-height: 1;
	outline: 0;
	padding: 0 clamp(1.05rem, 2vw, 1.55rem);
	width: 100%;
}

.access-form-input:focus {
	box-shadow: 0 0 0 3px rgba(137, 185, 238, 0.22);
}

.access-form-field:has(.access-form-input:not(:placeholder-shown)) .access-form-label {
	display: none;
}

/* Autofill: Chrome erzwingt eigene Hintergrund- und Textfarben */
.access-form-input:-webkit-autofill,
.access-form-input:-webkit-autofill:hover,
.access-form-input:-webkit-autofill:focus {
	-webkit-text-fill-color: var(--afmo-darkblue);
	box-shadow: 0 0 0 60px var(--blue-50) inset;
}

.access-form-footer {
	align-items: center;
	display: flex;
	gap: 1.25rem;
	justify-content: space-between;
	padding-top: 1rem;
}

.access-form-link {
	color: var(--blue-500);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}

.access-form-link:hover,
.access-form-link:focus-visible {
	color: var(--afmo-darkblue);
	text-decoration: underline;
}

.access-form-submit {
	align-items: center;
	background: transparent;
	border: 0;
	color: var(--blue-500);
	display: inline-flex;
	font-size: 1rem;
	font-weight: 700;
	gap: 1rem;
	margin-left: auto;
	padding: 0;
	transition: color 0.25s ease, transform 0.25s ease;
}

.access-form-submit:hover,
.access-form-submit:focus-visible {
	color: var(--afmo-darkblue);
	transform: translateX(3px);
}

.access-form-submit:hover .sq-arrow,
.access-form-submit:focus-visible .sq-arrow {
	border-width: 3px;
	-webkit-text-stroke: 0.7px currentColor;
}

/* Flash- und Validierungsmeldungen */
.access-message {
	--access-message-color: var(--blue-500);
	border: 2px solid var(--access-message-color);
	border-radius: 20px;
	color: var(--access-message-color);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.35;
	margin-bottom: 1.25rem;
	padding: 0.85rem clamp(1.05rem, 2vw, 1.55rem);
}

.access-message p {
	margin: 0;
}

.access-message-title {
	display: block;
	font-weight: 700;
}

.access-message--danger {
	--access-message-color: var(--orange-500);
}

.access-message--warning {
	--access-message-color: var(--yellow-500);
}

.access-message--success {
	--access-message-color: var(--afmo-green);
}

@media screen and (max-width: 1199px) {
	.access-page {
		min-height: 0;
	}
}

@media screen and (max-width: 767px) {
	.access-box-headline {
		font-size: 20px;
		padding: 28px 0 20px 28px;
	}

	.access-box {
		margin-left: 28px;
		padding-inline: 1.25rem;
	}

	.access-box-backlayer {
		width: 94%;
	}

	.access-form-footer {
		align-items: flex-start;
		flex-direction: column;
		gap: 1rem;
	}

	.access-form-submit {
		align-self: flex-end;
	}
}
