.auth-page {
    --ac-heading: #0f172a;
    --ac-subtitle: #374151;
    --ac-label: #1e293b;
    --ac-input-text: #0f172a;
    --ac-placeholder: #64748b;
    --ac-icon: #6b7280;
    --ac-toggle: #6b7280;
    --ac-toggle-hover: #1e293b;
    --ac-footer-text: #374151;
    --ac-card-bg: #ffffff;
    --ac-card-border: #e2e8f0;
    --ac-input-bg: #f8fafc;
    --ac-input-border: #d1d5db;
    --ac-footer-border: #e2e8f0;
    --ac-pw-rule: #4b5563;
    --ac-strength-bg: #e5e7eb;
}
[data-theme="dark"] .auth-page,
body.dark-theme .auth-page {
    --ac-heading: #f9fafb;
    --ac-subtitle: #e5e7eb;
    --ac-label: #f3f4f6;
    --ac-input-text: #f9fafb;
    --ac-placeholder: #9ca3af;
    --ac-icon: #9ca3af;
    --ac-toggle: #9ca3af;
    --ac-toggle-hover: #f3f4f6;
    --ac-footer-text: #e5e7eb;
    --ac-card-bg: #111827;
    --ac-card-border: #374151;
    --ac-input-bg: #1f2937;
    --ac-input-border: #4b5563;
    --ac-footer-border: #374151;
    --ac-pw-rule: #d1d5db;
    --ac-strength-bg: #374151;
}
body { margin: 0; padding: 0; font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

.auth-background {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	overflow: hidden;
	background-color: #0a101c;
	background-image: url('/img/auth/auth-arena.png');
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
}

.auth-background-overlay {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 55% at 50% 0%, rgba(225, 6, 0, 0.12) 0%, transparent 58%),
		linear-gradient(180deg,
			rgba(248, 250, 252, 0.42) 0%,
			rgba(241, 245, 249, 0.58) 45%,
			rgba(226, 232, 240, 0.72) 100%);
}

[data-theme="dark"] .auth-background-overlay,
body.dark-theme .auth-background-overlay {
	background:
		radial-gradient(ellipse 70% 50% at 50% 0%, rgba(225, 6, 0, 0.16) 0%, transparent 55%),
		linear-gradient(180deg,
			rgba(6, 10, 18, 0.58) 0%,
			rgba(8, 12, 22, 0.74) 48%,
			rgba(5, 8, 14, 0.86) 100%);
}

.auth-page {
	min-height: 100vh;
	min-height: 100dvh;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 20px 28px;
	box-sizing: border-box;
	position: relative;
	background: #f1f5f9;
}

.auth-page:has(> .auth-background) {
	background: transparent;
}

.auth-page::before {
	display: none;
}

[data-theme="dark"] .auth-page,
body.dark-theme .auth-page {
	background: #080c14;
}

[data-theme="dark"] .auth-page:has(> .auth-background),
body.dark-theme .auth-page:has(> .auth-background) {
	background: transparent;
}

.auth-container {
	width: 100%;
	max-width: 540px;
	position: relative;
	z-index: 1;
}

.auth-brand {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	margin: 0 0 18px;
	padding: 0 0 16px;
	text-align: center;
	border-bottom: 1px solid var(--ac-footer-border);
}

.auth-brand__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	line-height: 0;
}

.auth-brand__logo {
	display: block;
	height: 32px;
	width: auto;
	max-width: 170px;
	object-fit: contain;
	filter: brightness(0);
	opacity: 1;
	background: transparent !important;
	border-radius: 0 !important;
}

[data-theme="dark"] .auth-brand__logo,
body.dark-theme .auth-brand__logo {
	filter: none;
}

.auth-card {
	position: relative;
	background: var(--ac-card-bg);
	border: 1px solid var(--ac-card-border);
	border-radius: 24px;
	padding: 34px 36px 28px;
	box-shadow: none;
	width: 100%;
	box-sizing: border-box;
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	overflow: hidden;
}

