/* ============================================
   RENTERUS Login - Native CSS
   Converted from Tailwind CSS v4
   ============================================ */

/* ── CSS Variables (from Tailwind theme) ── */
:root {
	--font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', 'Consolas', monospace;

	/* Light mode colors (default) */
	--color-background: #ffffff;
	--color-foreground: #0a0a0a;
	--color-primary: #8aad3e;
	--color-primary-foreground: #fafafa;
	--color-muted: #f5f5f5;
	--color-muted-foreground: #737373;
	--color-border: #e5e5e5;
	--color-input: #e5e5e5;
	--color-destructive: #dc2626;
	--color-ring: #a3a3a3;

	--page-bg: #f8f9fa;
	--branding-bg: #ffffff;
	--login-panel-bg: #f3f4f6;
	--card-bg: #ffffff;
	--card-border: #e5e7eb;

	--branding-text: #1f2937;
	--branding-text-strong: #111827;
	--branding-feature: #4b5563;
	--branding-footer-text: #6b7280;
	--branding-footer-link: #374151;
	--branding-border: #e5e7eb;

	--radius: 0.625rem;
}

/* Dark mode colors */
[data-theme='dark'] {
	--color-background: #1a1a1a;
	--color-foreground: #f5f5f5;
	--color-primary: #8aad3e;
	--color-primary-foreground: #fafafa;
	--color-muted: #2a2a2a;
	--color-muted-foreground: #a3a3a3;
	--color-border: #3a3a3a;
	--color-input: #3a3a3a;
	--color-destructive: #ef4444;
	--color-ring: #6b7280;

	--page-bg: #0f0f0f;
	--branding-bg: #1a1a1a;
	--login-panel-bg: #161616;
	--card-bg: #1f1f1f;
	--card-border: #2a2a2a;

	--branding-text: #d1d5db;
	--branding-text-strong: #f3f4f6;
	--branding-feature: #9ca3af;
	--branding-footer-text: #9ca3af;
	--branding-footer-link: #d1d5db;
	--branding-border: #404040;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-sans);
	background-color: var(--color-background);
	color: var(--color-foreground);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	line-height: 1.5;
}

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
	border: none;
	background: none;
	cursor: pointer;
}

input {
	font-family: inherit;
}

img,
svg {
	display: block;
	max-width: 100%;
}

