/**
 * Crypton auth — 2027 layout & visual system
 * Loaded after style.css / dark.css; overrides positioning + surfaces.
 */

:root {
	--auth-yellow: #ffcd00;
	--auth-yellow-deep: #e6b800;
	--auth-yellow-rich: #d4a017;
	--auth-glass-bg: rgba(255, 255, 255, 0.07);
	--auth-glass-bg-strong: rgba(255, 255, 255, 0.11);
	--auth-glass-border: rgba(255, 255, 255, 0.2);
	--auth-glass-highlight: rgba(255, 255, 255, 0.32);
	--auth-glass-blur: blur(40px) saturate(180%);
	--auth-bg-top: #0a0a0a;
	--auth-bg-mid: #0f0f0f;
	--auth-bg-bottom: #050505;
	--auth-scrollbar-track: rgba(255, 255, 255, 0.07);
	--auth-scrollbar-thumb: rgba(255, 205, 0, 0.48);
	--auth-scrollbar-thumb-hover: rgba(255, 205, 0, 0.68);
	/* Gold glow only — must not use brightness/invert or SVG transparency is lost */
	--auth-logo-filter: drop-shadow(0 2px 20px rgba(255, 205, 0, 0.32)) drop-shadow(0 1px 0 rgba(255, 255, 255, 0.12));
	--auth-ink: #0a0a0a;
	--auth-ink-muted: #333333;
	--auth-ink-soft: #555555;
	--auth-on-dark: rgba(255, 255, 255, 0.88);
	--auth-on-dark-muted: rgba(255, 255, 255, 0.6);
	--auth-gold: var(--auth-yellow);
	--auth-gold-soft: rgba(255, 205, 0, 0.5);
	--auth-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
	--auth-radius: 18px;
	--auth-panel-max: 480px;
	--auth-shell-max: 1080px;
	--auth-glass-max: 640px;
}

/* === Page shell: vertical centering + footer pinned === */
html.auth-modern,
html.auth-modern body {
	min-height: 100%;
}

body.auth-modern-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 20px;
	min-height: 100vh;
	min-height: 100dvh;
	padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
	background: linear-gradient(165deg, var(--auth-bg-top) 0%, var(--auth-bg-mid) 48%, var(--auth-bg-bottom) 100%) !important;
	background-attachment: fixed !important;
	color: var(--auth-on-dark);
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: var(--auth-scrollbar-thumb) var(--auth-scrollbar-track);
}

html.auth-modern ::-webkit-scrollbar,
html.auth-modern body ::-webkit-scrollbar {
	width: 10px;
	height: 10px;
}

html.auth-modern ::-webkit-scrollbar-track,
html.auth-modern body ::-webkit-scrollbar-track {
	background: var(--auth-scrollbar-track);
	border-radius: 999px;
}

html.auth-modern ::-webkit-scrollbar-thumb,
html.auth-modern body ::-webkit-scrollbar-thumb {
	background-color: var(--auth-scrollbar-thumb);
	border: 2px solid transparent;
	background-clip: padding-box;
	border-radius: 999px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html.auth-modern ::-webkit-scrollbar-thumb:hover,
html.auth-modern body ::-webkit-scrollbar-thumb:hover {
	background-color: var(--auth-scrollbar-thumb-hover);
}

html.auth-modern ::-webkit-scrollbar-corner,
html.auth-modern body ::-webkit-scrollbar-corner {
	background: transparent;
}

.auth-modern-body .auth-page {
	position: relative;
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: var(--auth-shell-max);
	padding: 0 20px;
	z-index: 2;
}

.auth-modern-body .auth-page > .top {
	display: none;
}

/* Split shell: brand (desktop) + form panel */
.auth-modern-body .auth-shell {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	width: 100%;
	align-items: start;
}

.auth-modern-body .auth-brand {
	display: none;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;
	padding: 8px 0;
	align-self: start;
}

.auth-modern-body .auth-brand__logo {
	display: inline-block;
	margin-bottom: 24px;
	text-decoration: none;
}

.auth-modern-body .auth-brand__logo img {
	height: 48px;
	width: auto;
	filter: var(--auth-logo-filter);
}

.auth-modern-body .auth-brand__logo-text {
	font-size: 22px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--auth-yellow);
}

.auth-modern-body .auth-brand__tagline {
	color: var(--auth-on-dark-muted);
	font-size: 1.05rem;
	line-height: 1.55;
	max-width: 36ch;
	margin: 0 0 28px;
}

.auth-modern-body .auth-brand .auth-trust-strip {
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
	margin-top: 0;
	padding-top: 0;
	border-top: none;
}

.auth-modern-body .auth-brand .auth-trust-strip span {
	font-size: 0.85rem;
}

.auth-modern-body .auth-panel {
	width: 100%;
	display: flex;
	flex-direction: column;
	min-width: 0;
	align-self: start;
}

.auth-modern-body .auth-panel__toolbar {
	display: none;
	justify-content: flex-end;
	margin-bottom: 16px;
}

.auth-modern-body .auth-panel__footer {
	width: 100%;
	margin-top: 20px;
}

.auth-modern-body .auth-page__top {
	flex-shrink: 0;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	gap: 16px;
}

.auth-modern-body .auth-page__top--mobile {
	max-width: var(--auth-glass-max);
}

.auth-modern-body .auth-page__top .logo-top img {
	height: 36px;
	width: auto;
	filter: var(--auth-logo-filter);
	opacity: 1;
}

.auth-modern-body .auth-page__top .logo-top-text {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--auth-yellow);
	text-decoration: none;
}

.auth-modern-body .auth-main {
	flex: 0 0 auto;
	width: 100%;
	max-width: var(--auth-glass-max);
	margin: 0 auto;
}

.auth-modern-body .auth-apk-inline {
	margin: 0;
	text-align: center;
	font-size: 0.85rem;
}

.auth-modern-body .auth-apk-inline a {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: var(--auth-on-dark-muted);
	text-decoration: none;
	transition: color 0.2s ease;
}

.auth-modern-body .auth-apk-inline a:hover {
	color: var(--auth-yellow);
}

.auth-modern-body .auth-apk-inline i {
	color: var(--auth-yellow);
	font-size: 1.1rem;
}

.auth-modern-body .auth-apk-inline span:not(.auth-apk-inline__hint) {
	font-weight: 700;
	color: var(--auth-yellow);
}

.auth-modern-body .auth-apk-inline__hint {
	font-size: 0.75rem;
	opacity: 0.65;
	width: 100%;
}

.auth-trust-strip--in-card {
	display: none;
}

.auth-modern-body .account-number-info {
	margin: 24px 0 !important;
}

.auth-modern-body .account-number-info .info-box + .info-box {
	margin-top: 12px;
}