.auth-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #ef4444 0%, #dc2626 45%, #b91c1c 100%);
}

.auth-page:has(> .auth-background) .auth-card {
	background: rgba(255, 255, 255, 0.94);
	border-color: rgba(226, 232, 240, 0.9);
}

[data-theme="dark"] .auth-page:has(> .auth-background) .auth-card,
body.dark-theme .auth-page:has(> .auth-background) .auth-card {
	background: rgba(15, 23, 42, 0.94);
	border-color: rgba(51, 65, 85, 0.95);
}

.auth-header {
	text-align: center;
	margin: 0 0 20px;
}

.auth-header h1 {
	margin: 0 0 8px;
	font-size: 30px;
	font-weight: 800;
	color: var(--ac-heading);
	line-height: 1.12;
	letter-spacing: -0.04em;
}

.auth-header p {
	margin: 0;
	color: var(--ac-subtitle);
	font-size: 15px;
	line-height: 1.5;
	font-weight: 500;
	opacity: 0.88;
}

.auth-header--verify {
	margin-bottom: 18px;
}

.auth-header--verify p {
	max-width: 34ch;
	margin-left: auto;
	margin-right: auto;
}

.auth-from-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 14px;
}

.auth-from-row__label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ac-subtitle);
	opacity: 0.72;
}

.auth-from {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	max-width: 100%;
	padding: 8px 12px 8px 10px;
	border-radius: 999px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	color: var(--ac-heading);
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

[data-theme="dark"] .auth-from,
body.dark-theme .auth-from {
	background: rgba(30, 41, 59, 0.92);
	border-color: rgba(71, 85, 105, 0.95);
}

.auth-from__mark {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 7px;
	background: #0f172a center / 12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v12H4z'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}

[data-theme="dark"] .auth-from__mark,
body.dark-theme .auth-from__mark {
	background-color: #f8fafc;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v12H4z'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}

.auth-from__addr {
	min-width: 0;
	overflow-wrap: anywhere;
}

.auth-sent {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 16px;
	padding: 15px 15px 14px;
	border-radius: 18px;
	border: 1px solid transparent;
}

.auth-sent--ok {
	background: rgba(16, 185, 129, 0.1);
	border-color: rgba(16, 185, 129, 0.22);
}

.auth-sent--warn {
	background: rgba(245, 158, 11, 0.12);
	border-color: rgba(245, 158, 11, 0.24);
}

[data-theme="dark"] .auth-sent--ok,
body.dark-theme .auth-sent--ok {
	background: rgba(16, 185, 129, 0.14);
	border-color: rgba(52, 211, 153, 0.28);
}

[data-theme="dark"] .auth-sent--warn,
body.dark-theme .auth-sent--warn {
	background: rgba(245, 158, 11, 0.14);
	border-color: rgba(251, 191, 36, 0.28);
}

.auth-sent__icon {
	flex: 0 0 auto;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	position: relative;
	background: #059669;
}

.auth-sent--warn .auth-sent__icon {
	background: #d97706;
}

.auth-sent__icon::before {
	content: "";
	position: absolute;
	inset: 0;
	background: center / 18px 18px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v12H4z'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}

.auth-sent--warn .auth-sent__icon::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3Cpath d='M10.3 4.8L2.8 18a2 2 0 001.7 3h15a2 2 0 001.7-3L13.7 4.8a2 2 0 00-3.4 0z'/%3E%3C/svg%3E");
}

.auth-sent__body {
	min-width: 0;
	flex: 1 1 auto;
}

.auth-sent__title {
	display: block;
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ac-heading);
	line-height: 1.25;
}

.auth-sent__text {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--ac-subtitle);
}

.auth-sent__from {
	margin-top: 10px;
}

.auth-sent__from .auth-from {
	background: rgba(255, 255, 255, 0.78);
}

[data-theme="dark"] .auth-sent__from .auth-from,
body.dark-theme .auth-sent__from .auth-from {
	background: rgba(15, 23, 42, 0.55);
}

.auth-alert {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 13px 14px;
	border-radius: 16px;
	margin-bottom: 14px;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	border: 1px solid transparent;
}

.auth-alert__icon {
	flex: 0 0 auto;
	width: 28px;
	height: 28px;
	border-radius: 9px;
	position: relative;
	margin-top: 0;
}

.auth-alert__icon::before {
	content: "";
	position: absolute;
	inset: 0;
	background: center / 14px 14px no-repeat;
}

.auth-alert__text {
	margin: 0;
	min-width: 0;
	flex: 1 1 auto;
}

.auth-alert__text strong {
	font-weight: 800;
}

.auth-alert.info,
.auth-alert.auth-alert--info {
	background: rgba(59,130,246,0.1);
	border-color: rgba(59,130,246,0.18);
	color: #1d4ed8;
}
.auth-alert.info .auth-alert__icon,
.auth-alert.auth-alert--info .auth-alert__icon {
	background: #2563eb;
}
.auth-alert.info .auth-alert__icon::before,
.auth-alert.auth-alert--info .auth-alert__icon::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 8h.01'/%3E%3Cpath d='M11 12h1v4h1'/%3E%3C/svg%3E");
}
[data-theme="dark"] .auth-alert.info, body.dark-theme .auth-alert.info,
[data-theme="dark"] .auth-alert.auth-alert--info, body.dark-theme .auth-alert.auth-alert--info {
	background: rgba(59,130,246,0.16);
	border-color: rgba(147,197,253,0.28);
	color: #93c5fd;
}

