/*
 * 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/>.
 */

.loadingContainer {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.errorContainer {
	display: flex;
	min-height: 100%;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.errorIcon {
	display: flex;
	height: 5rem;
	width: 5rem;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background-color: var(--background-tertiary);
}

.errorIconSvg {
	height: 2.5rem;
	width: 2.5rem;
	color: var(--text-tertiary);
}

.errorTitle {
	text-align: center;
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--text-primary);
}

.errorText {
	text-align: center;
	font-size: 0.875rem;
	color: var(--text-tertiary);
}

.container {
	display: flex;
	min-height: 0;
	flex: 1 1 0%;
	flex-direction: column;
}

.entityHeader {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.75rem;
	text-align: center;
}

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

.entityText {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.entityTitleWrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
}

.packBadge {
	background: var(--background-modifier-accent);
	border-radius: 999px;
	padding: 0.15rem 0.6rem;
	font-size: 0.75rem;
	color: var(--text-primary);
	font-weight: 600;
}

.entityTitle {
	font-weight: 700;
	font-size: 1.25rem;
	color: var(--text-primary);
}

.verifiedIcon {
	height: 1.5rem;
	width: 1.5rem;
	color: var(--text-primary);
}

.entityStats {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
}

.packDescription {
	font-size: 0.95rem;
	color: var(--text-secondary);
	line-height: 1.4;
	margin: 0.25rem 0;
}

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

.packMetaText {
	font-size: 0.78rem;
	color: var(--text-tertiary);
}

.entityStat {
	display: flex;
	align-items: center;
}

.onlineDot {
	margin-right: 0.375rem;
	height: 0.625rem;
	width: 0.625rem;
	border-radius: 9999px;
	background-color: var(--status-online);
}

.offlineDot {
	margin-right: 0.375rem;
	height: 0.625rem;
	width: 0.625rem;
	border-radius: 9999px;
	background-color: var(--text-tertiary-secondary);
}

.statText {
	font-size: 0.875rem;
	color: var(--text-tertiary);
}

.entityIconWrapper {
	width: 5rem;
	height: 5rem;
	min-width: 5rem;
	min-height: 5rem;
	border-radius: 9999px;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.entityIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background-color: var(--background-primary);
	object-fit: cover;
}

.themeIconSpot {
	display: flex;
	height: 5rem;
	width: 5rem;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark, #4752c4) 100%);
}

.themeIcon {
	height: 2.5rem;
	width: 2.5rem;
	color: white;
}

.form {
	margin-top: 1.5rem;
	flex: 1 1 0%;
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

.loginForm {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.bottomLink {
	margin-top: 1rem;
	text-align: left;
}

.bottomLinks {
	margin-top: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.bottomLinkText {
	font-size: 0.875rem;
	color: var(--text-tertiary);
}

.bottomLinkAnchor {
	font-size: 0.875rem;
	color: var(--text-link);
	transition-property: color;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
	cursor: pointer;
}

.bottomLinkAnchor:hover {
	color: var(--text-link);
	text-decoration: underline;
}

.divider {
	margin-top: 1.5rem;
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.dividerLine {
	flex: 1 1 0%;
	border-top: 1px solid var(--background-modifier-accent);
}

.dividerText {
	font-size: 0.875rem;
	color: var(--text-tertiary);
}

.forgotPasswordLink {
	text-align: left;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.forgotPasswordLinkText {
	font-size: 0.875rem;
	color: var(--text-tertiary);
	transition-property: color;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
	cursor: pointer;
}

.forgotPasswordLinkText:hover {
	color: var(--text-primary);
	text-decoration: underline;
}

.usernameHint {
	margin-top: 0.25rem;
	display: block;
	font-size: 0.75rem;
	color: var(--text-tertiary);
}

.consentRow {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
}

.consentLabel {
	padding-top: 2px;
	font-size: 0.875rem;
	line-height: 1.25rem;
	color: var(--text-primary);
}

.policyLink {
	color: var(--text-link);
	text-decoration: none;
	transition-property: color;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	transition-duration: 150ms;
}

.policyLink:hover {
	text-decoration: underline;
}

.submitSpacer {
	height: 4px;
}

.disabledContainer {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	text-align: center;
}

.disabledText {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
}

.disabledSubtext {
	font-size: 0.875rem;
	color: var(--text-tertiary);
	line-height: 1.5;
}

.disabledActions {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.disabledActionLink {
	display: block;
	text-decoration: none;
}

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

.betaCodeHint {
	margin-top: -0.75rem;
	font-size: 0.75rem;
	line-height: 1rem;
	color: var(--text-tertiary);
}

.usernameValidation {
	margin-bottom: 1rem;
	border-radius: 0.375rem;
	border-width: 1px;
	border-color: var(--background-modifier-accent);
	background-color: var(--background-secondary);
	padding: 0.75rem;
}

.giftIconContainer {
	display: flex;
	height: 5rem;
	width: 5rem;
	align-items: center;
	justify-content: center;
	border-radius: 9999px;
	background: linear-gradient(to bottom right, rgb(168, 85, 247), rgb(236, 72, 153));
}

.giftIcon {
	height: 2.5rem;
	width: 2.5rem;
	color: white;
}

.entitySubtext {
	font-size: 0.75rem;
	color: var(--text-tertiary);
}

.subtext {
	margin-top: 0.75rem;
	text-align: center;
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--text-tertiary);
}

.secondaryInlineAction {
	padding: 0;
	background: none;
	border: none;
	text-align: left;
	font-size: 0.875rem;
	color: var(--text-link);
	cursor: pointer;
}

.secondaryInlineAction:hover {
	text-decoration: underline;
}
