:root {
	color-scheme: light dark;
	--bg: #f6f7f9;
	--surface: #ffffff;
	--text: #1a1d21;
	--muted: #5b6470;
	--border: #d9dde3;
	--accent: #1f5eff;
	--accent-text: #ffffff;
	--danger: #b3261e;
	--radius: 10px;
}

@media (prefers-color-scheme: dark) {
	:root {
		--bg: #121417;
		--surface: #1a1d21;
		--text: #eceef1;
		--muted: #9aa3ae;
		--border: #2e333a;
		--accent: #5b8cff;
		--accent-text: #0b0d10;
		--danger: #f2877f;
	}
}

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

body {
	margin: 0;
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: var(--bg);
	color: var(--text);
	font-family:
		system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
	line-height: 1.5;
}

.card {
	width: 100%;
	max-width: 22rem;
	padding: 2rem 1.5rem;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	text-align: center;
}

.brand {
	margin: 0 0 0.25rem;
	font-size: 1.5rem;
	font-weight: 700;
	letter-spacing: -0.01em;
}

.lead {
	margin: 0 0 1.5rem;
	color: var(--muted);
}

.actions {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.button {
	width: 100%;
	padding: 0.65rem 1rem;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: transparent;
	color: inherit;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.button:hover:not(:disabled) {
	border-color: var(--muted);
}

.button:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

.button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.button-primary {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--accent-text);
}

.button-primary:hover:not(:disabled) {
	border-color: var(--accent);
	filter: brightness(1.08);
}

.error {
	margin: 1rem 0 0;
	color: var(--danger);
	font-size: 0.9rem;
}

a.button {
	display: block;
	text-align: center;
	text-decoration: none;
}

a {
	color: var(--accent);
}

/* Halaman teks panjang (beranda, privasi, ketentuan). */
.card.doc {
	max-width: 42rem;
	text-align: left;
}

.doc h1 {
	margin: 0 0 0.25rem;
	font-size: 1.5rem;
}

.doc h2 {
	margin: 1.5rem 0 0.5rem;
	font-size: 1.1rem;
}

.doc p,
.doc li {
	color: var(--text);
}

.doc .lead,
.doc .muted {
	color: var(--muted);
}

.doc .session {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
	text-align: center;
}

.doc .footer {
	margin: 1.5rem 0 0;
	padding-top: 1rem;
	border-top: 1px solid var(--border);
	color: var(--muted);
	font-size: 0.9rem;
	text-align: center;
}

.doc .back {
	margin: 0 0 1rem;
	font-size: 0.9rem;
}

.logo {
	display: block;
	margin: 0 auto 0.75rem;
	border-radius: 14px;
}