.auth-alert.error,
.auth-alert.auth-alert--error {
	background: rgba(225,6,0,0.08);
	border-color: rgba(225,6,0,0.16);
	color: #b91c1c;
}
.auth-alert.error .auth-alert__icon,
.auth-alert.auth-alert--error .auth-alert__icon {
	background: #dc2626;
}
.auth-alert.error .auth-alert__icon::before,
.auth-alert.auth-alert--error .auth-alert__icon::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9l-6 6'/%3E%3Cpath d='M9 9l6 6'/%3E%3C/svg%3E");
}
[data-theme="dark"] .auth-alert.error, body.dark-theme .auth-alert.error,
[data-theme="dark"] .auth-alert.auth-alert--error, body.dark-theme .auth-alert.auth-alert--error {
	background: rgba(225,6,0,0.14);
	border-color: rgba(252,165,165,0.28);
	color: #fca5a5;
}

.auth-alert.success,
.auth-alert.auth-alert--success {
	background: rgba(16,185,129,0.1);
	border-color: rgba(16,185,129,0.18);
	color: #047857;
}
.auth-alert.success .auth-alert__icon,
.auth-alert.auth-alert--success .auth-alert__icon {
	background: #059669;
}
.auth-alert.success .auth-alert__icon::before,
.auth-alert.auth-alert--success .auth-alert__icon::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}
[data-theme="dark"] .auth-alert.success, body.dark-theme .auth-alert.success,
[data-theme="dark"] .auth-alert.auth-alert--success, body.dark-theme .auth-alert.auth-alert--success {
	background: rgba(16,185,129,0.14);
	border-color: rgba(110,231,183,0.28);
	color: #6ee7b7;
}

.auth-alert.warning,
.auth-alert.auth-alert--warning {
	background: rgba(245,158,11,0.12);
	border-color: rgba(245,158,11,0.22);
	color: #b45309;
}
.auth-alert.warning .auth-alert__icon,
.auth-alert.auth-alert--warning .auth-alert__icon {
	background: #d97706;
}
.auth-alert.warning .auth-alert__icon::before,
.auth-alert.auth-alert--warning .auth-alert__icon::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3Cpath d='M10.3 4.8L2.8 18a2 2 0 001.7 3h15a2 2 0 001.7-3L13.7 4.8a2 2 0 00-3.4 0z'/%3E%3C/svg%3E");
}
[data-theme="dark"] .auth-alert.warning, body.dark-theme .auth-alert.warning,
[data-theme="dark"] .auth-alert.auth-alert--warning, body.dark-theme .auth-alert.auth-alert--warning {
	background: rgba(245,158,11,0.16);
	border-color: rgba(253,230,138,0.28);
	color: #fde68a;
}