/* ── Animations ── */
@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes slideInFromLeft {
	from {
		opacity: 0;
		transform: translateX(-8px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes slideInFromRight {
	from {
		opacity: 0;
		transform: translateX(8px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

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

.animate-fade-in {
	animation: fadeIn 0.3s ease-out both;
}

.animate-slide-left {
	animation: slideInFromLeft 0.3s ease-out both;
}

.animate-slide-right {
	animation: slideInFromRight 0.3s ease-out both;
}

.animate-spin {
	animation: spin 1s linear infinite;
}

/* ── Page Layout ── */
.page-wrapper {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background-color: var(--page-bg);
	transition: background-color 0.3s ease;
}

.main-grid {
	flex: 1;
	display: grid;
	grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
	.main-grid {
		grid-template-columns: 1fr 1fr;
	}
}

/* ── Branding Panel (left side, desktop only) ── */
.branding-panel {
	display: none;
}

@media (min-width: 1024px) {
	.branding-panel {
		display: block;
	}
}

.branding-panel-inner {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 2rem;
	background-color: var(--branding-bg);
	overflow: hidden;
	transition: background-color 0.3s ease;
}

@media (min-width: 1024px) {
	.branding-panel-inner {
		padding: 3rem;
	}
}

@media (min-width: 1280px) {
	.branding-panel-inner {
		padding: 4rem;
	}
}

/* Subtle geometric accents */
.branding-bg-gradient {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background: radial-gradient(ellipse 80% 60% at 0% 100%, rgba(0, 0, 0, 0.02) 0%, transparent 50%), radial-gradient(ellipse 60% 50% at 100% 0%, rgba(0, 0, 0, 0.015) 0%, transparent 50%);
}

/* Minimal grid pattern */
.branding-bg-grid {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 0.3;
	background-image: linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
	background-size: 48px 48px;
}

/* Grid pattern for dark mode */
[data-theme='dark'] .branding-bg-grid {
	background-image: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
	opacity: 0.4;
}

.branding-logo {
	position: relative;
	z-index: 10;
}

.branding-logo img {
	height: 3.5rem;
	width: auto;
}

@media (min-width: 1024px) {
	.branding-logo img {
		height: 4rem;
	}
}

@media (min-width: 1280px) {
	.branding-logo img {
		height: 5rem;
	}
}

.branding-content {
	position: relative;
	z-index: 10;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3rem 0;
}

.branding-content-inner {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
}

.branding-headline {
	font-size: 1.875rem;
	font-weight: 300;
	letter-spacing: -0.025em;
	color: var(--branding-text);
	line-height: 1.15;
	transition: color 0.3s ease;
}

@media (min-width: 1024px) {
	.branding-headline {
		font-size: 2.25rem;
	}
}

@media (min-width: 1280px) {
	.branding-headline {
		font-size: 2.75rem;
	}
}

.branding-headline strong {
	font-weight: 600;
	color: var(--branding-text-strong);
	transition: color 0.3s ease;
}

/* Tagline */
.branding-tagline {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.branding-tagline-word {
	font-size: 1.125rem;
	color: #6d8f2e;
	font-weight: 600;
	letter-spacing: 0.025em;
}

@media (min-width: 1024px) {
	.branding-tagline-word {
		font-size: 1.25rem;
	}
}

.branding-tagline-separator {
	color: #d1d5db;
	font-weight: 300;
	font-size: 1.25rem;
	user-select: none;
}

/* Feature list */
.branding-features {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	padding-top: 1rem;
}

.branding-feature {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.branding-feature-dot-wrapper {
	height: 1.25rem;
	width: 1.25rem;
	border-radius: 50%;
	background-color: rgba(109, 143, 46, 0.1);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	margin-top: 0.125rem;
}

.branding-feature-dot {
	height: 0.375rem;
	width: 0.375rem;
	border-radius: 50%;
	background-color: #6d8f2e;
}

.branding-feature-text {
	color: var(--branding-feature);
	font-size: 0.875rem;
	line-height: 1.625;
	transition: color 0.3s ease;
}

@media (min-width: 1024px) {
	.branding-feature-text {
		font-size: 1rem;
	}
}

/* Branding footer */
.branding-footer {
	position: relative;
	z-index: 10;
	padding-top: 1.5rem;
	border-top: 1px solid var(--branding-border);
	transition: border-color 0.3s ease;
}

.branding-footer p {
	font-size: 0.875rem;
	color: var(--branding-footer-text);
	transition: color 0.3s ease;
}

.branding-footer a {
	color: var(--branding-footer-link);
	font-weight: 500;
	transition: color 0.3s ease;
}

.branding-footer a:hover {
	color: #6d8f2e;
}

/* ── Login Panel (right side) ── */
.login-panel {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 3rem 1.5rem;
	background-color: var(--login-panel-bg);
	transition: background-color 0.3s ease;
}

@media (min-width: 1024px) {
	.login-panel {
		padding: 3rem 4rem;
	}
}

@media (min-width: 1280px) {
	.login-panel {
		padding: 3rem 5rem;
	}
}

/* Theme toggle button */
.theme-toggle {
	position: absolute;
	top: 1.25rem;
	right: 0.5rem;
	z-index: 50;
}

@media (min-width: 1024px) {
	.theme-toggle {
		top: 1.5rem;
		right: 1rem;
	}
}

@media (min-width: 1280px) {
	.theme-toggle {
		right: 1.5rem;
	}
}

.theme-toggle-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.5rem;
	background-color: var(--card-bg);
	border: 1px solid var(--color-border);
	color: var(--color-muted-foreground);
	cursor: pointer;
	transition: all 0.2s ease;
	padding: 0;
}

.theme-toggle-btn:hover {
	background-color: var(--color-muted);
	color: var(--color-foreground);
	border-color: var(--color-ring);
}

.theme-toggle-btn svg {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.theme-toggle-btn:hover svg {
	transform: rotate(20deg);
}

/* Language selector (dropdown) */
.lang-dropdown-wrapper {
	position: absolute;
	top: 1.25rem;
	right: 4rem;
	display: flex;
	justify-content: flex-end;
	z-index: 50;
}

@media (min-width: 1024px) {
	.lang-dropdown-wrapper {
		top: 1.5rem;
		right: 4.5rem;
	}
}

@media (min-width: 1280px) {
	.lang-dropdown-wrapper {
		right: 5rem;
	}
}

.lang-dropdown-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.375rem;
	padding: 0 0.75rem;
	height: 2.5rem;
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--color-muted-foreground);
	background-color: var(--card-bg);
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
}

.lang-dropdown-toggle:hover {
	color: var(--color-foreground);
	border-color: rgba(115, 115, 115, 0.3);
}

.lang-globe-icon {
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.lang-chevron-icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.lang-dropdown-wrapper.open .lang-chevron-icon {
	transform: rotate(180deg);
}

.lang-dropdown-menu {
	position: absolute;
	top: calc(100% + 0.375rem);
	right: 0;
	min-width: 180px;
	background-color: var(--card-bg);
	border: 1px solid var(--color-border);
	border-radius: 0.75rem;
	box-shadow:
		0 10px 25px rgba(0, 0, 0, 0.08),
		0 4px 10px rgba(0, 0, 0, 0.04);
	padding: 0.375rem;
	z-index: 50;
	opacity: 0;
	transform: translateY(-4px);
	pointer-events: none;
	transition: all 0.15s ease;
}

.lang-dropdown-wrapper.open .lang-dropdown-menu {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.lang-dropdown-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.5rem 0.75rem;
	border-radius: 0.5rem;
	text-decoration: none;
	color: var(--color-muted-foreground);
	transition: background-color 0.15s ease;
}

.lang-dropdown-item:hover {
	background-color: var(--color-muted);
}

.lang-dropdown-item-active {
	color: var(--color-foreground);
}

.lang-dropdown-code {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--color-foreground);
	min-width: 1.5rem;
}

.lang-dropdown-name {
	font-size: 0.875rem;
	flex: 1;
}

.lang-check-icon {
	width: 16px;
	height: 16px;
	color: var(--color-primary);
	flex-shrink: 0;
}

/* Mobile logo (visible only on mobile) */
.mobile-logo {
	display: block;
	position: absolute;
	top: 1.25rem;
	left: 1.5rem;
	z-index: 40;
}

@media (min-width: 1024px) {
	.mobile-logo {
		display: none;
	}
}

.mobile-logo img {
	height: 2.5rem;
	width: auto;
}

.mobile-logo-tagline {
	display: none;
}

/* ── Login Card ── */
.login-card-wrapper {
	width: 100%;
	max-width: 440px;
	margin: 0 auto;
	margin-top: 4rem;
}

@media (min-width: 1024px) {
	.login-card-wrapper {
		margin-top: 0;
	}
}

.login-card {
	background-color: var(--card-bg);
	border-radius: 1rem;
	border: 1px solid var(--card-border);
	box-shadow:
		0 10px 15px -3px rgba(0, 0, 0, 0.04),
		0 4px 6px -4px rgba(0, 0, 0, 0.02);
	padding: 2rem;
	transition:
		background-color 0.3s ease,
		border-color 0.3s ease;
}

@media (min-width: 768px) {
	.login-card {
		padding: 2.5rem;
	}
}

/* ── Card Header ── */
.card-header {
	margin-bottom: 0;
}

@media (min-width: 640px) {
	.card-header {
		margin-bottom: 2rem;
	}
}

.card-header h1 {
	font-size: 1.625rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: var(--color-foreground);
	margin-bottom: 0.5rem;
	display: none;
}

@media (min-width: 640px) {
	.card-header h1 {
		display: block;
	}
}

.card-header p {
	font-size: 15px;
	color: var(--color-muted-foreground);
	display: none;
}

@media (min-width: 640px) {
	.card-header p {
		display: block;
	}
}

.card-header-spaced {
	margin-bottom: 2rem;
}

.card-header-spaced h1 {
	font-size: 1.625rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	color: var(--color-foreground);
	margin-bottom: 0.75rem;
}

.card-header-spaced p {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	line-height: 1.625;
}

/* ── Back Button ── */
.back-button {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease;
	margin-bottom: 2rem;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
}

.back-button:hover {
	color: var(--color-foreground);
}

.back-button:hover .back-button-icon {
	transform: translateX(-2px);
}

.back-button-icon {
	width: 16px;
	height: 16px;
	transition: transform 0.2s ease;
}

/* ── Form ── */
.form-group {
	margin-bottom: 1.25rem;
}

.form-group-spaced {
	margin-bottom: 1.5rem;
}

.form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--color-foreground);
	margin-bottom: 0.1rem;
}

.input-wrapper {
	position: relative;
}

.input-icon {
	position: absolute;
	left: 0.875rem;
	top: 50%;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: rgba(115, 115, 115, 0.5);
	pointer-events: none;
}

.form-input {
	width: 100%;
	height: 3rem;
	padding-left: 2.75rem;
	padding-right: 1rem;
	border-radius: 0.75rem;
	border: 1px solid var(--color-input);
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-size: 15px;
	transition: all 0.2s ease;
	outline: none;
}

.form-input::placeholder {
	color: rgba(115, 115, 115, 0.5);
}

.form-input:hover {
	border-color: rgba(115, 115, 115, 0.3);
}

.form-input:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 2px rgba(138, 173, 62, 0.25);
}

.form-input:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.form-input.has-error {
	border-color: var(--color-destructive);
}

.form-input.has-error:focus {
	border-color: var(--color-destructive);
	box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}

.form-input.input-with-toggle {
	padding-right: 2.75rem;
}

/* Invite code input */
.form-input-invite {
	width: 100%;
	height: 3.5rem;
	padding: 0 1rem;
	border-radius: 0.75rem;
	border: 1px solid var(--color-input);
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-family: var(--font-mono);
	letter-spacing: 0.2em;
	text-align: center;
	font-size: 1.125rem;
	transition: all 0.2s ease;
	outline: none;
	/* text-transform: uppercase; */
}

.form-input-invite::placeholder {
	color: rgba(115, 115, 115, 0.5);
	text-transform: none;
	letter-spacing: normal;
}

.form-input-invite:hover {
	border-color: rgba(115, 115, 115, 0.3);
}

.form-input-invite:focus {
	border-color: var(--color-primary);
	box-shadow: 0 0 0 2px rgba(138, 173, 62, 0.25);
}

.form-input-invite:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.form-input-invite.has-error {
	border-color: var(--color-destructive);
}

.form-input-invite.has-error:focus {
	border-color: var(--color-destructive);
	box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.25);
}

/* Password toggle */
.password-toggle {
	position: absolute;
	right: 0.875rem;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(115, 115, 115, 0.5);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.password-toggle:hover {
	color: var(--color-muted-foreground);
}

.password-toggle svg {
	width: 18px;
	height: 18px;
}

/* Error messages */
.form-error {
	font-size: 0.875rem;
	color: var(--color-destructive);
	margin-top: 0.5rem;
}

/* Hint text */
.form-hint {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	margin-top: 0.5rem;
	line-height: 1.4;
}

/* ── Remember Me + Forgot Password ── */
.form-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
	padding-top: 0.125rem;
}

/* Custom checkbox */
.checkbox-label {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	cursor: pointer;
	user-select: none;
}

@media (min-width: 640px) {
	.checkbox-label {
		gap: 0.625rem;
	}
}

.checkbox-wrapper {
	position: relative;
	display: inline-flex;
}

.checkbox-input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

.checkbox-visual {
	height: 18px;
	width: 18px;
	border-radius: 5px;
	border: 1px solid var(--color-input);
	background-color: var(--color-background);
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.checkbox-label:hover .checkbox-visual {
	border-color: rgba(115, 115, 115, 0.4);
}

.checkbox-input:checked + .checkbox-visual {
	background-color: var(--color-primary);
	border-color: var(--color-primary);
}

.checkbox-input:focus-visible + .checkbox-visual {
	box-shadow:
		0 0 0 2px var(--color-background),
		0 0 0 4px rgba(138, 173, 62, 0.25);
}

.checkbox-input:disabled + .checkbox-visual {
	opacity: 0.5;
}

.checkbox-checkmark {
	width: 12px;
	height: 12px;
	color: var(--color-primary-foreground);
	opacity: 0;
	transition: opacity 0.15s ease;
}

.checkbox-input:checked ~ .checkbox-checkmark {
	opacity: 1;
}

.checkbox-text {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	transition: color 0.2s ease;
}

@media (min-width: 640px) {
	.checkbox-text {
		font-size: 0.875rem;
	}
}

.checkbox-label:hover .checkbox-text {
	color: rgba(10, 10, 10, 0.7);
}

/* Forgot password link */
.forgot-link {
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: color 0.2s ease;
}

@media (min-width: 640px) {
	.forgot-link {
		font-size: 0.875rem;
	}
}

.forgot-link:hover {
	color: var(--color-foreground);
}

/* ── Buttons ── */
.btn-primary {
	width: 100%;
	height: 3rem;
	border-radius: 0.75rem;
	background-color: var(--color-primary);
	color: var(--color-primary-foreground);
	font-weight: 600;
	font-size: 14px;
	transition: all 0.2s ease;
	border: none;
	cursor: pointer;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	flex-wrap: nowrap;
	white-space: nowrap;
}

.btn-primary > * {
	flex-shrink: 0;
}

@media (min-width: 640px) {
	.btn-primary {
		font-size: 15px;
		gap: 0.5rem;
	}
}

.btn-primary:hover {
	background-color: rgba(138, 173, 62, 0.9);
	box-shadow: 0 10px 15px -3px rgba(138, 173, 62, 0.2);
}

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

.btn-primary:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	box-shadow: none;
}

.btn-primary:disabled:active {
	transform: none;
}

.btn-secondary {
	width: 100%;
	height: 3rem;
	border-radius: 0.75rem;
	border: 1px solid var(--color-border);
	background-color: var(--color-background);
	color: var(--color-foreground);
	font-weight: 500;
	font-size: 15px;
	transition: all 0.2s ease;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

.btn-secondary:hover {
	background-color: var(--color-muted);
	border-color: rgba(115, 115, 115, 0.2);
}

.btn-secondary:active {
	transform: scale(0.98);
}

.btn-secondary svg {
	width: 18px;
	height: 18px;
	color: var(--color-muted-foreground);
}

/* ── Divider ── */
.divider {
	position: relative;
	margin: 2rem 0;
}

.divider-line {
	width: 100%;
	border: none;
	border-top: 1px solid #e5e7eb;
}

.divider-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background-color: var(--card-bg);
	padding: 0 1rem;
	font-size: 0.75rem;
	color: var(--color-muted-foreground);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 500;
	transition:
		background-color 0.3s ease,
		color 0.3s ease;
}

/* ── Invite Icon Box ── */
.invite-icon-box {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3.5rem;
	height: 3.5rem;
	border-radius: 1rem;
	background-color: rgba(138, 173, 62, 0.1);
	margin-bottom: 1.5rem;
}

.invite-icon-box svg {
	width: 1.75rem;
	height: 1.75rem;
	color: var(--color-primary);
}

/* ── Card Footer ── */
.card-footer {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--card-border);
	text-align: center;
	transition: border-color 0.3s ease;
}

.card-footer p {
	font-size: 0.875rem;
	color: var(--color-muted-foreground);
}

.card-footer a {
	color: var(--color-foreground);
	font-weight: 500;
	transition: color 0.2s ease;
	text-underline-offset: 3px;
}

.card-footer a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

/* ── Page Footer ── */
.page-footer {
	padding: 1.5rem 0;
	text-align: center;
	font-size: 0.75rem;
	color: var(--branding-footer-text);
	background-color: var(--page-bg);
	border-top: 1px solid var(--color-border);
	transition: all 0.3s ease;
}

.page-footer-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	flex-wrap: wrap;
}

