/*
 * Copyright (C) 2026 Fluxer Contributors
 *
 * This file is part of Fluxer.
 *
 * Fluxer is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * Fluxer is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with Fluxer. If not, see <https://www.gnu.org/licenses/>.
 */

.container {
	text-align: center;
}

.title {
	margin-bottom: 0.5rem;
	text-align: center;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0.025em;
	color: var(--text-primary);
}

.description {
	margin-bottom: 1.5rem;
	text-align: center;
	font-size: 0.875rem;
	color: var(--text-tertiary);
}

.codeSection {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin: 1.5rem 0;
}

.codeLabel {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-tertiary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin: 0;
}

.codeDisplay {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 24px;
	background-color: var(--background-tertiary);
	border: 2px solid var(--background-modifier-accent);
	border-radius: 12px;
}

.codeChar {
	font-family: var(--font-mono);
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-primary);
	letter-spacing: 0.1em;
}

.codeSeparator {
	font-family: var(--font-mono);
	font-size: 2rem;
	font-weight: 700;
	color: var(--text-tertiary);
	margin: 0 4px;
}

.spinner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 1.5rem 0;
}

.spinnerIcon {
	width: 24px;
	height: 24px;
	border: 3px solid var(--background-modifier-accent);
	border-top-color: var(--brand-primary);
	border-radius: 50%;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from {
		transform: rotate(0deg);
	}
	to {
		transform: rotate(360deg);
	}
}

.error {
	background-color: hsla(0, calc(100% * var(--saturation-factor)), 50%, 0.1);
	border: 1px solid hsla(0, calc(100% * var(--saturation-factor)), 50%, 0.2);
	border-radius: 8px;
	padding: 12px;
	font-size: 0.875rem;
	color: var(--status-danger);
	margin: 1rem 0;
	text-align: center;
}