.auth-gate {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 18px;
	padding: 14px 14px 14px 12px;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(225, 6, 0, 0.07), rgba(15, 23, 42, 0.03));
	border: 1px solid rgba(225, 6, 0, 0.14);
	box-shadow: 0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

[data-theme="dark"] .auth-gate,
body.dark-theme .auth-gate {
	background: linear-gradient(135deg, rgba(225, 6, 0, 0.16), rgba(255, 255, 255, 0.03));
	border-color: rgba(248, 113, 113, 0.28);
	box-shadow: none;
}

.auth-gate__icon {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 11px;
	background: #e10600;
	box-shadow: 0 6px 16px rgba(225, 6, 0, 0.28);
	position: relative;
}

.auth-gate__icon::before {
	content: "";
	position: absolute;
	inset: 0;
	background: center / 18px 18px no-repeat;
	filter: brightness(0) invert(1);
}

.auth-gate--premium .auth-gate__icon::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l2.4 4.9 5.4.8-3.9 3.8.9 5.4L12 15.9 7.2 18l.9-5.4L4.2 8.7l5.4-.8L12 3z'/%3E%3C/svg%3E");
}

.auth-gate--multistream .auth-gate__icon {
	background: #0f172a;
	box-shadow: 0 6px 16px rgba(15, 23, 42, 0.22);
}

.auth-gate--multistream .auth-gate__icon::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='9' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='9' height='7' rx='1.5'/%3E%3Crect x='2' y='13' width='9' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='9' height='7' rx='1.5'/%3E%3C/svg%3E");
}

.auth-gate--channels .auth-gate__icon {
	background: #1d4ed8;
	box-shadow: 0 6px 16px rgba(29, 78, 216, 0.28);
}

.auth-gate--channels .auth-gate__icon::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E");
}

.auth-gate--verify {
	background: linear-gradient(135deg, rgba(29, 78, 216, 0.08), rgba(15, 23, 42, 0.03));
	border-color: rgba(29, 78, 216, 0.16);
}

[data-theme="dark"] .auth-gate--verify,
body.dark-theme .auth-gate--verify {
	background: linear-gradient(135deg, rgba(96, 165, 250, 0.14), rgba(255, 255, 255, 0.03));
	border-color: rgba(96, 165, 250, 0.28);
}

.auth-gate--verify .auth-gate__icon {
	background: #1d4ed8;
	box-shadow: 0 6px 16px rgba(29, 78, 216, 0.28);
}

.auth-gate--verify .auth-gate__icon::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v12H4z'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}

.auth-tip {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 20px;
	padding: 16px 16px 15px;
	border-radius: 18px;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
}

[data-theme="dark"] .auth-tip,
body.dark-theme .auth-tip {
	background: rgba(30, 41, 59, 0.72);
	border-color: rgba(71, 85, 105, 0.9);
}

.auth-tip__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.auth-tip__icon {
	flex: 0 0 auto;
	width: 42px;
	height: 42px;
	border-radius: 13px;
	background: #0f172a;
	position: relative;
}

.auth-tip__icon::before {
	content: "";
	position: absolute;
	inset: 0;
	background: center / 20px 20px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v12H4z'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}

[data-theme="dark"] .auth-tip__icon,
body.dark-theme .auth-tip__icon {
	background: #f8fafc;
}

[data-theme="dark"] .auth-tip__icon::before,
body.dark-theme .auth-tip__icon::before {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16v12H4z'/%3E%3Cpath d='M4 7l8 6 8-6'/%3E%3C/svg%3E");
}

.auth-tip__copy {
	min-width: 0;
	padding-top: 1px;
}

.auth-tip__title {
	display: block;
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ac-heading);
	line-height: 1.25;
}