.page-footer-separator {
	color: var(--color-border);
}

.page-footer a {
	color: var(--branding-footer-text);
	transition: color 0.2s ease;
	border-radius: 2px;
}

.page-footer a:hover {
	color: var(--color-foreground);
}

.page-footer a:focus-visible {
	outline: 2px solid var(--color-ring);
	outline-offset: 2px;
}

/* ── Loader spinner icon ── */
.icon-spinner {
	width: 16px;
	height: 16px;
}

/* ── Custom Alert ── */
.custom-alert {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 9999;
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 20px;
	background: var(--card-bg);
	border: 1px solid var(--card-border);
	border-radius: var(--radius);
	box-shadow:
		0 10px 25px rgba(0, 0, 0, 0.1),
		0 4px 10px rgba(0, 0, 0, 0.05);
	min-width: 320px;
	max-width: 500px;
	opacity: 0;
	transform: translateX(400px);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-alert-show {
	opacity: 1;
	transform: translateX(0);
}

.custom-alert-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
}

.custom-alert-success .custom-alert-icon {
	background-color: #dcfce7;
	color: #16a34a;
}

.custom-alert-error .custom-alert-icon {
	background-color: #fee2e2;
	color: #dc2626;
}

.custom-alert-message {
	flex: 1;
	font-size: 14px;
	line-height: 1.5;
	color: var(--color-foreground);
	font-weight: 500;
}

/* ── Utility: sr-only (screen reader only) ── */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* ── Accessibility: reduced motion ── */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