/* Hide legacy floating squares */
.auth-modern-body .animation {
	display: none !important;
}

/* Gold ambient orbs — full viewport (not clipped to auth-page column) */
.auth-modern-body .auth-ambient {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	height: 100dvh;
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

.auth-modern-body .auth-ambient__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(72px);
	opacity: 0.55;
	animation: authOrbDrift 36s ease-in-out infinite;
}

.auth-modern-body .auth-ambient__orb--a {
	width: min(80vw, 480px);
	height: min(80vw, 480px);
	background: radial-gradient(circle, rgba(255, 215, 80, 0.7) 0%, transparent 68%);
	top: -18%;
	left: -10%;
}

.auth-modern-body .auth-ambient__orb--b {
	width: min(60vw, 360px);
	height: min(60vw, 360px);
	background: radial-gradient(circle, rgba(255, 190, 60, 0.55) 0%, transparent 70%);
	bottom: 0%;
	right: -5%;
	animation-delay: -14s;
	animation-duration: 42s;
}

@keyframes authOrbDrift {
	0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.45; }
	50% { transform: translate(4%, -3%) scale(1.05); opacity: 0.62; }
}

@media (prefers-reduced-motion: reduce) {
	.auth-ambient__orb { animation: none; opacity: 0.25; }
}

/* Legacy top gold bar — subtler */
.auth-modern-body .top {
	height: 2px;
	background: linear-gradient(90deg, transparent, var(--auth-gold-soft), transparent);
	opacity: 0.9;
}

.auth-modern-body .section .container,
.auth-modern-body .auth-main .container {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	width: 100%;
}

.auth-modern-body .row.justify-content-center {
	margin: 0;
}

.auth-modern-body .col-12.py-5 {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
}

.auth-modern-body .section.pt-5 {
	padding-top: 0 !important;
}

/* === Glass content card === */
.auth-modern-body .auth-tabs {
	width: 100%;
	max-width: var(--auth-glass-max);
	margin: 0 auto;
}

.auth-modern-body .auth-flow-step {
	width: 100%;
	max-width: var(--auth-glass-max);
	margin: 0 auto;
}

.auth-modern-body .auth-webauthn-message {
	font-size: 13px;
	margin-top: 15px;
	padding: 12px;
	border-radius: 8px;
}

.auth-modern-body .auth-webauthn-message--error {
	color: #ff8a8a;
	background: rgba(255, 68, 68, 0.1);
	border: 1px solid rgba(255, 68, 68, 0.3);
}

.auth-modern-body .auth-webauthn-message--success {
	color: #7dffb8;
	background: rgba(0, 255, 136, 0.1);
	border: 1px solid rgba(0, 255, 136, 0.3);
}

/* Wider glass card (recovery phrase, long forms) */
.auth-modern-body .auth-card-wrap--wide {
	max-width: 640px;
}

/* Step notes & helper copy */
.auth-modern-body .auth-step-note {
	margin: 0 0 16px;
	color: var(--auth-on-dark-muted);
	font-size: 0.875rem;
	line-height: 1.55;
}

.auth-modern-body .auth-step-note--spaced {
	margin-top: 20px;
}

/* Recovery phrase / secret display */
.auth-modern-body .auth-phrase-display {
	margin: 16px 0 20px;
	padding: 18px 16px;
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid rgba(255, 205, 0, 0.35);
	border-radius: 14px;
	box-shadow: 0 0 24px rgba(255, 205, 0, 0.08);
}

.auth-modern-body .auth-phrase-display__value {
	display: block;
	margin: 0;
	color: var(--auth-yellow);
	font-family: ui-monospace, 'Courier New', monospace;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.65;
	letter-spacing: 0.03em;
	word-break: break-word;
	text-align: center;
	text-shadow: 0 0 12px rgba(255, 205, 0, 0.25);
}

/* Glass callouts (info, warning, success, danger) */
.auth-modern-body .auth-callout {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	margin: 0 0 16px;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid var(--auth-glass-border);
	background: rgba(255, 255, 255, 0.05);
	text-align: left;
}

.auth-modern-body .auth-callout__icon {
	flex-shrink: 0;
	margin-top: 2px;
	font-size: 1.1rem;
}

.auth-modern-body .auth-callout__body,
.auth-modern-body .auth-callout__body p {
	margin: 0;
	color: var(--auth-on-dark-muted);
	font-size: 0.875rem;
	line-height: 1.55;
}

.auth-modern-body .auth-callout--muted {
	background: rgba(255, 255, 255, 0.04);
}

.auth-modern-body .auth-callout--muted .auth-callout__icon {
	color: rgba(255, 255, 255, 0.55);
}

.auth-modern-body .auth-callout--info {
	background: rgba(255, 255, 255, 0.06);
	border-color: var(--auth-glass-border);
}

.auth-modern-body .auth-callout--info .auth-callout__icon {
	color: var(--auth-yellow);
}

.auth-modern-body .auth-callout--warning {
	background: rgba(255, 205, 0, 0.1);
	border-color: rgba(255, 205, 0, 0.35);
}

.auth-modern-body .auth-callout--warning .auth-callout__icon,
.auth-modern-body .auth-callout--warning .auth-callout__body {
	color: var(--auth-on-dark);
}

.auth-modern-body .auth-callout--success {
	background: rgba(0, 255, 136, 0.08);
	border-color: rgba(0, 255, 136, 0.28);
}

.auth-modern-body .auth-callout--success .auth-callout__icon {
	color: #7dffb8;
}

.auth-modern-body .auth-callout--danger {
	background: rgba(220, 53, 69, 0.12);
	border-color: rgba(220, 53, 69, 0.4);
}

.auth-modern-body .auth-callout--danger .auth-callout__icon {
	color: #f87171;
}

.auth-modern-body .auth-flow-step--banned .auth-hero-icon i {
	color: #f87171;
}

.auth-modern-body .auth-flow-step--banned .auth-hero-icon i::before {
	color: #f87171;
}

/* Secondary CTA (security key, view appeal) */
.auth-modern-body .auth-card .btn-feature {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	padding: 13px 20px;
	border-radius: 12px;
	border: 1px solid var(--auth-glass-border) !important;
	background: rgba(255, 255, 255, 0.08) !important;
	color: var(--auth-on-dark) !important;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.auth-modern-body .auth-card .btn-feature:hover {
	background: rgba(255, 255, 255, 0.12) !important;
	border-color: rgba(255, 205, 0, 0.45) !important;
	color: #fff !important;
}

.auth-modern-body .auth-divider {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 20px 0;
	color: var(--auth-on-dark-muted);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.auth-modern-body .auth-divider::before,
.auth-modern-body .auth-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--auth-glass-border);
}

