/*
 * Anmeldung. Bewusst eigenständig und ohne Abhängigkeit vom Theme: Die Seite
 * muss auch dann im Erscheinungsbild des Portals stehen, wenn ein anderes
 * Theme aktiv ist.
 */

/* Ohne die Stile des Blockeditors bringt die Seite ihren eigenen Rahmen mit. */
body.praxisiq-anmeldung {
	margin: 0;
	background: #F6F2EA;
}

.pq-auth {
	--pq-bg: #F6F2EA;
	--pq-surface: #FFFCF6;
	--pq-ink: #241C13;
	--pq-ink-soft: #4A4036;
	--pq-muted: #7A6E60;
	--pq-line: #E4DBCB;
	--pq-line-strong: #D6C9B4;
	--pq-accent: #0E5A54;
	--pq-accent-dark: #0A423E;
	--pq-clay: #AE5230;
	--pq-clay-soft: #FBEDE5;
	--pq-ok-soft: #E6F0E9;
	--pq-radius: 16px;

	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 18px;
	min-height: min(100dvh, 900px);
	padding: 48px 20px 56px;
	background: var(--pq-bg);
	color: var(--pq-ink);
	font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
}

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

.pq-auth-card {
	width: 100%;
	max-width: 428px;
	padding: 32px 32px 30px;
	background: var(--pq-surface);
	border: 1px solid var(--pq-line-strong);
	border-radius: var(--pq-radius);
	box-shadow: 0 1px 2px rgba(43, 33, 20, .04), 0 12px 32px -12px rgba(43, 33, 20, .16);
}

/* ---------- Marke ---------- */

.pq-auth-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 26px;
}

.pq-auth-mark {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: var(--pq-accent);
	flex: none;
}

.pq-auth-name {
	font-family: Fraunces, ui-serif, Georgia, "Times New Roman", serif;
	font-size: 17px;
	font-weight: 600;
	letter-spacing: -.02em;
}

/* ---------- Text ---------- */

.pq-auth-title {
	margin: 0 0 6px;
	font-family: Fraunces, ui-serif, Georgia, "Times New Roman", serif;
	font-size: 25px;
	font-weight: 600;
	letter-spacing: -.02em;
	line-height: 1.2;
	color: var(--pq-ink);
}

.pq-auth-lede {
	margin: 0 0 22px;
	font-size: 13.6px;
	line-height: 1.6;
	color: var(--pq-muted);
}

/* ---------- Meldungen ---------- */

.pq-auth-note {
	margin: 0 0 18px;
	padding: 11px 14px;
	border: 1px solid var(--pq-line-strong);
	border-radius: 11px;
	background: var(--pq-ok-soft);
	font-size: 13.2px;
	line-height: 1.5;
	color: var(--pq-ink-soft);
}

.pq-auth-note.err,
.pq-auth-note.warn {
	background: var(--pq-clay-soft);
	border-color: #EFD3C3;
	color: #7C3517;
}

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

.pq-auth-form {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
}

.pq-auth-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.pq-auth-field > span {
	font-size: 12.6px;
	font-weight: 600;
	color: var(--pq-ink-soft);
}

.pq-auth-field input {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--pq-line-strong);
	border-radius: 10px;
	background: var(--pq-bg);
	color: var(--pq-ink);
	font: inherit;
	font-size: 14.5px;
	transition: border-color .16s ease, box-shadow .16s ease;
}

.pq-auth-field input:focus {
	outline: none;
	border-color: var(--pq-accent);
	box-shadow: 0 0 0 3px rgba(14, 90, 84, .13);
}

.pq-auth-check {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13.4px;
	color: var(--pq-ink-soft);
	cursor: pointer;
}

.pq-auth-check input {
	width: 16px;
	height: 16px;
	accent-color: var(--pq-accent);
	flex: none;
}

.pq-auth-btn {
	margin-top: 4px;
	padding: 12px 18px;
	border: 1px solid var(--pq-accent);
	border-radius: 10px;
	background: var(--pq-accent);
	color: #FFFCF6;
	font: inherit;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
	transition: background .16s ease, transform .12s ease;
}

.pq-auth-btn:hover {
	background: var(--pq-accent-dark);
	border-color: var(--pq-accent-dark);
}

.pq-auth-btn:active {
	transform: translateY(1px);
}

.pq-auth-btn:focus-visible,
.pq-auth-alt a:focus-visible {
	outline: 2px solid var(--pq-clay);
	outline-offset: 2px;
}

/* ---------- Nebenwege ---------- */

.pq-auth-alt {
	margin: 20px 0 0;
	padding-top: 18px;
	border-top: 1px solid var(--pq-line);
	font-size: 13.4px;
}

.pq-auth-alt a {
	color: var(--pq-accent);
	text-decoration: none;
	font-weight: 600;
}

.pq-auth-alt a:hover {
	text-decoration: underline;
}

.pq-auth-foot {
	margin: 0;
	max-width: 428px;
	text-align: center;
	font-size: 12.2px;
	line-height: 1.5;
	color: var(--pq-muted);
}

@media (max-width: 480px) {
	.pq-auth {
		padding: 28px 16px 36px;
	}
	.pq-auth-card {
		padding: 26px 22px 24px;
	}
	.pq-auth-title {
		font-size: 23px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pq-auth * {
		transition: none !important;
	}
}
