/* =================================================================
   ADENCI – auth.css
   Version 3: Signet bleibt Linienzeichnung. Die innere Strahlen
   wachsen beim Bestätigen aus der Mitte nach außen. Keine Füllung.
   ================================================================= */

.auth-wrap {
	max-width: 920px;
	margin: 80px auto;
	padding: 40px;
	border: 1px solid #e5e5e5;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.auth-badge {
	display: inline-block;
	font-size: 12px;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	padding: 5px 10px;
	background: #0f5132;
	color: #e6f4ec;
}

.auth-head h1 {
	font-size: 20px;
	font-weight: 500;
	margin: 12px 0 6px;
	letter-spacing: 0.02em;
}

.auth-sub {
	color: #666;
	margin-top: 6px;
	font-size: 14px;
}

.auth-grid {
	display: grid;
	grid-template-columns: 1.1fr .9fr;
	gap: 32px;
	margin-top: 32px;
}

.auth-cta {
	display: inline-block;
	margin-top: 16px;
	padding: 12px 18px;
	background: #111;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	transition: opacity .15s ease;
}

.auth-cta:hover {
	opacity: .85;
}

.auth-meta {
	font-size: 13px;
	color: #888;
	margin-top: 16px;
}


/* =================================================================
   Verifikations-Bühne – Vollbild
   ================================================================= */

.auth-stage {
	position: fixed;
	inset: 0;
	z-index: 9999;
	background: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 30px;
	padding: 24px;
	box-sizing: border-box;
	color: #1d1d1b;
	transition: opacity .55s ease;
}

.auth-stage.is-leaving {
	opacity: 0;
	pointer-events: none;
}

.auth-stage[hidden],
.auth-result[hidden] {
	display: none;
}

html.auth-locked,
html.auth-locked body {
	overflow: hidden;
}


/* =================================================================
   Signet
   Phase 1: die Außenkontur zeichnet sich.
   Phase 2: die acht Strahlen wachsen aus der Mitte nach außen.
   Das Signet wird nie gefüllt – es lebt von den Linien.
   ================================================================= */

.auth-glyph {
	width: 92px;
	height: 92px;
}

.auth-glyph__outline {
	fill: none;
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	transition: stroke-dashoffset 1.35s cubic-bezier(.33, .05, .2, 1),
	            stroke .5s ease;
}

.auth-stage.is-running .auth-glyph__outline {
	stroke-dashoffset: 0;
}

.auth-glyph__rays path {
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	transition: stroke-dashoffset .55s cubic-bezier(.22, .61, .36, 1),
	            stroke .5s ease;
}

.auth-stage.is-sealed .auth-glyph__rays path {
	stroke-dashoffset: 0;
}

/* Erst die Achsen, dann die Diagonalen – gibt der Blüte einen Takt */
.auth-stage.is-sealed .auth-glyph__rays path:nth-child(n+5) {
	transition-delay: .12s;
}

/* Abgelehnt: das Signet bleibt unvollständig und blasst ab */
.auth-stage.is-rejected .auth-glyph__outline,
.auth-stage.is-rejected .auth-glyph__rays path {
	stroke: #b0aeaa;
}


/* =================================================================
   Fortschritt + Text
   ================================================================= */

.auth-progress {
	position: relative;
	width: 150px;
	height: 1px;
	background: #e5e5e5;
	overflow: hidden;
}

.auth-progress__fill {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: #1d1d1b;
	transition: width 1.7s cubic-bezier(.25, .6, .3, 1);
}

.auth-stage.is-running .auth-progress__fill {
	width: 100%;
}

.auth-stage__caption {
	margin: 0;
	font-size: 12px;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #8a8a86;
	min-height: 1em;
	text-align: center;
	transition: opacity .3s ease;
}

.auth-stage__caption.is-swapping {
	opacity: 0;
}


/* =================================================================
   Ergebnis – gestaffelter Reveal
   ================================================================= */

.auth-result > * {
	opacity: 0;
	transform: translateY(9px);
	transition: opacity .5s cubic-bezier(.22, .61, .36, 1),
	            transform .5s cubic-bezier(.22, .61, .36, 1);
}

.auth-result.is-revealed > * {
	opacity: 1;
	transform: none;
}

.auth-result.is-revealed .auth-head h1  { transition-delay: .08s; }
.auth-result.is-revealed .auth-sub      { transition-delay: .16s; }
.auth-result.is-revealed .auth-grid     { transition-delay: .24s; }

.auth-result img {
	max-width: 100%;
	height: auto;
	display: block;
}


/* =================================================================
   Responsive + Reduced Motion
   ================================================================= */

@media (max-width: 900px) {
	.auth-grid {
		grid-template-columns: 1fr;
	}

	.auth-wrap {
		margin: 60px auto;
		padding: 28px 22px;
	}

	.auth-glyph {
		width: 78px;
		height: 78px;
	}
}

@media (prefers-reduced-motion: reduce) {

	.auth-stage,
	.auth-glyph__outline,
	.auth-glyph__rays path,
	.auth-progress__fill,
	.auth-stage__caption,
	.auth-result > * {
		transition: none !important;
	}

	.auth-glyph__outline,
	.auth-glyph__rays path {
		stroke-dashoffset: 0;
	}
}