.auth-modern-body .auth-divider span {
	padding: 0 4px;
	white-space: nowrap;
}

.auth-modern-body .auth-card .form-text--success .small {
	color: #7dffb8 !important;
}

html.auth-modern .auth-card-wrap,
.auth-modern-body .auth-card-wrap {
	max-width: var(--auth-glass-max);
	min-height: 0 !important;
	height: auto !important;
	padding-bottom: 0 !important;
	margin: 4px auto 0;
	position: relative;
	z-index: 1;
}

html.auth-modern .auth-card,
.auth-modern-body .auth-card {
	background-color: var(--auth-glass-bg) !important;
	background-image: none !important;
	-webkit-backdrop-filter: var(--auth-glass-blur) !important;
	backdrop-filter: var(--auth-glass-blur) !important;
	border: 1px solid var(--auth-glass-border) !important;
	border-radius: var(--auth-radius) !important;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42) !important;
	padding: 48px 40px 44px !important;
	min-height: 0 !important;
	position: relative;
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
	html.auth-modern .auth-card,
	.auth-modern-body .auth-card,
	.auth-modern-body .card-front {
		background-color: rgba(28, 28, 32, 0.75) !important;
	}
}

/* Hero icon badge */
.auth-modern-body .auth-hero-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin: 0 auto 20px;
	border-radius: 16px;
	background: var(--auth-glass-bg-strong);
	border: 1px solid var(--auth-glass-border);
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	backdrop-filter: blur(16px) saturate(150%);
	box-shadow: inset 0 1px 0 var(--auth-glass-highlight);
}

.auth-modern-body .auth-hero-icon i {
	display: block;
	font-size: 1.45rem;
	line-height: 1;
	color: var(--auth-yellow);
}

.auth-modern-body .auth-hero-icon i::before {
	opacity: 1;
	color: var(--auth-yellow);
}

.auth-modern-body .auth-hero-icon i::after {
	opacity: 0.45;
	color: #fff;
}

.auth-modern-body .auth-icon {
	font-size: 2.25rem !important;
	margin-bottom: 18px !important;
	color: var(--auth-ink) !important;
	text-shadow: none !important;
}

.auth-modern-body .auth-title {
	color: var(--auth-on-dark) !important;
	font-size: 1.4rem !important;
	font-weight: 700 !important;
	margin-bottom: 10px !important;
}

.auth-modern-body .auth-subtitle {
	color: var(--auth-on-dark-muted) !important;
	font-size: 0.9rem !important;
	margin-bottom: 28px !important;
	line-height: 1.5 !important;
}

.auth-modern-body .auth-card .auth-subtitle a.link {
	color: var(--auth-yellow) !important;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.auth-modern-body .auth-card .auth-subtitle a.link:hover {
	color: #fff !important;
}

/* Secondary actions (method switch, forgot password) — quiet until hover */
.auth-modern-body .auth-card-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-top: 4px;
}

.auth-modern-body .auth-card-links--method {
	margin-top: 8px;
	margin-bottom: 4px;
}

.auth-modern-body .auth-card-links--footer {
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--auth-glass-border);
}

.auth-modern-body .auth-text-link,
.auth-modern-body .auth-card .auth-text-link,
.auth-modern-body .auth-card .auth-card-links a,
.auth-modern-body .auth-card p.text-center > a.link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 8px 14px;
	border: none;
	border-radius: 999px;
	background: transparent;
	color: var(--auth-on-dark-muted) !important;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.35;
	text-decoration: none !important;
	cursor: pointer;
	transition:
		color 0.2s ease,
		background 0.2s ease,
		border-color 0.2s ease;
}

.auth-modern-body .auth-text-link i,
.auth-modern-body .auth-card .auth-text-link i,
.auth-modern-body .auth-card .auth-card-links a i,
.auth-modern-body .auth-card p.text-center > a.link i {
	font-size: 0.9rem;
	color: rgba(255, 205, 0, 0.65);
	transition: color 0.2s ease;
}

.auth-modern-body .auth-text-link:hover,
.auth-modern-body .auth-text-link:focus-visible,
.auth-modern-body .auth-card .auth-text-link:hover,
.auth-modern-body .auth-card .auth-text-link:focus-visible,
.auth-modern-body .auth-card .auth-card-links a:hover,
.auth-modern-body .auth-card .auth-card-links a:focus-visible,
.auth-modern-body .auth-card p.text-center > a.link:hover,
.auth-modern-body .auth-card p.text-center > a.link:focus-visible {
	color: var(--auth-on-dark) !important;
	background: rgba(255, 255, 255, 0.06);
	outline: none;
}

.auth-modern-body .auth-text-link:hover i,
.auth-modern-body .auth-text-link:focus-visible i,
.auth-modern-body .auth-card .auth-text-link:hover i,
.auth-modern-body .auth-card .auth-text-link:focus-visible i,
.auth-modern-body .auth-card .auth-card-links a:hover i,
.auth-modern-body .auth-card .auth-card-links a:focus-visible i,
.auth-modern-body .auth-card p.text-center > a.link:hover i,
.auth-modern-body .auth-card p.text-center > a.link:focus-visible i {
	color: var(--auth-yellow);
}

.auth-modern-body .auth-text-link:focus-visible,
.auth-modern-body .auth-card .auth-text-link:focus-visible,
.auth-modern-body .auth-card .auth-card-links a:focus-visible,
.auth-modern-body .auth-card p.text-center > a.link:focus-visible {
	box-shadow: 0 0 0 2px rgba(255, 205, 0, 0.25);
}

.auth-modern-body .auth-method-switch {
	margin: 0;
}

.auth-modern-body .auth-page a.link:not(.auth-card .link) {
	color: var(--auth-yellow) !important;
}

/* Segmented tabs — glass rail above card (previous style) */
.auth-modern-body .auth-tab-labels {
	display: flex;
	gap: 8px;
	margin-bottom: 28px;
	padding: 6px;
	background: var(--auth-glass-bg);
	border: 1px solid var(--auth-glass-border);
	border-radius: 12px;
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	backdrop-filter: blur(24px) saturate(160%);
}

.auth-modern-body .auth-tab-label {
	flex: 1;
	min-width: 0 !important;
	padding: 12px 10px !important;
	background: transparent !important;
	border: none !important;
	border-radius: 8px !important;
	color: var(--auth-on-dark-muted) !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	box-shadow: none !important;
}

.auth-modern-body .auth-tab-label:hover {
	background: rgba(255, 205, 0, 0.15) !important;
	color: var(--auth-yellow) !important;
}

