/* ─── Auth page 2026 — signin-signup ─── */

[x-cloak] {
	display: none !important;
}

.auth-page {
	--auth-accent: var(--brand-primary, #720ba1);
	--auth-accent-deep: var(--brand-primary-deep, #520878);
	--auth-accent-dark: var(--brand-primary-dark, #620890);
	--auth-accent-soft: var(--brand-primary-soft, #f6edf9);
	--auth-accent-soft-2: var(--brand-primary-soft-2, #ecdbf3);
	--auth-accent-rgb: var(--brand-primary-rgb, 114, 11, 161);
	--auth-ink: var(--site-text, #0f172a);
	--auth-muted: var(--site-text-muted, #64748b);
	--auth-line: var(--site-border, #e2e8f0);
	--auth-card: rgba(255, 255, 255, 0.82);
	--auth-card-border: rgba(255, 255, 255, 0.6);
	--auth-field-bg: rgba(255, 255, 255, 0.88);
	--auth-field-border: rgba(var(--auth-accent-rgb), 0.14);
	--auth-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
	--auth-radius: 1.35rem;
	--auth-ease: cubic-bezier(0.22, 1, 0.36, 1);
	position: relative;
	isolation: isolate;
	min-height: 100dvh;
	min-height: 100vh;
	margin: 0;
	padding: 1.25rem 1rem 2rem;
	overflow-x: hidden;
	font-family: var(--font-sans, 'Vazir', Tahoma, sans-serif);
	color: var(--auth-ink);
	background:
		radial-gradient(120% 80% at 100% 0%, rgba(var(--auth-accent-rgb), 0.12), transparent 55%),
		radial-gradient(90% 70% at 0% 100%, rgba(var(--auth-accent-rgb), 0.08), transparent 50%),
		linear-gradient(165deg, #f8fafc 0%, var(--auth-accent-soft) 48%, #fbf7fc 100%);
}

html[data-theme="dark"] .auth-page {
	--auth-accent: var(--brand-primary, #720ba1);
	--auth-accent-deep: var(--brand-primary-deep, #520878);
	--auth-accent-dark: var(--brand-primary-dark, #620890);
	--auth-accent-soft: rgba(114, 11, 161, 0.18);
	--auth-accent-soft-2: rgba(114, 11, 161, 0.28);
	--auth-ink: var(--site-text, #f1f5f9);
	--auth-muted: var(--site-text-muted, #94a3b8);
	--auth-line: var(--site-border, #334155);
	--auth-card: rgba(30, 41, 59, 0.78);
	--auth-card-border: rgba(148, 163, 184, 0.16);
	--auth-field-bg: rgba(15, 23, 42, 0.72);
	--auth-field-border: rgba(var(--auth-accent-rgb), 0.28);
	--auth-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
	background:
		radial-gradient(100% 70% at 100% 0%, rgba(var(--auth-accent-rgb), 0.22), transparent 55%),
		radial-gradient(90% 70% at 0% 100%, rgba(var(--auth-accent-rgb), 0.14), transparent 50%),
		linear-gradient(165deg, #0f172a 0%, #1e1030 52%, #0f172a 100%);
}

.auth-page__ambient {
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
}

.auth-page__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(48px);
	opacity: 0.55;
	will-change: transform;
}

.auth-page__orb--a {
	width: min(48vw, 22rem);
	height: min(48vw, 22rem);
	top: -8%;
	right: -6%;
	background: rgba(var(--auth-accent-rgb), 0.28);
}

.auth-page__orb--b {
	width: min(42vw, 18rem);
	height: min(42vw, 18rem);
	bottom: 4%;
	left: -8%;
	background: rgba(var(--auth-accent-rgb), 0.18);
}

.auth-page__orb--c {
	width: min(28vw, 12rem);
	height: min(28vw, 12rem);
	top: 42%;
	left: 48%;
	background: rgba(var(--auth-accent-rgb), 0.12);
}

html[data-theme="dark"] .auth-page__orb--a {
	background: rgba(var(--auth-accent-rgb), 0.32);
}

html[data-theme="dark"] .auth-page__orb--b {
	background: rgba(var(--auth-accent-rgb), 0.2);
}

.auth-page__grid {
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image:
		linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}

html[data-theme="dark"] .auth-page__grid {
	opacity: 0.2;
	background-image:
		linear-gradient(rgba(226, 232, 240, 0.04) 1px, transparent 1px),
		linear-gradient(90deg, rgba(226, 232, 240, 0.04) 1px, transparent 1px);
}

.auth-page__shell {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 58rem;
	margin: 0 auto;
	min-height: calc(100dvh - 2.5rem);
	display: flex;
	align-items: center;
}

.auth-shell {
	width: 100%;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0;
	border-radius: calc(var(--auth-radius) + 0.25rem);
	overflow: hidden;
	background: var(--auth-card);
	border: 1px solid var(--auth-card-border);
	box-shadow: var(--auth-shadow);
	backdrop-filter: blur(18px) saturate(1.2);
	-webkit-backdrop-filter: blur(18px) saturate(1.2);
}

@media (min-width: 768px) {
	.auth-shell {
		grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
		min-height: 36rem;
	}
}

.auth-brand {
	display: none;
	position: relative;
	padding: 2.5rem 2rem;
	color: #f8fafc;
	background:
		linear-gradient(155deg, var(--auth-accent-deep) 0%, var(--auth-accent) 52%, var(--auth-accent-dark) 100%);
	overflow: hidden;
}

@media (min-width: 768px) {
	.auth-brand {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: flex-start;
		gap: 1rem;
	}
}

.auth-brand__glow {
	position: absolute;
	inset: auto -20% -30% auto;
	width: 18rem;
	height: 18rem;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 70%);
	pointer-events: none;
}

.auth-brand__logo {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	margin-bottom: 0.5rem;
}

.auth-brand__logo-img {
	height: 2.25rem;
	width: auto;
	max-width: 10rem;
	object-fit: contain;
}

.auth-brand__logo-fallback {
	font-family: var(--font-heading, Dana, Vazir, sans-serif);
	font-size: 1.35rem;
	font-weight: 800;
	color: #fff;
}

.auth-brand__title {
	position: relative;
	z-index: 1;
	margin: 0;
	font-family: var(--font-heading, Dana, Vazir, sans-serif);
	font-size: clamp(1.75rem, 2.4vw, 2.15rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1.25;
}

.auth-brand__text {
	position: relative;
	z-index: 1;
	margin: 0;
	max-width: 18rem;
	font-size: 0.95rem;
	line-height: 1.75;
	color: rgba(248, 250, 252, 0.78);
}

.auth-brand__home {
	position: relative;
	z-index: 1;
	margin-top: 1rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.65rem;
	padding: 0.55rem 1.15rem;
	border-radius: 9999px;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #fff;
	background: rgba(255, 255, 255, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.28);
	transition: background 0.25s var(--auth-ease), transform 0.25s var(--auth-ease), border-color 0.25s;
}

.auth-brand__home:hover {
	background: rgba(255, 255, 255, 0.18);
	border-color: rgba(255, 255, 255, 0.45);
	transform: translateY(-1px);
}

.auth-main {
	position: relative;
	padding: 1.35rem 1.15rem 1.5rem;
}

@media (min-width: 640px) {
	.auth-main {
		padding: 2rem 2rem 1.85rem;
	}
}

.auth-main__home-mobile {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-bottom: 1rem;
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--auth-muted);
	transition: color 0.2s;
}

.auth-main__home-mobile:hover {
	color: var(--auth-accent);
}

@media (min-width: 768px) {
	.auth-main__home-mobile {
		display: none;
	}
}

.auth-theme-toggle {
	position: fixed;
	top: max(0.85rem, env(safe-area-inset-top));
	left: max(0.85rem, env(safe-area-inset-left));
	z-index: 40;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.65rem;
	height: 2.65rem;
	border-radius: 0.95rem;
	border: 1px solid var(--auth-card-border);
	background: var(--auth-card);
	color: var(--auth-ink);
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	cursor: pointer;
	transition: transform 0.2s var(--auth-ease), background 0.2s, box-shadow 0.2s;
}

.auth-theme-toggle:hover {
	transform: translateY(-1px) scale(1.03);
	box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
}

.auth-theme-toggle__icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.auth-card__head {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	margin-bottom: 1.25rem;
}

.auth-card__logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1rem;
	max-width: 11rem;
}

.auth-card__logo-img {
	display: block;
	width: auto;
	height: 2.75rem;
	max-width: 10.5rem;
	object-fit: contain;
	object-position: center;
}

/* جلوگیری از نمایش هم‌زمان لوگو روشن/تاریک (override display:block بالا) */
.auth-card__logo-img.site-brand-logo--dark {
	display: none !important;
}

html[data-theme="dark"] .auth-card__logo-img.site-brand-logo--light {
	display: none !important;
}

html[data-theme="dark"] .auth-card__logo-img.site-brand-logo--dark {
	display: block !important;
}

.auth-card__logo-fallback {
	font-family: var(--font-heading, Dana, Vazir, sans-serif);
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--auth-accent);
}

.auth-card__title {
	margin: 0;
	font-family: var(--font-heading, Dana, Vazir, sans-serif);
	font-size: clamp(1.35rem, 3.5vw, 1.7rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--auth-ink);
	line-height: 1.3;
}

.auth-card__sub {
	margin: 0.45rem 0 0;
	font-size: 0.875rem;
	line-height: 1.7;
	color: var(--auth-muted);
	max-width: 22rem;
}

.auth-tabs {
	position: relative;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.25rem;
	padding: 0.28rem;
	margin-bottom: 1.25rem;
	border-radius: 9999px;
	background: color-mix(in srgb, var(--auth-ink) 5%, transparent);
	border: 1px solid var(--auth-line);
}

.auth-tabs__btn {
	position: relative;
	z-index: 1;
	border: 0;
	background: transparent;
	min-height: 2.55rem;
	border-radius: 9999px;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--auth-muted);
	cursor: pointer;
	transition: color 0.28s var(--auth-ease);
}

.auth-tabs__btn.is-active {
	color: var(--auth-accent);
}

html[data-theme="dark"] .auth-tabs__btn {
	color: rgba(241, 245, 249, 0.62);
}

html[data-theme="dark"] .auth-tabs__btn.is-active {
	color: #f3e8ff;
}

.auth-tabs__indicator {
	position: absolute;
	z-index: 0;
	top: 0.28rem;
	bottom: 0.28rem;
	width: calc(50% - 0.28rem);
	border-radius: 9999px;
	background: var(--auth-field-bg);
	box-shadow: 0 4px 14px rgba(var(--auth-accent-rgb), 0.12);
	border: 1px solid rgba(var(--auth-accent-rgb), 0.2);
	transition: transform 0.35s var(--auth-ease);
	will-change: transform;
}

html[dir="rtl"] .auth-tabs__indicator {
	right: 0.28rem;
	left: auto;
	transform: translateX(0);
}

html[dir="ltr"] .auth-tabs__indicator {
	left: 0.28rem;
	right: auto;
	transform: translateX(0);
}

html[dir="rtl"] body[data-auth-tab="register"] .auth-tabs__indicator {
	transform: translateX(-100%);
}

html[dir="ltr"] body[data-auth-tab="register"] .auth-tabs__indicator {
	transform: translateX(100%);
}

.auth-page .auth-forms-wrap {
	position: relative;
	overflow: hidden;
	min-height: 0;
}

.auth-forms-wrap.is-switching .auth-panel {
	position: absolute !important;
	inset-inline: 0;
	top: 0;
	width: 100%;
}

.auth-panel {
	width: 100%;
	will-change: transform, opacity;
}

.auth-panel:not(.is-active) {
	position: absolute;
	inset-inline: 0;
	top: 0;
	pointer-events: none;
	visibility: hidden;
}

.auth-panel.is-active {
	position: relative;
	visibility: visible;
	pointer-events: auto;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 0.95rem;
}

.auth-field {
	position: relative;
	display: flex;
	flex-direction: column;
}

.auth-field__input {
	width: 100%;
	min-height: 3.35rem;
	padding: 1.35rem 1rem 0.55rem;
	border-radius: 1rem;
	border: 1.5px solid var(--auth-field-border);
	background: var(--auth-field-bg);
	color: var(--auth-ink);
	font-size: 0.9375rem;
	font-weight: 500;
	outline: none;
	outline-color: transparent;
	outline-width: 0;
	outline-style: none;
	box-shadow: inset 0 0 0 0 transparent;
	box-sizing: border-box;
	transition:
		border-color 0.28s var(--auth-ease),
		box-shadow 0.28s var(--auth-ease),
		background 0.28s var(--auth-ease);
}

.auth-field__input:focus,
.auth-field__input:focus-visible {
	outline: none !important;
	outline-color: transparent !important;
	outline-width: 0 !important;
	/* ضخامت بیشتر بدون تغییر ابعاد (بدون CLS) */
	border-color: var(--auth-accent);
	border-radius: 1rem;
	box-shadow: inset 0 0 0 1px var(--auth-accent);
}

.auth-field__input:focus + .auth-field__label,
.auth-field__input:not(:placeholder-shown) + .auth-field__label,
.auth-field.is-filled .auth-field__label {
	top: 0.42rem;
	font-size: 0.7rem;
	font-weight: 700;
	color: var(--auth-accent);
	transform: translateY(0);
}

.auth-field__input:not(:focus):not(:placeholder-shown),
.auth-field.is-filled .auth-field__input:not(:focus) {
	border-color: rgba(var(--auth-accent-rgb), 0.28);
}

.auth-field__input--password {
	padding-left: 2.85rem;
}

html[dir="rtl"] .auth-field__input--password {
	padding-left: 1rem;
	padding-right: 2.85rem;
}

.auth-field__input--ltr {
	text-align: left;
	direction: ltr;
	padding-left: 5.75rem;
}

html[dir="rtl"] .auth-field__input--ltr {
	padding-right: 1rem;
	padding-left: 5.75rem;
}

.auth-field__label {
	position: absolute;
	inset-inline-start: 1rem;
	top: 1.05rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--auth-muted);
	pointer-events: none;
	transform-origin: right center;
	transition:
		transform 0.28s var(--auth-ease),
		top 0.28s var(--auth-ease),
		font-size 0.28s var(--auth-ease),
		color 0.28s var(--auth-ease);
}

.auth-field__hint {
	margin: 0.4rem 0.15rem 0;
	font-size: 0.72rem;
	color: var(--auth-muted);
	line-height: 1.4;
}

.auth-field__error {
	margin: 0.4rem 0.15rem 0;
	font-size: 0.75rem;
	font-weight: 600;
	color: #e11d48;
}

.auth-field__error.hidden {
	display: none;
}

.auth-field.is-invalid .auth-field__input {
	border-color: rgba(225, 29, 72, 0.55);
	border-width: 2px;
	box-shadow: none;
	animation: auth-shake 0.4s var(--auth-ease);
}

.auth-field.is-valid .auth-field__input {
	border-color: rgba(16, 185, 129, 0.55);
}

@keyframes auth-shake {
	0%, 100% { transform: translateX(0); }
	25% { transform: translateX(3px); }
	50% { transform: translateX(-3px); }
	75% { transform: translateX(2px); }
}

.auth-field__toggle {
	position: absolute;
	top: 0.7rem;
	inset-inline-end: 0.55rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	border: 0;
	border-radius: 0.7rem;
	background: transparent;
	color: var(--auth-muted);
	cursor: pointer;
	transition: color 0.2s, background 0.2s, transform 0.2s var(--auth-ease);
}

.auth-field__toggle:hover {
	color: var(--auth-accent);
	background: color-mix(in srgb, var(--auth-accent) 10%, transparent);
}

.auth-field__toggle:active {
	transform: scale(0.92);
}

.auth-icon {
	width: 1.15rem;
	height: 1.15rem;
	display: block;
}

.auth-field__country {
	position: absolute;
	top: 0.85rem;
	inset-inline-start: 0.75rem;
	z-index: 2;
}

html[dir="rtl"] .auth-field__country {
	inset-inline-start: auto;
	inset-inline-end: 0.65rem;
	left: 0.65rem;
	right: auto;
}

.auth-field--mobile .auth-field__label {
	/* label floats above; country sits LTR on left */
}

.auth-form__meta {
	display: flex;
	justify-content: flex-end;
	margin-top: -0.25rem;
}

.auth-link {
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--auth-accent);
	text-decoration: none;
	transition: opacity 0.2s;
}

.auth-link:hover {
	opacity: 0.8;
	text-decoration: underline;
}

.auth-submit {
	position: relative;
	overflow: hidden;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.55rem;
	width: 100%;
	min-height: 3.15rem;
	margin-top: 0.25rem;
	padding: 0.85rem 1.15rem;
	border: 0;
	border-radius: 1rem;
	font-size: 0.95rem;
	font-weight: 800;
	color: #fff;
	cursor: pointer;
	background: linear-gradient(135deg, var(--auth-accent-deep) 0%, var(--auth-accent) 55%, var(--auth-accent-dark) 120%);
	box-shadow:
		0 12px 28px rgba(var(--auth-accent-rgb), 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.22);
	transition:
		transform 0.22s var(--auth-ease),
		box-shadow 0.22s var(--auth-ease),
		filter 0.22s;
}

.auth-submit--register {
	background: linear-gradient(135deg, var(--auth-accent) 0%, var(--auth-accent-dark) 60%, var(--auth-accent-deep) 130%);
	box-shadow:
		0 12px 28px rgba(var(--auth-accent-rgb), 0.28),
		inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.auth-submit:hover {
	transform: translateY(-2px);
	filter: brightness(1.04);
	box-shadow:
		0 16px 34px rgba(var(--auth-accent-rgb), 0.34),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.auth-submit--register:hover {
	box-shadow:
		0 16px 34px rgba(var(--auth-accent-rgb), 0.34),
		inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.auth-submit:active {
	transform: translateY(0) scale(0.985);
}

.auth-submit.is-loading,
.auth-btn-loading.is-loading {
	pointer-events: none;
	opacity: 0.88;
	cursor: wait;
}

.auth-submit .btn-spinner:not(.hidden) {
	display: inline-block;
}

.auth-ripple-ink {
	position: absolute;
	border-radius: 50%;
	transform: scale(0);
	background: rgba(255, 255, 255, 0.28);
	pointer-events: none;
	animation: auth-ripple 0.55s ease-out forwards;
}

@keyframes auth-ripple {
	to {
		transform: scale(2.6);
		opacity: 0;
	}
}

.auth-card__foot {
	margin-top: 1.15rem;
	text-align: center;
}

.auth-switch-link {
	border: 0;
	background: transparent;
	color: var(--auth-muted);
	font-size: 0.8125rem;
	font-weight: 700;
	cursor: pointer;
	padding: 0.45rem 0.75rem;
	border-radius: 0.75rem;
	transition: color 0.2s, background 0.2s;
}

.auth-switch-link:hover {
	color: var(--auth-accent);
	background: color-mix(in srgb, var(--auth-accent) 8%, transparent);
}

/* Errors injected by auth.js */
.ajax-errors {
	margin-bottom: 0.85rem !important;
	padding: 0.85rem 1rem !important;
	border-radius: 0.95rem !important;
	border: 1px solid rgba(225, 29, 72, 0.25) !important;
	background: rgba(255, 241, 242, 0.95) !important;
	color: #9f1239 !important;
	font-size: 0.8125rem !important;
	box-shadow: 0 8px 24px rgba(225, 29, 72, 0.08);
	animation: auth-error-in 0.35s var(--auth-ease);
}

html[data-theme="dark"] .ajax-errors {
	background: rgba(76, 5, 25, 0.55) !important;
	border-color: rgba(251, 113, 133, 0.35) !important;
	color: #fecdd3 !important;
}

@keyframes auth-error-in {
	from {
		opacity: 0;
		transform: translateY(-6px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

.auth-alert {
	margin-bottom: 1rem;
	padding: 0.9rem 1rem;
	border-radius: 0.95rem;
	font-size: 0.8125rem;
}

.auth-alert--error {
	background: rgba(255, 241, 242, 0.95);
	border: 1px solid rgba(225, 29, 72, 0.25);
	color: #9f1239;
}

.auth-alert ul {
	margin: 0;
	padding-inline-start: 1.1rem;
}

.auth-blocked-panel__title {
	margin: 0 0 0.65rem;
	font-family: var(--font-heading, Dana, Vazir, sans-serif);
	font-size: 1.35rem;
	font-weight: 800;
	color: var(--auth-ink);
}

.auth-blocked-panel__text {
	margin: 0 auto 0.85rem;
	max-width: 26rem;
	font-size: 0.875rem;
	line-height: 1.75;
	color: var(--auth-muted);
}

.auth-blocked-panel__reason {
	margin: 0 0 0.85rem;
	font-size: 0.75rem;
	color: var(--auth-muted);
}

.auth-blocked-panel__timer-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: #e11d48;
}

.auth-blocked-panel__timer-value {
	font-size: 1.35rem;
	font-weight: 800;
	color: #be123c;
}

html[data-theme="dark"] .auth-blocked-panel__timer-value {
	color: #fda4af;
}

/* Override old underline mobile-field inside new cards */
.auth-page .mobile-field {
	min-height: 0;
	border-bottom: 0;
}

.auth-page .mobile-field:focus-within {
	border-bottom-color: transparent;
}

.auth-page .auth-terms-note {
	margin-top: 0.35rem;
}

/* Account type polish inside auth page */
.auth-page .auth-account-type__card {
	border-radius: 1rem;
	padding: 0.7rem 0.75rem;
	background: var(--auth-field-bg);
	border-color: var(--auth-field-border);
}

.auth-page .auth-account-type__card:has(input:checked) {
	border-color: var(--auth-accent);
	background: var(--auth-accent-soft);
	box-shadow: 0 0 0 1px rgba(var(--auth-accent-rgb), 0.18);
}

.auth-page .auth-account-type__check {
	background: var(--auth-accent);
}

.auth-page .auth-account-type__icon--store {
	background: rgba(var(--auth-accent-rgb), 0.12);
	color: var(--auth-accent);
}

.auth-page .auth-account-type__title {
	display: inline-flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.2rem;
	white-space: normal;
	line-height: 1.25;
}

.auth-page .auth-account-type__title-sub {
	font-size: 0.68rem;
	font-weight: 600;
	opacity: 0.78;
	line-height: 1;
}

.auth-page .auth-account-type__hint {
	margin: 0.65rem 0 0;
	padding: 0.55rem 0.75rem;
	border-radius: 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.65;
	color: var(--auth-accent);
	background: rgba(var(--auth-accent-rgb), 0.08);
	border: 1px solid rgba(var(--auth-accent-rgb), 0.16);
}

.auth-page .auth-account-type__hint.is-hidden {
	display: none;
}

html[data-theme="dark"] .auth-page .auth-account-type__card {
	background: rgba(15, 23, 42, 0.65);
	border-color: rgba(226, 232, 240, 0.28);
}

html[data-theme="dark"] .auth-page .auth-account-type__card:hover {
	border-color: rgba(237, 233, 254, 0.45);
	background: rgba(30, 41, 59, 0.88);
}

html[data-theme="dark"] .auth-page .auth-account-type__card:has(input:checked) {
	border-color: #c084fc;
	background: rgba(114, 11, 161, 0.3);
	box-shadow: 0 0 0 1px rgba(192, 132, 252, 0.28);
}

html[data-theme="dark"] .auth-page .auth-account-type__title {
	color: #f8fafc;
}

html[data-theme="dark"] .auth-page .auth-account-type__title-sub {
	color: #e9d5ff;
	opacity: 0.92;
}

html[data-theme="dark"] .auth-page .auth-account-type__label {
	color: #e2e8f0;
}

html[data-theme="dark"] .auth-page .auth-account-type__icon--user,
html[data-theme="dark"] .auth-page .auth-account-type__icon--store {
	color: #e9d5ff;
	background: rgba(192, 132, 252, 0.2);
}

html[data-theme="dark"] .auth-page .auth-account-type__hint {
	color: #e9d5ff;
	background: rgba(114, 11, 161, 0.24);
	border-color: rgba(192, 132, 252, 0.3);
}

html[data-theme="dark"] .auth-page .auth-tabs__indicator {
	background: rgba(51, 65, 85, 0.95);
	border-color: rgba(192, 132, 252, 0.4);
	box-shadow: 0 4px 14px rgba(114, 11, 161, 0.28);
}

.auth-page .auth-link,
.auth-page .auth-terms-note__link,
.auth-page .auth-switch-link:hover,
.auth-page .auth-main__home-mobile:hover {
	color: var(--auth-accent);
}

html[data-theme="dark"] .auth-page .auth-link,
html[data-theme="dark"] .auth-page .auth-terms-note__link,
html[data-theme="dark"] .auth-page .auth-switch-link,
html[data-theme="dark"] .auth-page .auth-switch-link:hover,
html[data-theme="dark"] .auth-page .auth-main__home-mobile:hover {
	color: #e9d5ff;
}

.auth-page .auth-field__toggle:hover {
	color: var(--auth-accent);
	background: rgba(var(--auth-accent-rgb), 0.1);
}

html[data-theme="dark"] .auth-page .auth-field__label,
html[data-theme="dark"] .auth-page .auth-field__hint,
html[data-theme="dark"] .auth-page .auth-card__sub,
html[data-theme="dark"] .auth-page .auth-terms-note {
	color: #cbd5e1;
}

html[data-theme="dark"] .auth-page .auth-field__input:focus + .auth-field__label,
html[data-theme="dark"] .auth-page .auth-field__input:not(:placeholder-shown) + .auth-field__label,
html[data-theme="dark"] .auth-page .auth-field.is-filled .auth-field__label {
	color: #e9d5ff;
}

html[data-theme="dark"] .auth-page .auth-field__toggle {
	color: #cbd5e1;
}

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

	.auth-field.is-invalid .auth-field__input {
		animation: none;
	}
}
