/*
 * Erscheinungsbild der Anmeldeoberfläche. Bewusst eine einzige Datei ohne Build-Schritt:
 * eine Instanz wird über diese Datei und den Abschnitt IdentityServer:Branding umgestaltet,
 * ohne dass Markup angefasst werden muss.
 */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	background: #f8fafc;
	color: #111827;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
	gap: 1.5rem;
	padding: 1.5rem;
}

.card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, .08);
	padding: 2.5rem;
	width: 100%;
	max-width: 420px;
}

.logo { display: block; max-height: 48px; margin-bottom: 1.5rem; }

h1 { font-size: 1.5rem; font-weight: 600; margin-bottom: .25rem; }

.subtitle { color: #6b7280; font-size: .875rem; margin-bottom: 2rem; }

label { display: block; font-size: .875rem; font-weight: 500; margin-bottom: .375rem; }

input[type=email], input[type=password] {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	padding: .625rem .875rem;
	font-size: 1rem;
	outline: none;
	transition: border-color .15s, box-shadow .15s;
}

input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }

.form-group { margin-bottom: 1.25rem; }

.checkbox { display: flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; font-size: .875rem; }
.checkbox label { margin: 0; font-weight: 400; }

.btn {
	width: 100%;
	background: var(--accent);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: .75rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: filter .15s;
}

.btn:hover { filter: brightness(.92); }

.error {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 8px;
	color: #dc2626;
	font-size: .875rem;
	padding: .75rem 1rem;
	margin-bottom: 1.25rem;
}

.notice { color: #374151; font-size: .9375rem; line-height: 1.5; }
.notice + .notice { margin-top: .75rem; }

.footer { color: #9ca3af; font-size: .75rem; }

@media (prefers-color-scheme: dark) {
	body { background: #0f172a; color: #e5e7eb; }
	.card { background: #1e293b; box-shadow: 0 4px 24px rgba(0, 0, 0, .4); }
	.subtitle, .notice { color: #cbd5e1; }
	input[type=email], input[type=password] { background: #0f172a; border-color: #334155; color: #e5e7eb; }
	.error { background: #451a1a; border-color: #7f1d1d; color: #fca5a5; }
}