.auth-modern-body #tab-login:checked ~ .auth-tab-labels label[for="tab-login"],
.auth-modern-body #tab-register:checked ~ .auth-tab-labels label[for="tab-register"],
.auth-modern-body #tab-account:checked ~ .auth-tab-labels label[for="tab-account"] {
	background: var(--auth-yellow) !important;
	color: var(--auth-ink) !important;
	box-shadow: 0 4px 20px rgba(255, 205, 0, 0.35) !important;
}

.auth-modern-body #tab-login:checked ~ .auth-tab-labels label[for="tab-login"] i,
.auth-modern-body #tab-register:checked ~ .auth-tab-labels label[for="tab-register"] i,
.auth-modern-body #tab-account:checked ~ .auth-tab-labels label[for="tab-account"] i {
	color: var(--auth-ink) !important;
}

/* Only the active tab panel participates in layout (fixes huge scroll gap) */
html.auth-modern .auth-card-wrap > .auth-tab-content,
.auth-modern-body .auth-card-wrap > .auth-tab-content {
	display: none !important;
	position: relative !important;
	top: auto !important;
	left: auto !important;
	width: 100% !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: none !important;
}

html.auth-modern #tab-login:checked ~ .auth-card-wrap > #content-login,
html.auth-modern #tab-register:checked ~ .auth-card-wrap > #content-register,
html.auth-modern #tab-account:checked ~ .auth-card-wrap > #content-account,
.auth-modern-body #tab-login:checked ~ .auth-card-wrap > #content-login,
.auth-modern-body #tab-register:checked ~ .auth-card-wrap > #content-register,
.auth-modern-body #tab-account:checked ~ .auth-card-wrap > #content-account {
	display: block !important;
	pointer-events: auto !important;
}

/* Legacy pill toggle — hidden on modern layout */
.login-method-toggle,
.auth-method-toggle {
	display: none !important;
}

.login-method-toggle--legacy,
.auth-method-toggle--legacy {
	display: flex;
	gap: 6px;
	margin-bottom: 24px;
	padding: 5px;
	background: rgba(0, 0, 0, 0.22);
	border-radius: 10px;
	border: 1px solid var(--auth-glass-border);
}

.login-method-toggle .login-method-option,
.auth-method-toggle .login-method-option {
	flex: 1;
	margin: 0;
	cursor: pointer;
}

.auth-method-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 14px;
	text-align: center;
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.auth-method-btn i {
	font-size: 1rem;
	color: var(--auth-on-dark-muted);
	transition: color 0.2s ease;
}

.auth-method-btn span {
	font-size: 12px;
	font-weight: 700;
	color: var(--auth-on-dark-muted);
}

.method-radio { position: absolute; opacity: 0; pointer-events: none; }

#radio-credentials:checked ~ .login-method-toggle label[for="radio-credentials"] .auth-method-btn,
#radio-account:checked ~ .login-method-toggle label[for="radio-account"] .auth-method-btn,
.auth-method-btn.is-active {
	border-color: rgba(255, 205, 0, 0.45);
	background: rgba(255, 255, 255, 0.12);
}

#radio-credentials:checked ~ .login-method-toggle label[for="radio-credentials"] .auth-method-btn i,
#radio-credentials:checked ~ .login-method-toggle label[for="radio-credentials"] .auth-method-btn span,
#radio-account:checked ~ .login-method-toggle label[for="radio-account"] .auth-method-btn i,
#radio-account:checked ~ .login-method-toggle label[for="radio-account"] .auth-method-btn span,
.auth-method-btn.is-active i,
.auth-method-btn.is-active span {
	color: var(--auth-yellow);
}

#radio-credentials:checked ~ .credentials-fields-wrapper { display: block !important; }
#radio-credentials:checked ~ .account-number-fields-wrapper { display: none !important; }
#radio-account:checked ~ .credentials-fields-wrapper { display: none !important; }
#radio-account:checked ~ .account-number-fields-wrapper { display: block !important; }

/* Form spacing inside glass card */
.auth-modern-body .auth-card .form-group,
.auth-modern-body .card-front .form-group,
.auth-modern-body .center-wrap .form-group {
	margin-bottom: 22px !important;
}

.auth-modern-body .auth-card .form-check,
.auth-modern-body .card-front .form-check {
	display: flex !important;
	align-items: flex-start;
	gap: 12px;
	padding-left: 0 !important;
	margin: 24px 0 !important;
}

.auth-modern-body .auth-card .btn-mt4,
.auth-modern-body .auth-card .btn.btn-mt4 {
	margin-top: 8px !important;
}

.auth-modern-body .auth-card .mt-3,
.auth-modern-body .auth-card .mt-4 {
	margin-top: 1.25rem !important;
}

.auth-modern-body .auth-card .auth-captcha {
	margin-top: 20px !important;
	margin-bottom: 4px !important;
}

/* Inputs — frosted fields */
.auth-modern-body .auth-card .form-style,
.auth-modern-body .card-front .form-style,
.auth-modern-body .center-wrap .form-style {
	background: rgba(255, 255, 255, 0.1) !important;
	color: var(--auth-on-dark) !important;
	border: 1px solid var(--auth-glass-border) !important;
	border-radius: 12px !important;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
	padding: 15px 20px 15px 55px !important;
	min-height: 52px !important;
}

.auth-modern-body .auth-card .form-style:focus,
.auth-modern-body .card-front .form-style:focus {
	border-color: rgba(255, 205, 0, 0.55) !important;
	box-shadow: 0 0 0 3px rgba(255, 205, 0, 0.15) !important;
	outline: none !important;
}

.auth-modern-body .auth-card .form-style::placeholder {
	color: rgba(255, 255, 255, 0.42) !important;
}

.auth-modern-body .auth-card .auth-textarea.form-style {
	height: auto;
	min-height: 100px;
	padding-top: 15px !important;
	padding-left: 20px !important;
	resize: vertical;
}

.auth-modern-body .auth-card .input-icon,
.auth-modern-body .card-front .input-icon {
	color: var(--auth-yellow) !important;
	opacity: 0.9;
}

.auth-modern-body .auth-tab-label i {
	font-size: 1.05rem;
	margin-bottom: 2px;
}

.auth-modern-body .invalid-feedback,
.auth-modern-body .help-block .small,
.auth-modern-body .form-text .small {
	color: #f87171 !important;
	font-size: 12px;
}

/* Checkboxes — flex row (legacy style.css zeros margin-left and breaks BS float layout) */
.auth-modern-body .auth-card .form-check-input,
.auth-modern-body .card-front .form-check-input {
	float: none !important;
	flex-shrink: 0;
	width: 1.125rem !important;
	height: 1.125rem !important;
	margin: 0.2em 0 0 !important;
	background-color: rgba(255, 255, 255, 0.12) !important;
	border: 2px solid var(--auth-glass-border) !important;
	cursor: pointer !important;
}

