

.loading-overlay {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--bg);
}

.loading-overlay.overlay-scoped {
	position: absolute;
}

#loading-canvas {
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.loading-content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.loading-dots {
	display: flex;
	gap: 7px;
}

.loading-dots span {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--accent);
	animation: pulse 1.2s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
	animation-delay: 0.16s;
}

.loading-dots span:nth-child(3) {
	animation-delay: 0.32s;
}

@keyframes pulse {
	0%,
	80%,
	100% {
		opacity: 0.25;
		transform: scale(0.8);
	}
	40% {
		opacity: 1;
		transform: scale(1);
	}
}

.loading-text {
	font-size: 0.85rem;
	color: var(--text-dim);
	letter-spacing: 0.01em;
}



#login-view {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}

.login-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 22px;
	width: 100%;
	max-width: 330px;
	text-align: center;
}

#login-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
}

.field {
	width: 100%;
	padding: 12px 14px;
	font-family: inherit;
	font-size: 0.92rem;
	color: var(--text);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	outline: none;
	transition: border-color var(--ease), box-shadow var(--ease);
}

.field::placeholder {
	color: var(--text-faint);
}

.field:focus {
	border-color: var(--accent-line);
	box-shadow: 0 0 0 3px var(--accent-soft);
}

.btn-primary {
	padding: 12px 18px;
	font-family: inherit;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--accent-contrast);
	background: var(--accent);
	border: none;
	border-radius: var(--radius-sm);
	cursor: pointer;
	transition: filter var(--ease), transform var(--ease);
}

.btn-primary:hover {
	filter: brightness(1.08);
}

.btn-primary:active {
	transform: scale(0.985);
}

.btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 13px;
	font-family: inherit;
	font-size: 0.83rem;
	font-weight: 500;
	color: var(--text-dim);
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-xs);
	cursor: pointer;
	transition: all var(--ease);
}

.btn-ghost:hover {
	color: var(--text);
	background: var(--surface-2);
	border-color: var(--border-strong);
}

.error-text {
	min-height: 18px;
	font-size: 0.82rem;
	color: var(--danger);
}