.auth-tip__lead {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--ac-subtitle);
	opacity: 0.92;
}

.auth-tip__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.auth-tip__list li {
	position: relative;
	margin: 0;
	padding: 10px 12px 10px 36px;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.82);
	border: 1px solid rgba(226, 232, 240, 0.95);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ac-heading);
}

.auth-tip__list li::before {
	content: "";
	position: absolute;
	left: 12px;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-top: -8px;
	border-radius: 50%;
	background: #e10600 center / 10px 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
}

.auth-tip__list li span {
	color: #b91c1c;
	font-weight: 800;
}

[data-theme="dark"] .auth-tip__list li,
body.dark-theme .auth-tip__list li {
	background: rgba(15, 23, 42, 0.72);
	border-color: rgba(71, 85, 105, 0.85);
}

[data-theme="dark"] .auth-tip__list li span,
body.dark-theme .auth-tip__list li span {
	color: #fca5a5;
}

[data-theme="dark"] .auth-gate--multistream .auth-gate__icon,
body.dark-theme .auth-gate--multistream .auth-gate__icon {
	background: #f8fafc;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .auth-gate--multistream .auth-gate__icon::before,
body.dark-theme .auth-gate--multistream .auth-gate__icon::before {
	filter: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f172a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='9' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='9' height='7' rx='1.5'/%3E%3Crect x='2' y='13' width='9' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='9' height='7' rx='1.5'/%3E%3C/svg%3E");
}

.auth-gate__body {
	min-width: 0;
	flex: 1 1 auto;
}

.auth-gate__title {
	display: block;
	margin: 0 0 3px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--ac-heading);
	line-height: 1.25;
}

.auth-gate__text {
	margin: 0;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.45;
	color: var(--ac-subtitle);
	opacity: 0.92;
}

.auth-social {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 0 0 18px;
}

.auth-social__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 12px 16px;
	border-radius: 14px;
	border: 1px solid #e2e8f0;
	background: #fff;
	color: #0f172a;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	box-sizing: border-box;
	transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.auth-social__btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
	border-color: #cbd5e1;
	color: #0f172a;
}

.auth-social__btn--discord {
	background: #5865f2;
	border-color: #5865f2;
	color: #fff;
}

.auth-social__btn--discord:hover {
	background: #4752c4;
	border-color: #4752c4;
	color: #fff;
	box-shadow: 0 8px 18px rgba(88, 101, 242, 0.28);
}