.auth-modern-body .auth-card .form-check-input:hover,
.auth-modern-body .card-front .form-check-input:hover {
	border-color: rgba(255, 205, 0, 0.55) !important;
}

.auth-modern-body .auth-card .form-check-input:focus,
.auth-modern-body .card-front .form-check-input:focus {
	border-color: var(--auth-yellow) !important;
	box-shadow: 0 0 0 3px rgba(255, 205, 0, 0.2) !important;
	outline: none !important;
}

.auth-modern-body .auth-card .form-check-input:checked,
.auth-modern-body .card-front .form-check-input:checked {
	background-color: var(--auth-yellow) !important;
	border-color: var(--auth-yellow) !important;
}

.auth-modern-body .auth-card .form-check-label,
.auth-modern-body .card-front .form-check-label {
	flex: 1;
	min-width: 0;
	padding-left: 0 !important;
	color: var(--auth-on-dark-muted) !important;
	font-size: 0.8125rem;
	line-height: 1.45;
}

.auth-modern-body .auth-card .form-check-label a,
.auth-modern-body .card-front .form-check-label a {
	color: var(--auth-yellow) !important;
	font-weight: 600;
	text-decoration: underline;
}

/* Primary CTA — Crypton gold on glass */
.auth-modern-body .auth-card .btn-mt4,
.auth-modern-body .auth-card .btn.btn-mt4,
.auth-modern-body .card-front .btn-mt4 {
	width: 100%;
	display: flex !important;
	justify-content: center;
	background: linear-gradient(135deg, #ffcd00 0%, #e6b800 100%) !important;
	color: var(--auth-ink) !important;
	border: none !important;
	border-radius: 12px !important;
	font-weight: 800 !important;
	font-size: 13px !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	box-shadow: 0 4px 16px rgba(255, 205, 0, 0.25) !important;
	min-height: 52px !important;
	padding: 14px 24px !important;
	margin-top: 8px !important;
}

.auth-modern-body .auth-card .btn-mt4:hover,
.auth-modern-body .card-front .btn-mt4:hover {
	filter: brightness(1.05);
	color: #000 !important;
}

.auth-modern-body .auth-card .btn-feature,
.auth-modern-body .card-front .btn-feature {
	width: 100%;
	border-radius: 12px !important;
	font-weight: 700 !important;
	background: linear-gradient(135deg, #ffcd00 0%, #e6b800 100%) !important;
	color: var(--auth-ink) !important;
	border: none !important;
}

.auth-modern-body .auth-card .alert {
	background: rgba(0, 0, 0, 0.25) !important;
	border-color: var(--auth-glass-border) !important;
	color: var(--auth-on-dark-muted) !important;
}

/* Trust strip */
.auth-trust-strip {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 14px;
	margin-top: 28px;
	padding-top: 22px;
	border-top: 1px solid var(--auth-glass-border);
	font-size: 11px;
	font-weight: 600;
	color: var(--auth-on-dark-muted);
}

.auth-trust-strip span {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.auth-trust-strip i {
	color: var(--auth-yellow);
	font-size: 12px;
}

/* Account / info boxes */
.auth-modern-body .info-box {
	background: rgba(0, 0, 0, 0.2) !important;
	border-color: var(--auth-glass-border) !important;
	color: var(--auth-on-dark-muted) !important;
}

.auth-modern-body .info-box i {
	color: var(--auth-yellow) !important;
}

.auth-modern-body .account-number-display {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: rgba(0, 0, 0, 0.35) !important;
	border-color: rgba(255, 205, 0, 0.4) !important;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
}

.auth-modern-body .account-number-display .account-number-label,
.auth-modern-body .account-number-display .account-number-value {
	align-self: stretch;
	width: 100%;
}

.auth-modern-body .account-number-display .account-number-label {
	text-align: center;
}

.auth-modern-body .account-number-display #copy-account-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 1rem !important;
	padding: 11px 18px;
	border-radius: 12px;
	border: 1px solid var(--auth-glass-border) !important;
	background: rgba(255, 255, 255, 0.08) !important;
	color: var(--auth-on-dark) !important;
	font-size: 0.8125rem;
	font-weight: 600;
}

.auth-modern-body .account-number-display #copy-account-btn:hover {
	background: rgba(255, 255, 255, 0.12) !important;
	border-color: rgba(255, 205, 0, 0.45) !important;
}

.auth-modern-body .account-number-warning {
	margin-top: 20px !important;
	padding: 14px 16px !important;
	background: rgba(255, 205, 0, 0.1) !important;
	border: 1px solid rgba(255, 205, 0, 0.35) !important;
	border-radius: 12px !important;
	color: var(--auth-on-dark-muted) !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	line-height: 1.55 !important;
}

.auth-modern-body .account-number-warning i {
	color: var(--auth-yellow) !important;
	margin-right: 8px !important;
}

.auth-modern-body .account-number-label,
.auth-modern-body .account-number-status {
	color: var(--auth-on-dark-muted) !important;
}

.auth-modern-body .account-number-value,
.auth-modern-body .account-number-value.final {
	color: var(--auth-yellow) !important;
}

/* Tor captcha: no-JS grid picker OR JS image tap */
html:not(.no-js) .auth-modern-body .auth-captcha__click-nojs {
	display: none !important;
}

html.no-js .auth-modern-body .auth-captcha__click-js {
	display: none !important;
}

html:not(.no-js) .auth-modern-body .auth-captcha__click-sub--nojs {
	display: none !important;
}

html.no-js .auth-modern-body .auth-captcha__click-sub--js {
	display: none !important;
}

.auth-modern-body .auth-captcha__click-nojs,
.auth-modern-body .auth-captcha__click-js {
	width: 100%;
}

.auth-modern-body .auth-captcha__click-wrap {
	position: relative;
	width: 100%;
	line-height: 0;
}

.auth-modern-body .auth-captcha__click-grid {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: repeat(var(--tor-captcha-cols, 16), 1fr);
	grid-template-rows: repeat(var(--tor-captcha-rows, 10), 1fr);
	z-index: 2;
}

.auth-modern-body .auth-captcha__grid-cell {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.auth-modern-body .auth-captcha__grid-cell:hover,
.auth-modern-body .auth-captcha__grid-cell:focus-visible {
	outline: 1px solid rgba(255, 205, 0, 0.55);
	outline-offset: -1px;
	background: rgba(255, 205, 0, 0.1);
}

/* Captcha — glass panel for Tor click; ALTCHA uses its own bordered widget */
.auth-modern-body .auth-captcha--click,
.auth-modern-body .auth-captcha.tor-captcha,
.auth-modern-body .tor-captcha.auth-captcha {
	background: rgba(255, 255, 255, 0.05) !important;
	border: 1px solid var(--auth-glass-border) !important;
	border-radius: 14px;
	padding: 18px 16px;
	-webkit-backdrop-filter: blur(12px) saturate(150%);
	backdrop-filter: blur(12px) saturate(150%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.auth-modern-body .auth-captcha--click {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	text-align: center;
	gap: 4px;
}

/* Tor click captcha — 2027 glass stage */
.auth-modern-body .auth-captcha--click {
	gap: 10px;
	padding: 14px 16px 12px !important;
	border-radius: 16px !important;
	background: linear-gradient(
		145deg,
		rgba(255, 255, 255, 0.09) 0%,
		rgba(255, 255, 255, 0.03) 48%,
		rgba(255, 205, 0, 0.04) 100%
	) !important;
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.1),
		0 12px 40px rgba(0, 0, 0, 0.28) !important;
}

.auth-modern-body .auth-captcha__click-head {
	text-align: center;
}

.auth-modern-body .auth-captcha__click-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0 0 6px;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(255, 205, 0, 0.12);
	border: 1px solid rgba(255, 205, 0, 0.28);
	color: var(--auth-yellow) !important;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	line-height: 1.2;
}

.auth-modern-body .auth-captcha__click-title {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 4px;
	color: var(--auth-on-dark) !important;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.35;
	letter-spacing: -0.02em;
}

.auth-modern-body .auth-captcha__click-title i {
	color: var(--auth-yellow) !important;
	font-size: 1.05rem;
}

.auth-modern-body .auth-captcha__click-sub {
	margin: 0;
	color: var(--auth-on-dark-muted) !important;
	font-size: 0.75rem;
	font-weight: 500;
	line-height: 1.45;
}

.auth-modern-body .auth-captcha__click-stage {
	position: relative;
	width: 100%;
	border-radius: 12px;
	padding: 2px;
	box-sizing: border-box;
	background: linear-gradient(
		135deg,
		rgba(255, 205, 0, 0.35),
		rgba(255, 255, 255, 0.12) 42%,
		rgba(255, 205, 0, 0.2)
	);
}

.auth-modern-body .auth-captcha__click-wrap {
	position: relative;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	background: #0c0c0e;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.auth-modern-body .auth-captcha__click-cell {
	position: absolute;
	z-index: 2;
	box-sizing: border-box;
	border: 2px solid rgba(255, 205, 0, 0.85);
	border-radius: 6px;
	background: rgba(255, 205, 0, 0.14);
	box-shadow: 0 0 18px rgba(255, 205, 0, 0.22);
	pointer-events: none;
	transition: left 0.2s ease, top 0.2s ease, width 0.2s ease, height 0.2s ease;
}

.auth-modern-body .auth-captcha__click-marker {
	position: absolute;
	z-index: 3;
	width: 18px;
	height: 18px;
	margin: -9px 0 0 -9px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: var(--auth-yellow);
	box-shadow:
		0 0 0 3px rgba(255, 205, 0, 0.35),
		0 4px 12px rgba(0, 0, 0, 0.45);
	pointer-events: none;
	transition: left 0.15s ease, top 0.15s ease;
}

.auth-modern-body .auth-captcha__click-marker::after {
	content: '';
	position: absolute;
	inset: 4px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
}

.auth-modern-body .auth-captcha__click-image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 100%;
	cursor: pointer;
	vertical-align: middle;
	image-rendering: auto;
	-webkit-user-select: none;
	user-select: none;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
}

.auth-modern-body .auth-captcha__click-wrap:hover .auth-captcha__click-image {
	transform: scale(1.008);
	filter: brightness(1.04);
}

.auth-modern-body .auth-captcha__click-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(10, 10, 12, 0.15) 0%,
		rgba(10, 10, 12, 0.42) 100%
	);
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.auth-modern-body .auth-captcha__click-overlay-pulse {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid rgba(255, 205, 0, 0.55);
	box-shadow: 0 0 24px rgba(255, 205, 0, 0.25);
	animation: authClickPulse 2.2s ease-in-out infinite;
}

