/*
 * 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 {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.header {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	text-align: center;
}

.iconContainer {
	margin: 1rem auto 0;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 4rem;
	width: 4rem;
	border-radius: 9999px;
}

.icon {
	color: rgb(251 146 60);
}

.title {
	font-size: 1.25rem;
	line-height: 1.75rem;
	font-weight: 600;
	color: var(--text-primary);
}

.description {
	font-size: 0.875rem;
	line-height: 1.625;
	color: var(--text-secondary);
}

.tabContainer {
	display: flex;
	gap: 0.25rem;
	padding: 0.25rem;
	border-radius: 0.75rem;
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-tertiary);
}

.tabButton {
	flex: 1;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	border: none;
	background-color: transparent;
	font-size: 0.875rem;
	line-height: 1.25rem;
	font-weight: 600;
	color: var(--text-secondary);
	text-align: center;
	transition:
		background-color 150ms ease,
		color 150ms ease,
		box-shadow 150ms ease;
	cursor: pointer;
}

.tabInactive {
	color: var(--text-secondary);
}

.tabButton:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px var(--border-focus, var(--brand-primary));
}

.tabActive {
	background-color: var(--background-primary);
	color: var(--text-primary);
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.tabInactive:hover,
.tabInactive:focus-visible {
	color: var(--text-primary);
}

.contentContainer {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.stepsCard {
	padding: 1rem;
	border-radius: 0.5rem;
	border: 1px solid var(--background-header-secondary);
	background-color: var(--background-secondary);
}

.stepsContainer {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.stepRow {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.stepBadge {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	height: 1.5rem;
	width: 1.5rem;
	border-radius: 9999px;
	background-color: var(--brand-primary);
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 500;
	color: white;
}

.stepText {
	flex: 1;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-primary);
}

.resendSection {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.resendText {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-tertiary);
	text-align: center;
}

.formContainer {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.inputGroup {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.phoneInputContainer {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

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

.countryOption {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.countryFlag {
	height: 1.25rem;
	width: 1.25rem;
}

.countryDialCode {
	color: var(--text-tertiary);
}

.countryValue {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.footerText {
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-primary-muted);
}

.selectLabel {
	font-weight: 500;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-primary);
}