.auth-social__ico {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.auth-or {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 4px 0 2px;
	color: #94a3b8;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.auth-or::before,
.auth-or::after {
	content: '';
	flex: 1;
	height: 1px;
	background: #e2e8f0;
}

[data-theme="dark"] .auth-social__btn,
body.dark-theme .auth-social__btn {
	background: rgba(15, 23, 42, 0.9);
	border-color: #334155;
	color: #f8fafc;
}

[data-theme="dark"] .auth-social__btn:hover,
body.dark-theme .auth-social__btn:hover {
	background: rgba(30, 41, 59, 0.95);
	color: #fff;
}

[data-theme="dark"] .auth-social__btn--discord,
body.dark-theme .auth-social__btn--discord {
	background: #5865f2;
	border-color: #5865f2;
	color: #fff;
}

[data-theme="dark"] .auth-or::before,
[data-theme="dark"] .auth-or::after,
body.dark-theme .auth-or::before,
body.dark-theme .auth-or::after {
	background: #334155;
}

.auth-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 0 8px;
}

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

.auth-field__label {
	position: static;
	transform: none;
	left: auto;
	top: auto;
	pointer-events: auto;
	color: var(--ac-label);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.01em;
}

.auth-field__box {
	position: relative;
}

.auth-field__input {
	width: 100%;
	box-sizing: border-box;
	border: 0;
	outline: none;
	border-radius: 14px;
	background: var(--ac-input-bg);
	box-shadow: inset 0 0 0 1px var(--ac-input-border);
	color: var(--ac-input-text);
	font: inherit;
	font-size: 15px;
	font-weight: 500;
	padding: 15px 16px;
	transition: box-shadow 0.16s ease, background 0.16s ease;
}

.auth-field--action .auth-field__input {
	padding-right: 48px;
}

.auth-field__input::placeholder {
	color: var(--ac-placeholder);
	opacity: 0.9;
}

.auth-field__input:focus {
	background: #fff;
	box-shadow:
		inset 0 0 0 1.5px #dc2626,
		0 0 0 4px rgba(220, 38, 38, 0.12);
}

[data-theme="dark"] .auth-field__input:focus,
body.dark-theme .auth-field__input:focus {
	background: #0f172a;
}

.auth-field__action {
	position: absolute;
	right: 8px;
	top: 50%;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 10px;
	background: transparent;
	color: var(--ac-toggle);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.auth-field__action:hover {
	background: rgba(148, 163, 184, 0.14);
	color: var(--ac-toggle-hover);
}

.auth-field--static {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.auth-field__hint {
	font-size: 13px;
	font-weight: 700;
	color: var(--ac-label);
	letter-spacing: 0.01em;
}

.auth-hint {
	display: block;
	margin-top: 2px;
	font-size: 12px;
	color: var(--ac-placeholder);
	font-weight: 500;
}

.auth-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 2px 0 4px;
}

.auth-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
	color: var(--ac-label);
	font-size: 13px;
	font-weight: 500;
}

.auth-check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.auth-check__box {
	width: 18px;
	height: 18px;
	border-radius: 6px;
	box-shadow: inset 0 0 0 1.5px #94a3b8;
	background: transparent;
	position: relative;
	flex-shrink: 0;
}

.auth-check input:checked + .auth-check__box {
	background: #dc2626;
	box-shadow: none;
}

.auth-check input:checked + .auth-check__box::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 2px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.auth-meta__link,
.auth-text-btn {
	border: 0;
	background: none;
	padding: 0;
	color: #dc2626;
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

.auth-meta__link:hover,
.auth-text-btn:hover {
	opacity: 0.8;
}

.auth-captcha {
	display: flex;
	justify-content: center;
	margin: 4px 0;
}

.auth-submit {
	width: 100%;
	min-height: 50px;
	margin-top: 4px;
	border: 0;
	border-radius: 14px;
	background: linear-gradient(165deg, #ef4444 0%, #dc2626 48%, #b91c1c 100%);
	color: #fff;
	font: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
	transition: transform 0.15s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-submit:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(220, 38, 38, 0.34);
	filter: brightness(1.04);
}

.auth-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
	transform: none;
}

.auth-otp {
	position: relative;
	width: 100%;
}

.auth-otp__value {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
	opacity: 0 !important;
}

.auth-otp__cells {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 8px;
	width: 100%;
}

.auth-otp__cell {
	width: 100%;
	aspect-ratio: 1 / 1;
	max-height: 52px;
	box-sizing: border-box;
	border: 0;
	border-radius: 14px;
	background: var(--ac-input-bg);
	box-shadow: inset 0 0 0 1px var(--ac-input-border);
	color: var(--ac-input-text);
	font-size: 20px;
	font-weight: 700;
	text-align: center;
	font-family: inherit;
	outline: none;
	caret-color: #dc2626;
}

.auth-otp__cell:focus {
	background: #fff;
	box-shadow:
		inset 0 0 0 1.5px #dc2626,
		0 0 0 4px rgba(220, 38, 38, 0.12);
}

[data-theme="dark"] .auth-otp__cell:focus,
body.dark-theme .auth-otp__cell:focus {
	background: #0f172a;
}

.auth-otp.is-invalid .auth-otp__cell {
	box-shadow: inset 0 0 0 1.5px rgba(220, 38, 38, 0.75);
}

.auth-otp.is-complete .auth-otp__cell {
	box-shadow: inset 0 0 0 1.5px rgba(16, 185, 129, 0.65);
}

.auth-footer {
	text-align: center;
	padding-top: 16px;
	margin-top: 8px;
	border-top: 1px solid var(--ac-footer-border);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.auth-footer p {
	margin: 0;
	color: var(--ac-footer-text);
	font-size: 13px;
	font-weight: 500;
}

.auth-footer a {
	color: #dc2626;
	text-decoration: none;
	font-weight: 700;
}

.auth-footer a:hover { opacity: 0.8; }

.auth-inline-form {
	display: inline;
	margin: 0;
	color: var(--ac-footer-text);
	font-size: 13px;
	font-weight: 500;
}

.auth-resend-wait {
	font-size: 13px;
	color: var(--ac-subtitle);
	font-weight: 500;
}

.auth-qr {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	min-height: 44px;
	border-radius: 14px;
	border: 1px dashed var(--ac-input-border);
	color: var(--ac-footer-text) !important;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	box-sizing: border-box;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.auth-qr:hover {
	border-color: #dc2626;
	color: #dc2626 !important;
	background: rgba(220, 38, 38, 0.04);
}

.pw-strength-bar-wrap {
	height: 4px;
	background: var(--ac-strength-bg);
	border-radius: 999px;
	overflow: hidden;
	margin-top: -2px;
}

.pw-strength-bar {
	height: 100%;
	width: 0%;
	border-radius: 999px;
	transition: all .3s ease;
}

.pw-strength-label {
	font-size: 12px;
	font-weight: 600;
	min-height: 16px;
	margin-top: -4px;
}

.pw-rules {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: -2px 0 2px;
}

.pw-rule {
	font-size: 11px;
	color: var(--ac-pw-rule);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 600;
	padding: 5px 9px;
	border-radius: 999px;
	background: rgba(148, 163, 184, 0.12);
}

.pw-rule::before {
	content: '';
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.7;
}

.pw-rule.pw-pass {
	color: #059669;
	background: rgba(16, 185, 129, 0.12);
}

.pw-match-label {
	font-size: 12px;
	font-weight: 600;
	min-height: 16px;
	margin-top: -4px;
}

#nl-fab { display: none !important; }

body.se-auth-page .se-back-to-top,
body.se-auth-page #se-back-to-top {
	display: none !important;
}

body.se-auth-page .se-chrome,
body.se-auth-page .se-chrome-drawer,
body.se-auth-page .discount-topbar {
	display: none !important;
}

body.se-auth-page main.main-content {
	padding: 0;
	margin: 0;
	max-width: none;
	width: 100%;
}

body.se-auth-page .auth-page {
	min-height: 100vh;
	min-height: 100dvh;
	padding: 24px 20px 28px;
}

@media (max-width: 640px) {
	body.se-auth-page .auth-page,
	.auth-page {
		padding: calc(10px + env(safe-area-inset-top, 0px)) 8px calc(16px + env(safe-area-inset-bottom, 0px));
		align-items: flex-start;
		background: transparent;
	}
	[data-theme="dark"] .auth-page,
	body.dark-theme .auth-page {
		background: transparent;
	}
	.auth-page::before { display: none; }
	.auth-container { max-width: 100%; width: 100%; }
	.auth-brand {
		position: static;
		margin: 0 0 14px;
		padding: 0 0 12px;
		background: transparent;
		border-bottom: 1px solid var(--ac-footer-border);
		gap: 0;
	}
	.auth-brand__logo { height: 28px; }
	.auth-card {
		border-radius: 18px;
		padding: 20px 14px 18px;
		min-height: 0;
		overflow: hidden;
	}
	.auth-page:has(> .auth-background) .auth-card {
		background: rgba(255, 255, 255, 0.96);
		border-color: rgba(226, 232, 240, 0.95);
	}
	[data-theme="dark"] .auth-page:has(> .auth-background) .auth-card,
	body.dark-theme .auth-page:has(> .auth-background) .auth-card {
		background: rgba(15, 23, 42, 0.96);
		border-color: rgba(51, 65, 85, 0.95);
	}
	.auth-header {
		margin-bottom: 14px;
		text-align: center;
	}
	.auth-gate {
		align-items: center;
		margin-bottom: 14px;
		padding: 12px;
		gap: 10px;
		border-radius: 14px;
	}
	.auth-gate__icon { width: 34px; height: 34px; border-radius: 10px; }
	.auth-gate__icon::before { background-size: 16px 16px; }
	.auth-gate__title { font-size: 13px; }
	.auth-gate__text { font-size: 13px; }
	.auth-tip { margin-bottom: 16px; padding: 14px; gap: 10px; border-radius: 16px; }
	.auth-tip__icon { width: 38px; height: 38px; border-radius: 12px; }
	.auth-tip__icon::before { background-size: 18px 18px; }
	.auth-tip__title { font-size: 14px; }
	.auth-tip__lead { font-size: 13px; }
	.auth-tip__list li { font-size: 13px; padding: 9px 11px 9px 34px; }
	.auth-sent { align-items: center; padding: 13px; gap: 11px; border-radius: 16px; }
	.auth-sent__icon { width: 36px; height: 36px; border-radius: 11px; }
	.auth-sent__title { font-size: 14px; }
	.auth-sent__text { font-size: 13px; }
	.auth-from { font-size: 12px; padding: 7px 10px 7px 8px; }
	.auth-from__mark { width: 20px; height: 20px; border-radius: 6px; }
	.auth-alert { font-size: 13px; padding: 12px; gap: 10px; border-radius: 14px; }
	.auth-alert__icon { width: 26px; height: 26px; border-radius: 8px; }
	.auth-header--verify p { max-width: none; }
	.auth-header h1 { font-size: 24px; }
	.auth-header p { font-size: 14px; }
	.auth-field__input { font-size: 16px; padding: 14px 15px; }
	.auth-field--action .auth-field__input { padding-right: 48px; }
	.auth-submit { min-height: 50px; }
	.auth-footer { padding-top: 14px; }
	.auth-otp__cells { gap: 6px; }
	.auth-otp__cell { font-size: 18px; max-height: 48px; border-radius: 12px; }
	.auth-social__btn { min-height: 46px; }
}

@media (min-width: 641px) {
	.auth-container {
		max-width: 540px;
		max-height: calc(100dvh - 28px);
		overflow: auto;
		overscroll-behavior: contain;
		scrollbar-width: thin;
	}
	.auth-card { padding: 36px 40px 30px; }
	.auth-brand { margin-bottom: 18px; }
	.auth-brand__logo { height: 34px; }
	.auth-header { margin-bottom: 20px; }
	.auth-header h1 { font-size: 30px; }
	.auth-header p { font-size: 15px; }
	.auth-field__input { font-size: 15px; padding: 15px 16px; }
	.auth-submit { font-size: 15px; min-height: 52px; }
	.auth-otp__cell { font-size: 20px; max-height: 52px; }
}

@media (min-width: 641px) and (max-height: 820px) {
	.auth-page { padding: 12px 16px 16px; align-items: center; }
	.auth-brand { margin-bottom: 10px; gap: 0; padding-bottom: 10px; }
	.auth-card { padding: 24px 28px 22px; border-radius: 20px; }
	.auth-header { margin-bottom: 14px; }
	.auth-header h1 { font-size: 24px; }
	.auth-alert { margin-bottom: 10px; padding: 9px 12px; font-size: 12px; }
	.auth-gate { margin-bottom: 14px; padding: 12px; gap: 10px; border-radius: 14px; align-items: center; }
	.auth-gate__icon { width: 32px; height: 32px; border-radius: 10px; }
	.auth-gate__icon::before { background-size: 16px 16px; }
	.auth-gate__title { font-size: 13px; }
	.auth-gate__text { font-size: 13px; }
	.auth-form { gap: 10px; }
	.auth-footer { padding-top: 10px; }
	.auth-social { margin-bottom: 12px; gap: 8px; }
}

@media (min-width: 1280px) {
	.auth-container { max-width: 560px; }
}