.auth-modern-body .auth-captcha__click-overlay-text {
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(10, 10, 12, 0.72);
	border: 1px solid rgba(255, 255, 255, 0.14);
	color: rgba(255, 255, 255, 0.92) !important;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

@keyframes authClickPulse {
	0%, 100% {
		transform: scale(0.92);
		opacity: 0.65;
	}
	50% {
		transform: scale(1.08);
		opacity: 1;
	}
}

.auth-modern-body .auth-captcha__click-status {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0;
	color: var(--auth-yellow) !important;
	font-size: 0.8125rem;
	font-weight: 600;
}

.auth-modern-body .auth-captcha__click-status[hidden] {
	display: none !important;
}

.auth-modern-body .auth-captcha__click-feedback {
	color: #f87171 !important;
	text-align: center;
}

.auth-modern-body .auth-captcha--click-selected .auth-captcha__click-stage {
	background: linear-gradient(
		135deg,
		rgba(255, 205, 0, 0.4),
		rgba(255, 235, 150, 0.28) 50%,
		rgba(255, 205, 0, 0.32)
	);
}

.auth-modern-body .auth-captcha--click-selected .auth-captcha__click-wrap {
	box-shadow:
		inset 0 0 0 1px rgba(255, 205, 0, 0.28),
		0 0 20px rgba(255, 205, 0, 0.1);
}

.auth-modern-body .auth-captcha--click-selected .auth-captcha__click-overlay {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
}

.auth-modern-body .auth-captcha--click-selected .auth-captcha__click-image {
	filter: brightness(1.04);
}

/* ALTCHA: full-width, same footprint as .form-style inputs (no nested glass box) */
.auth-modern-body .auth-captcha--altcha {
	display: block;
	width: 100%;
	padding: 0;
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	-webkit-backdrop-filter: none !important;
	backdrop-filter: none !important;
}

.auth-modern-body .auth-captcha--altcha altcha-widget {
	display: block;
	width: 100%;
	max-width: none;
	min-height: 52px;
	box-sizing: border-box;
	--altcha-max-width: 100%;
	--altcha-border-radius: 12px;
	--altcha-border-width: 1px;
	--altcha-color-base: rgba(255, 255, 255, 0.1);
	--altcha-color-border: var(--auth-glass-border);
	--altcha-color-text: var(--auth-on-dark);
	--altcha-color-border-focus: rgba(255, 205, 0, 0.55);
	--altcha-color-footer-bg: transparent;
}

.auth-modern-body .auth-captcha .captcha-label {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin: 0 0 12px;
	color: var(--auth-on-dark) !important;
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.auth-modern-body .auth-captcha .captcha-label i {
	flex-shrink: 0;
	color: var(--auth-yellow) !important;
	font-size: 1rem;
}

.auth-modern-body .auth-captcha--math .captcha-input {
	width: 100%;
	max-width: 200px;
	margin: 0 auto;
	padding: 14px 16px !important;
	min-height: 48px !important;
	text-align: center;
	font-size: 1rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.auth-modern-body .auth-captcha .captcha-hint {
	display: block;
	width: 100%;
	margin: 10px 0 0;
	color: var(--auth-on-dark-muted) !important;
	font-size: 0.75rem;
	font-style: normal;
	line-height: 1.45;
	text-align: center;
}

.auth-modern-body .auth-captcha .form-text {
	width: 100%;
	text-align: center;
}

.auth-modern-body .auth-captcha .form-text .small {
	color: #f87171 !important;
}

.auth-modern-body .register-account-upsell {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 28px;
	padding: 18px 20px;
	background: rgba(255, 255, 255, 0.06) !important;
	border: 1px solid var(--auth-glass-border) !important;
	border-radius: 14px;
	cursor: pointer;
	text-align: left;
	transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.auth-modern-body .register-account-upsell:hover,
.auth-modern-body .register-account-upsell:focus-visible {
	background: rgba(255, 255, 255, 0.1) !important;
	border-color: rgba(255, 205, 0, 0.4) !important;
	transform: translateY(-1px);
}

.auth-modern-body .register-account-upsell__icon {
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(255, 205, 0, 0.12);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--auth-yellow);
	font-size: 20px;
}

.auth-modern-body .register-account-upsell__eyebrow {
	color: rgba(255, 205, 0, 0.85);
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	margin-bottom: 2px;
}

.auth-modern-body .register-account-upsell__title {
	color: var(--auth-on-dark);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	margin-bottom: 2px;
}

.auth-modern-body .register-account-upsell__text {
	color: var(--auth-on-dark-muted);
	font-size: 12px;
	font-weight: 500;
	line-height: 1.4;
}

.auth-modern-body .register-account-upsell__arrow {
	flex-shrink: 0;
	color: var(--auth-yellow);
	font-size: 13px;
}

/* Language switcher — glass pill + menu (2027 auth) */
.auth-modern-body .auth-lang-switcher {
	position: relative;
	flex-shrink: 0;
}

.auth-modern-body .auth-lang-switcher__trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 8px 14px 8px 12px;
	border: 1px solid var(--auth-glass-border) !important;
	border-radius: 999px !important;
	background: var(--auth-glass-bg-strong) !important;
	-webkit-backdrop-filter: blur(16px) saturate(150%);
	backdrop-filter: blur(16px) saturate(150%);
	box-shadow:
		inset 0 1px 0 var(--auth-glass-highlight),
		0 4px 16px rgba(0, 0, 0, 0.2) !important;
	color: var(--auth-on-dark) !important;
	font-family: inherit;
	font-size: 0.8125rem;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition:
		background 0.2s ease,
		border-color 0.2s ease,
		box-shadow 0.2s ease,
		color 0.2s ease;
}

.auth-modern-body .auth-lang-switcher__trigger::after {
	display: none !important;
}

.auth-modern-body .auth-lang-switcher__trigger:hover,
.auth-modern-body .auth-lang-switcher__trigger:focus-visible {
	background: rgba(255, 255, 255, 0.12) !important;
	border-color: rgba(255, 205, 0, 0.45) !important;
	color: #fff !important;
	outline: none;
}

.auth-modern-body .auth-lang-switcher__trigger[aria-expanded="true"] {
	background: rgba(255, 255, 255, 0.1) !important;
	border-color: rgba(255, 205, 0, 0.5) !important;
	box-shadow:
		inset 0 1px 0 var(--auth-glass-highlight),
		0 0 0 2px rgba(255, 205, 0, 0.15) !important;
}

.auth-modern-body .auth-lang-switcher__flag {
	flex-shrink: 0;
	width: 20px;
	height: 14px;
	border-radius: 2px;
	background-size: cover;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.auth-modern-body .auth-lang-switcher__label {
	max-width: 11ch;
	overflow: hidden;
	text-overflow: ellipsis;
}

.auth-modern-body .auth-lang-switcher__chevron {
	flex-shrink: 0;
	margin-left: 2px;
	font-size: 0.6rem;
	color: var(--auth-on-dark-muted);
	transition: transform 0.2s ease, color 0.2s ease;
}

.auth-modern-body .auth-lang-switcher__trigger:hover .auth-lang-switcher__chevron,
.auth-modern-body .auth-lang-switcher__trigger[aria-expanded="true"] .auth-lang-switcher__chevron {
	color: var(--auth-yellow);
}

.auth-modern-body .auth-lang-switcher__trigger[aria-expanded="true"] .auth-lang-switcher__chevron {
	transform: rotate(180deg);
}

.auth-modern-body .auth-lang-switcher__menu {
	min-width: 200px;
	max-height: min(320px, 60vh);
	margin-top: 8px !important;
	padding: 6px !important;
	border: 1px solid var(--auth-glass-border) !important;
	border-radius: 14px !important;
	background: rgba(18, 18, 22, 0.92) !important;
	-webkit-backdrop-filter: blur(24px) saturate(160%);
	backdrop-filter: blur(24px) saturate(160%);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
	overflow: auto;
}

.auth-modern-body .auth-lang-switcher__menu li {
	list-style: none;
	margin: 0;
	padding: 0;
}

.auth-modern-body .auth-lang-switcher__option {
	display: flex !important;
	align-items: center;
	gap: 10px;
	padding: 10px 12px !important;
	border-radius: 10px !important;
	color: var(--auth-on-dark-muted) !important;
	font-size: 0.8125rem !important;
	font-weight: 500;
	text-transform: none;
	transition: background 0.15s ease, color 0.15s ease;
}

.auth-modern-body .auth-lang-switcher__option:hover,
.auth-modern-body .auth-lang-switcher__option:focus {
	background: rgba(255, 255, 255, 0.08) !important;
	color: var(--auth-on-dark) !important;
}

.auth-modern-body .auth-lang-switcher__option.active,
.auth-modern-body .auth-lang-switcher__option:active {
	background: rgba(255, 205, 0, 0.12) !important;
	color: var(--auth-on-dark) !important;
}

.auth-modern-body .auth-lang-switcher__option-label {
	flex: 1;
	min-width: 0;
}

.auth-modern-body .auth-lang-switcher__check {
	flex-shrink: 0;
	font-size: 0.75rem;
	color: var(--auth-yellow);
}

.auth-modern-body .auth-lang-switcher--noscript {
	display: none;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

html.no-js .auth-modern-body .auth-lang-switcher--js {
	display: none !important;
}

html.no-js .auth-modern-body .auth-lang-switcher--noscript {
	display: inline-flex !important;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
}

html:not(.no-js) .auth-modern-body .auth-lang-switcher--noscript {
	display: none !important;
}

.auth-modern-body .auth-lang-switcher--noscript .auth-lang-switcher__noscript-label {
	font-size: 0.7rem;
	color: var(--auth-on-dark-muted);
}

.auth-modern-body .auth-lang-switcher__noscript-select {
	padding: 8px 12px;
	border-radius: 10px;
	border: 1px solid var(--auth-glass-border);
	background: var(--auth-glass-bg-strong);
	color: var(--auth-on-dark);
	font-size: 0.8125rem;
}

/* APK badge on dark page */
.auth-modern-body .auth-android-store-badge {
	background: var(--auth-glass-bg) !important;
	-webkit-backdrop-filter: blur(20px) saturate(160%);
	backdrop-filter: blur(20px) saturate(160%);
	border-color: var(--auth-glass-border) !important;
	box-shadow: var(--auth-shadow) !important;
}

/* Legacy 3D card pages → same glass panel */
.auth-modern-body .card-3d-wrap {
	width: 100% !important;
	max-width: var(--auth-panel-max) !important;
	height: auto !important;
	margin: 0 auto !important;
	perspective: none !important;
}

.auth-modern-body .card-3d-wrapper,
.auth-modern-body .card-front,
.auth-modern-body .card-back {
	position: relative !important;
	width: 100% !important;
	height: auto !important;
	transform: none !important;
	-webkit-transform: none !important;
	background-color: var(--auth-glass-bg) !important;
	background-image: none !important;
	-webkit-backdrop-filter: var(--auth-glass-blur) !important;
	backdrop-filter: var(--auth-glass-blur) !important;
	border: 1px solid var(--auth-glass-border) !important;
	border-radius: var(--auth-radius) !important;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42) !important;
}

.auth-modern-body .card-front .auth-title,
.auth-modern-body .center-wrap .auth-title {
	color: var(--auth-on-dark) !important;
}

.auth-modern-body .card-front .auth-subtitle,
.auth-modern-body .center-wrap .auth-subtitle {
	color: var(--auth-on-dark-muted) !important;
}

.auth-modern-body .center-wrap {
	position: relative !important;
	top: auto !important;
	left: auto !important;
	transform: none !important;
	padding: 48px 40px 44px !important;
	width: 100% !important;
}

.auth-modern-body .logo-bottom img {
	filter: brightness(0) invert(1);
	opacity: 0.9;
}

.auth-modern-body .logo-bottom-text {
	color: #fff !important;
}

@media (max-width: 768px) {
	html.auth-modern .auth-card-wrap,
	.auth-modern-body .auth-card-wrap {
		min-height: 0 !important;
	}

	html.auth-modern .auth-card,
	.auth-modern-body .auth-card {
		min-height: 0 !important;
	}
}

/* Beat legacy dark.css body + tab overrides on auth pages */
html.auth-modern body.auth-modern-body {
	background: linear-gradient(165deg, var(--auth-bg-top) 0%, var(--auth-bg-mid) 48%, var(--auth-bg-bottom) 100%) !important;
	color: var(--auth-on-dark) !important;
}

/* Keep glass cards when OS prefers dark (override legacy yellow) */
@media (prefers-color-scheme: dark) {
	html.auth-modern body.auth-modern-body .auth-card,
	html.auth-modern body.auth-modern-body .card-front,
	html.auth-modern body.auth-modern-body .card-back {
		background-color: var(--auth-glass-bg) !important;
		background-image: none !important;
		-webkit-backdrop-filter: var(--auth-glass-blur) !important;
		backdrop-filter: var(--auth-glass-blur) !important;
	}

	html.auth-modern body.auth-modern-body .auth-title {
		color: var(--auth-on-dark) !important;
	}

	html.auth-modern body.auth-modern-body .auth-subtitle {
		color: var(--auth-on-dark-muted) !important;
	}

	html.auth-modern body.auth-modern-body #tab-login:checked ~ .auth-tab-labels label[for="tab-login"],
	html.auth-modern body.auth-modern-body #tab-register:checked ~ .auth-tab-labels label[for="tab-register"],
	html.auth-modern body.auth-modern-body #tab-account:checked ~ .auth-tab-labels label[for="tab-account"] {
		background: var(--auth-yellow) !important;
		color: var(--auth-ink) !important;
		box-shadow: 0 4px 20px rgba(255, 205, 0, 0.35) !important;
	}

	html.auth-modern body.auth-modern-body .auth-tab-label {
		background: transparent !important;
		color: var(--auth-on-dark-muted) !important;
	}
}

@media (min-width: 992px) {
	body.auth-modern-body {
		/* Top-align so the brand column does not shift when the form height changes */
		justify-content: flex-start;
		padding-top: max(32px, 6vh);
	}

	.auth-modern-body .auth-shell {
		grid-template-columns: minmax(260px, 1fr) minmax(400px, 560px);
		gap: 56px;
		align-items: start;
	}

	.auth-modern-body .auth-brand {
		display: flex;
		position: sticky;
		top: max(32px, 6vh);
		align-self: start;
	}

	.auth-modern-body .auth-page__top--mobile {
		display: none;
	}

	.auth-modern-body .auth-panel__toolbar {
		display: flex;
	}

	.auth-modern-body .auth-trust-strip--in-card {
		display: none !important;
	}
}

@media (max-width: 991px) {
	.auth-modern-body .auth-trust-strip--in-card {
		display: flex;
	}
}

@media (max-width: 576px) {
	body.auth-modern-body {
		justify-content: flex-start;
		padding-top: max(12px, env(safe-area-inset-top));
	}

	.auth-modern-body .auth-card,
	.auth-modern-body .center-wrap {
		padding: 28px 22px 32px !important;
	}

	.auth-modern-body .auth-tab-label {
		font-size: 11px !important;
		padding: 10px 8px !important;
	}

	.auth-modern-body .auth-captcha--math .captcha-label {
		flex-wrap: wrap;
	}
}

/* Final override — kill legacy yellow/pattern on auth pages */
html.auth-modern .auth-card,
html.auth-modern body.auth-modern-body .auth-card,
html.auth-modern .card-front,
html.auth-modern .card-back {
	background-color: var(--auth-glass-bg) !important;
	background-image: none !important;
	-webkit-backdrop-filter: var(--auth-glass-blur) !important;
	backdrop-filter: var(--auth-glass-blur) !important;
}

html.auth-modern .auth-card::before,
html.auth-modern .auth-card::after,
html.auth-modern .card-front::before,
html.auth-modern .card-front::after {
	display: none !important;
	content: none !important;
}
