/* Auth / Onboarding pages */
.auth-shell {
	--auth-max-width: 1140px;
	--auth-text: #e6edf7;
	--auth-muted: #9db0c6;
	--auth-accent-1: #60a5fa;
	--auth-accent-2: #22d3ee;
	--auth-accent-3: #6366f1;
	--auth-surface-bg: linear-gradient(165deg, rgba(9,18,36,.95), rgba(12,24,49,.96) 55%, rgba(16,34,72,.94));
	--auth-surface-border: rgba(82,115,163,.32);
	--auth-input-bg: rgba(8,16,34,.82);
	--auth-input-border: rgba(98,126,167,.42);
	--auth-tab-bg: rgba(8,16,34,.58);
	--auth-tab-active-bg: rgba(19,38,75,.92);
	--auth-focus: rgba(56,189,248,.45);
	--auth-link: #7dd3fc;
	min-height: calc(100vh - 156px);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1rem, 3.5vh, 2.2rem) clamp(.9rem, 3.2vw, 2rem) calc(1rem + env(safe-area-inset-bottom));
	position: relative;
	isolation: isolate;
	overflow-x: clip;
}
.page-shell--auth,
.content--auth {
	overflow-x: clip;
}
.auth-shell ::selection {
	background: rgba(56,189,248,.28);
	color: #f8fbff;
}
@keyframes authSurfaceIn {
	from {
		opacity: 0;
		transform: translateY(14px) scale(.995);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
.auth-shell--split {
	align-items: stretch;
}
.auth-shell::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	background:
		radial-gradient(55% 40% at 12% 15%, rgba(14,165,233,.18), transparent 70%),
		radial-gradient(45% 35% at 88% 0%, rgba(29,78,216,.24), transparent 68%),
		linear-gradient(170deg, rgba(4,10,23,.96), rgba(5,13,29,.98));
}
.auth-shell::after {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: -1;
	background-image:
		linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148,163,184,.04) 1px, transparent 1px);
	background-size: 28px 28px, 28px 28px;
	mask-image: radial-gradient(circle at 50% 32%, #000 38%, transparent 86%);
}
.auth-layout,
.auth-split {
	width: min(var(--auth-max-width), 100%);
	display: grid;
	gap: clamp(1rem, 2.2vw, 1.6rem);
	align-items: stretch;
}
.auth-layout--single {
	grid-template-columns: minmax(0, 560px);
	justify-content: center;
}
.auth-layout--split,
.auth-split {
	grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
}

.auth-surface,
.auth-card,
.auth-panel {
	--spotlight-x: 50%;
	--spotlight-y: 14%;
	--spotlight-opacity: .24;
	background: var(--auth-surface-bg);
	border: 1px solid var(--auth-surface-border);
	border-radius: clamp(18px, 2.4vw, 24px);
	box-shadow: 0 28px 66px rgba(0,0,0,.4), 0 1px 0 rgba(148,163,184,.12) inset;
	padding: clamp(1rem, 2.2vw, 1.6rem);
	backdrop-filter: saturate(1.05);
	color: var(--auth-text);
	position: relative;
	overflow: hidden;
	animation: authSurfaceIn .45s cubic-bezier(.2,.8,.2,1);
}
.auth-surface::before,
.auth-card::before,
.auth-panel::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(42% 34% at var(--spotlight-x) var(--spotlight-y), rgba(125,211,252,var(--spotlight-opacity)), transparent 78%),
		radial-gradient(50% 45% at 100% 0%, rgba(96,165,250,.12), transparent 78%),
		radial-gradient(40% 45% at 0% 100%, rgba(34,211,238,.08), transparent 78%);
}
.auth-surface::after,
.auth-card::after,
.auth-panel::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(125,211,252,.6), transparent);
	pointer-events: none;
}
[data-theme=dark] .auth-surface,
[data-theme=dark] .auth-card,
[data-theme=dark] .auth-panel {
	box-shadow: 0 28px 64px rgba(0,0,0,.52), 0 1px 0 rgba(148,163,184,.08) inset;
	border-color: var(--auth-surface-border);
}
.auth-surface.is-interacting,
.auth-card.is-interacting,
.auth-panel.is-interacting {
	--spotlight-opacity: .3;
}

.auth-card h2,
.auth-panel h2,
.auth-surface h2 {
	margin: 0 0 .95rem;
	font-size: clamp(1.22rem, 2vw, 1.46rem);
	letter-spacing: .2px;
	color: #eff6ff;
	position: relative;
	z-index: 1;
	font-family: var(--font-display);
	font-weight: 700;
}
.auth-brand-row {
	position: relative;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: .52rem;
	margin-bottom: .88rem;
}
.auth-brand-mark {
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 11px;
	font-family: var(--font-display);
	font-weight: 700;
	font-size: .84rem;
	letter-spacing: .05em;
	color: #f0f9ff;
	background: linear-gradient(140deg, #2563eb, #22d3ee);
	box-shadow: 0 10px 24px rgba(37,99,235,.35);
}
.auth-brand-text {
	font-family: var(--font-display);
	font-weight: 600;
	font-size: .9rem;
	letter-spacing: .03em;
	color: #dbeafe;
}
.auth-subtitle {
	margin: -.2rem 0 .9rem;
	font-size: .9rem;
	line-height: 1.55;
	color: color-mix(in srgb, var(--auth-muted) 84%, #fff 16%);
	position: relative;
	z-index: 1;
}
.auth-card form,
.auth-panel form,
.auth-surface form {
	margin: 0;
	position: relative;
	z-index: 1;
}
.auth-card form div,
.auth-panel form div,
.auth-surface form div {
	margin-bottom: 0;
}
.auth-card .form-row,
.auth-panel .form-row,
.auth-surface .form-row {
	display: flex;
	flex-direction: column;
	gap: .42rem;
	margin-bottom: .72rem;
	padding: .42rem .22rem .24rem;
	border: 1px solid transparent;
	border-radius: 13px;
	transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease;
	position: relative;
}
.auth-card .form-row:last-of-type,
.auth-panel .form-row:last-of-type,
.auth-surface .form-row:last-of-type {
	margin-bottom: .5rem;
}
.auth-card .label,
.auth-panel .label,
.auth-surface .label {
	display: block;
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: .02em;
	color: color-mix(in srgb, var(--auth-muted) 94%, #fff 6%);
	transition: color .2s ease, opacity .2s ease;
	position: static;
	pointer-events: none;
	transform: none;
	opacity: .96;
	z-index: 2;
	background: transparent;
	line-height: 1.2;
}
.auth-control .form-row.is-focused {
	background: rgba(13,28,56,.5);
	border-color: rgba(125,211,252,.3);
	box-shadow: inset 0 1px 0 rgba(191,219,254,.14);
}
.auth-control .form-row.is-valid {
	background: rgba(9,45,34,.36);
	border-color: rgba(52,211,153,.46);
	box-shadow: inset 0 1px 0 rgba(167,243,208,.14);
}
.auth-control .form-row.is-invalid {
	background: rgba(62,18,26,.34);
	border-color: rgba(248,113,113,.56);
	box-shadow: inset 0 1px 0 rgba(254,202,202,.12);
}
.auth-control .form-row.is-valid::after,
.auth-control .form-row.is-invalid::after {
	position: absolute;
	top: .48rem;
	right: .54rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 18px;
	padding: 0 .44rem;
	border-radius: 999px;
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .03em;
}
.auth-control .form-row.is-valid::after {
	content: '已確認';
	background: rgba(6,78,59,.42);
	color: #a7f3d0;
	border: 1px solid rgba(52,211,153,.4);
}
.auth-control .form-row.is-invalid::after {
	content: '需修正';
	background: rgba(69,10,10,.48);
	color: #fecaca;
	border: 1px solid rgba(248,113,113,.48);
}
.auth-control .form-row.is-focused .label {
	color: #dbeafe;
}
.auth-control .form-row.is-valid .label {
	color: #a7f3d0;
}
.auth-control .form-row.is-invalid .label {
	color: #fecaca;
}
.auth-control .form-row.is-focused .label,
.auth-control .form-row.has-value .label {
	transform: none;
	opacity: 1;
}

.auth-control input[type=text],
.auth-control input[type=password],
.auth-control input[type=email],
.auth-control input[type=number],
.auth-control button,
.auth-control .btn,
.auth-control input[type=submit],
.auth-card input[type=text],
.auth-card input[type=password],
.auth-card input[type=email],
.auth-card input[type=number],
.auth-panel input[type=text],
.auth-panel input[type=password],
.auth-panel input[type=email],
.auth-panel input[type=number] {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
}
.auth-card input[type=text],
.auth-card input[type=password],
.auth-card input[type=email],
.auth-card input[type=number],
.auth-panel input[type=text],
.auth-panel input[type=password],
.auth-panel input[type=email],
.auth-panel input[type=number],
.auth-surface input[type=text],
.auth-surface input[type=password],
.auth-surface input[type=email],
.auth-surface input[type=number] {
	border-radius: 12px;
	padding: .78rem .78rem;
	font-size: .96rem;
	background: var(--auth-input-bg);
	border-color: var(--auth-input-border);
	color: #eff6ff;
}
.auth-password-wrap {
	position: relative;
	width: 100%;
}
.auth-password-wrap > input[type=password],
.auth-password-wrap > input[type=text] {
	padding-right: 5.5rem !important;
}
.auth-password-toggle {
	position: absolute;
	right: .48rem;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 34px;
	height: 34px;
	padding: 0 .78rem;
	border-radius: 999px;
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1;
	background: rgba(15,23,42,.92);
	border: 1px solid rgba(125,211,252,.38);
	color: #dbeafe;
	box-shadow: none;
}
.auth-password-toggle:hover {
	background: rgba(30,41,59,.96);
	border-color: rgba(125,211,252,.58);
}
.auth-password-toggle:focus-visible {
	outline: none;
	box-shadow: 0 0 0 2px rgba(125,211,252,.26);
}
.auth-caps-hint {
	margin-top: .35rem;
	font-size: .78rem;
	line-height: 1.35;
	color: #fbbf24;
	display: inline-flex;
	align-items: center;
	gap: .34rem;
}
.auth-caps-hint::before {
	content: '!';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 14px;
	height: 14px;
	border-radius: 999px;
	font-size: .68rem;
	font-weight: 800;
	background: rgba(251,191,36,.15);
	border: 1px solid rgba(251,191,36,.4);
}
.auth-row-hint {
	margin-top: .12rem;
	font-size: .78rem;
	line-height: 1.4;
	color: color-mix(in srgb, var(--auth-muted) 92%, #fff 8%);
}
.auth-password-meter,
.auth-password-match {
	margin-top: .34rem;
}
.auth-password-meter.hidden,
.auth-password-match.hidden {
	display: none;
}
.auth-password-meter-track {
	height: 7px;
	border-radius: 999px;
	background: rgba(51,65,85,.55);
	border: 1px solid rgba(100,116,139,.36);
	overflow: hidden;
}
.auth-password-meter-fill {
	height: 100%;
	width: 0%;
	border-radius: inherit;
	background: linear-gradient(90deg, rgba(248,113,113,.92), rgba(245,158,11,.92));
	transition: width .24s ease, background-color .24s ease, filter .24s ease;
}
.auth-password-meter.is-medium .auth-password-meter-fill {
	background: linear-gradient(90deg, rgba(245,158,11,.95), rgba(56,189,248,.92));
}
.auth-password-meter.is-strong .auth-password-meter-fill {
	background: linear-gradient(90deg, rgba(45,212,191,.94), rgba(34,197,94,.92));
}
.auth-password-meter-label,
.auth-password-match-label {
	margin-top: .28rem;
	font-size: .76rem;
	line-height: 1.35;
	color: color-mix(in srgb, var(--auth-muted) 90%, #fff 10%);
}
.auth-password-meter.is-weak .auth-password-meter-label {
	color: #fca5a5;
}
.auth-password-meter.is-medium .auth-password-meter-label {
	color: #fcd34d;
}
.auth-password-meter.is-strong .auth-password-meter-label {
	color: #86efac;
}
.auth-password-match.is-match .auth-password-match-label {
	color: #86efac;
}
.auth-password-match.is-mismatch .auth-password-match-label {
	color: #fca5a5;
}
[data-theme=dark] .auth-card input[type=text],
[data-theme=dark] .auth-card input[type=password],
[data-theme=dark] .auth-card input[type=email],
[data-theme=dark] .auth-card input[type=number],
[data-theme=dark] .auth-panel input[type=text],
[data-theme=dark] .auth-panel input[type=password],
[data-theme=dark] .auth-panel input[type=email],
[data-theme=dark] .auth-panel input[type=number],
[data-theme=dark] .auth-surface input[type=text],
[data-theme=dark] .auth-surface input[type=password],
[data-theme=dark] .auth-surface input[type=email],
[data-theme=dark] .auth-surface input[type=number] {
	background: var(--auth-input-bg);
}
.auth-card input:focus,
.auth-panel input:focus,
.auth-surface input:focus {
	border-color: color-mix(in srgb, var(--color-primary) 72%, #60a5fa 28%);
	box-shadow: 0 0 0 3px var(--auth-focus), 0 12px 24px rgba(14,116,216,.16);
}
.auth-card input::placeholder,
.auth-panel input::placeholder,
.auth-surface input::placeholder {
	color: color-mix(in srgb, var(--auth-muted) 82%, transparent);
}

.auth-card .actions,
.auth-panel .actions,
.auth-surface .actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: .6rem;
	margin-top: .35rem;
}
.auth-card .actions.start,
.auth-panel .actions.start,
.auth-surface .actions.start {
	justify-content: flex-start;
}
.auth-card .actions button,
.auth-panel .actions button,
.auth-surface .actions button {
	min-height: 44px;
	padding: .68rem 1.15rem;
}
.auth-card .link-row,
.auth-panel .link-row,
.auth-surface .link-row {
	margin-top: .95rem;
	font-size: .9rem;
	color: var(--auth-muted);
	display: flex;
	gap: .5rem;
	flex-wrap: wrap;
	align-items: center;
	position: relative;
	z-index: 1;
}
.auth-card .link-row a,
.auth-panel .link-row a,
.auth-surface .link-row a {
	font-weight: 600;
	color: var(--auth-link);
	position: relative;
	text-decoration: none;
}
.auth-card .link-row a:hover,
.auth-panel .link-row a:hover,
.auth-surface .link-row a:hover {
	text-decoration: none;
}
.auth-card .link-row a::after,
.auth-panel .link-row a::after,
.auth-surface .link-row a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: -2px;
	height: 1px;
	background: currentColor;
	opacity: .34;
	transform-origin: left center;
	transform: scaleX(.35);
	transition: transform .2s ease, opacity .2s ease;
}
.auth-card .link-row a:hover::after,
.auth-panel .link-row a:hover::after,
.auth-surface .link-row a:hover::after {
	transform: scaleX(1);
	opacity: .85;
}
.divider-dot { color: color-mix(in srgb, var(--color-text-dim) 65%, transparent); }

.auth-alert-stack {
	display: grid;
	gap: .55rem;
	margin-bottom: .85rem;
	position: relative;
	z-index: 1;
}
.auth-alert-stack:empty {
	display: none;
}
.auth-help-next {
	font-size: .78rem;
	line-height: 1.45;
	padding: .38rem .56rem;
	border-radius: 10px;
	border: 1px dashed rgba(148,163,184,.45);
	background: rgba(15,28,52,.62);
	color: color-mix(in srgb, var(--auth-muted) 82%, #fff 18%);
}
.auth-card .alert,
.auth-panel .alert,
.auth-surface .alert {
	border-radius: 14px;
	font-size: .9rem;
	color: #e5ecf9;
	background: rgba(14,26,51,.86);
	border-color: rgba(75,98,136,.48);
	box-shadow: none;
}
.auth-card .alert.success,
.auth-panel .alert.success,
.auth-surface .alert.success {
	background: rgba(21,79,48,.35);
	border-color: rgba(45,212,130,.35);
	color: #bbf7d0;
}
.auth-card .alert.error,
.auth-panel .alert.error,
.auth-surface .alert.error {
	background: rgba(92,26,26,.36);
	border-color: rgba(248,113,113,.38);
	color: #fecaca;
}
.auth-card .note,
.auth-panel .note,
.auth-surface .note {
	font-size: .84rem;
	line-height: 1.45;
	color: var(--auth-muted);
}

.auth-stepper {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: .42rem;
	margin: .2rem 0 .92rem;
}
.auth-stepper::before {
	content: '';
	position: absolute;
	left: 4%;
	right: 4%;
	top: 50%;
	height: 1px;
	background: linear-gradient(90deg, rgba(125,211,252,.08), rgba(125,211,252,.42), rgba(125,211,252,.08));
	transform: translateY(-50%);
	z-index: 0;
	pointer-events: none;
}
.auth-step {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 32px;
	padding: .28rem .45rem;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 600;
	letter-spacing: .04em;
	color: color-mix(in srgb, var(--auth-muted) 90%, #fff 10%);
	border: 1px solid rgba(125,211,252,.2);
	background: rgba(17,31,58,.55);
	text-align: center;
	position: relative;
	z-index: 1;
}
.auth-step.is-active {
	color: #ecfeff;
	border-color: rgba(125,211,252,.52);
	background: linear-gradient(135deg, rgba(30,58,138,.72), rgba(14,116,144,.68));
	box-shadow: inset 0 1px 0 rgba(191,219,254,.24);
}

.auth-trust-card {
	position: relative;
	z-index: 1;
	display: grid;
	gap: .42rem;
	margin: .2rem 0 .88rem;
	padding: .62rem .66rem;
	border-radius: 12px;
	border: 1px solid rgba(125,211,252,.26);
	background: linear-gradient(165deg, rgba(12,24,48,.78), rgba(11,22,44,.62));
}
.auth-trust-item {
	display: flex;
	align-items: flex-start;
	gap: .46rem;
}
.auth-trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 20px;
	padding: 0 .36rem;
	border-radius: 999px;
	border: 1px solid rgba(125,211,252,.35);
	background: rgba(15,23,42,.62);
	color: #dbeafe;
	font-size: .66rem;
	font-weight: 700;
	letter-spacing: .02em;
	line-height: 1;
}
.auth-trust-text {
	margin-top: .03rem;
	font-size: .78rem;
	line-height: 1.42;
	color: color-mix(in srgb, var(--auth-muted) 80%, #fff 20%);
}

.auth-otp-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: .55rem;
	align-items: center;
}
.auth-otp-row [data-email-otp-code] {
	width: 100%;
}
.auth-otp-row [data-email-otp-send] {
	white-space: nowrap;
	padding-inline: 1rem;
}
.auth-otp-msg {
	margin-top: .42rem;
	padding: .48rem .55rem;
	border-radius: 10px;
	background: rgba(17,31,58,.62);
	border: 1px solid rgba(75,98,136,.4);
}
.auth-otp-msg.warn {
	background: rgba(84,31,31,.5);
	border-color: rgba(248,113,113,.42);
	color: #fecaca;
}
.auth-otp-msg.success {
	background: rgba(12,68,44,.45);
	border-color: rgba(74,222,128,.4);
	color: #bbf7d0;
}
.auth-shell--brand-animated [data-email-otp-form].is-code-ready [data-email-otp-code] {
	border-color: rgba(45,212,191,.62);
	box-shadow: 0 0 0 2px rgba(45,212,191,.18);
}
.auth-shell--brand-animated [data-email-otp-form].is-sending [data-email-otp-send] {
	position: relative;
	padding-right: 1.55rem;
}
.auth-shell--brand-animated [data-email-otp-form].is-sending [data-email-otp-send]::after {
	content: '';
	position: absolute;
	right: .65rem;
	top: 50%;
	width: 11px;
	height: 11px;
	margin-top: -5.5px;
	border-radius: 50%;
	border: 2px solid rgba(219,234,254,.42);
	border-top-color: rgba(219,234,254,.95);
	animation: authSpinner .65s linear infinite;
}

.auth-tabs {
	--tab-indicator-left: 0px;
	--tab-indicator-width: 0px;
	display: flex;
	gap: .35rem;
	background: var(--auth-tab-bg);
	padding: .35rem;
	border-radius: 999px;
	margin-bottom: .95rem;
	border: 1px solid rgba(75,98,136,.34);
	backdrop-filter: blur(8px);
	position: relative;
	z-index: 1;
}
.auth-tabs::after {
	content: '';
	position: absolute;
	top: .35rem;
	left: calc(.35rem + var(--tab-indicator-left));
	width: var(--tab-indicator-width);
	height: calc(100% - .7rem);
	border-radius: 999px;
	background: linear-gradient(130deg, rgba(99,102,241,.72), rgba(59,130,246,.72) 55%, rgba(34,211,238,.72));
	box-shadow: 0 8px 20px rgba(30,58,138,.32), inset 0 1px 0 rgba(191,219,254,.32);
	opacity: 0;
	transform: translateZ(0);
	transition: left .32s cubic-bezier(.2,.8,.2,1), width .32s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
	pointer-events: none;
}
.auth-tabs.has-indicator::after {
	opacity: 1;
}
.auth-tab {
	flex: 1;
	text-align: center;
	font-weight: 600;
	font-size: .86rem;
	padding: .54rem .7rem;
	border-radius: 999px;
	color: color-mix(in srgb, var(--auth-muted) 94%, #fff 6%);
	background: transparent;
	transition: var(--transition);
	border: 1px solid transparent;
	position: relative;
	z-index: 1;
}
.auth-tab.is-active {
	background: rgba(12,25,50,.32);
	color: #f8fbff;
	border-color: rgba(96,165,250,.35);
	box-shadow: inset 0 1px 0 rgba(191,219,254,.24);
}
.auth-tab:hover {
	background: rgba(19,38,75,.55);
}
.auth-pane { display: none; }
.auth-pane.is-active { display: block; }

.auth-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(1.3rem, 2.2vw, 2rem);
	border-radius: clamp(18px, 2.2vw, 24px);
	background:
		linear-gradient(132deg, #0b1220 0%, #0d1b3d 45%, #1e3a8a 100%);
	color: #f8fafc;
	border: 1px solid rgba(56,189,248,.3);
	box-shadow: 0 28px 55px rgba(9,30,66,.35);
}
.auth-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(110deg, rgba(96,165,250,.2), transparent 35%, transparent 70%, rgba(34,211,238,.16)),
		repeating-linear-gradient(
			90deg,
			rgba(148,163,184,.07) 0,
			rgba(148,163,184,.07) 1px,
			transparent 1px,
			transparent 26px
		);
	mix-blend-mode: screen;
}
.auth-hero::after {
	content: '';
	position: absolute;
	inset: auto -24% -40% -24%;
	height: 70%;
	background: radial-gradient(circle at 25% 25%, rgba(56,189,248,.4), transparent 70%);
	opacity: .85;
	pointer-events: none;
}
.auth-hero > * {
	position: relative;
	z-index: 1;
}
.auth-hero-badge {
	display: inline-flex;
	align-items: center;
	padding: .34rem .85rem;
	border-radius: 999px;
	background: rgba(248,250,252,.15);
	color: rgba(248,250,252,.92);
	font-size: .76rem;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	border: 1px solid rgba(191,219,254,.3);
	box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.auth-hero h2 {
	margin: .78rem 0 .58rem;
	font-size: clamp(1.52rem, 2.45vw, 2.18rem);
	line-height: 1.2;
	background: linear-gradient(120deg, #ffffff, #dbeafe 45%, #bae6fd 90%);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.auth-hero-lead {
	margin: 0 0 .74rem;
	font-size: .97rem;
	line-height: 1.7;
	color: rgba(226,232,240,.94);
}
.auth-hero-list {
	margin: .4rem 0 0;
	padding-left: 1.08rem;
	line-height: 1.68;
	color: rgba(226,232,240,.95);
}
.auth-hero-note {
	margin-top: 1rem;
	padding: .68rem .8rem;
	border-radius: 12px;
	background: rgba(15,23,42,.4);
	border: 1px solid rgba(148,163,184,.35);
	font-size: .84rem;
	line-height: 1.5;
	color: rgba(226,232,240,.95);
}
.auth-hero-compact {
	display: none;
	margin-top: .72rem;
	padding: .62rem .72rem;
	border-radius: 12px;
	background: rgba(148,163,184,.14);
	border: 1px solid rgba(148,163,184,.26);
	font-size: .84rem;
	line-height: 1.45;
	color: rgba(226,232,240,.96);
}
.auth-hero-pills {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: .45rem;
	margin-top: .95rem;
}
.auth-hero-pill {
	display: inline-flex;
	align-items: center;
	padding: .3rem .64rem;
	border-radius: 999px;
	font-size: .73rem;
	letter-spacing: .04em;
	color: rgba(226,232,240,.96);
	background: rgba(15,23,42,.46);
	border: 1px solid rgba(125,211,252,.26);
}
.auth-hero-illustration {
	--parallax-x: 0px;
	--parallax-y: 0px;
	--parallax-r: 0deg;
	position: relative;
	z-index: 1;
	margin-top: .95rem;
	padding: .66rem .72rem;
	border-radius: 16px;
	background: rgba(8,16,34,.44);
	border: 1px solid rgba(125,211,252,.3);
	backdrop-filter: blur(4px);
	overflow: hidden;
	perspective: 900px;
}
.auth-hero-illustration--compact {
	margin-top: .75rem;
	margin-bottom: .9rem;
	padding: .58rem .62rem;
	background: rgba(8,16,34,.38);
	border-color: rgba(125,211,252,.25);
}
.auth-hero-illustration::before {
	content: '';
	position: absolute;
	inset: -30% 0 auto 0;
	height: 65%;
	background: radial-gradient(circle at 20% 0%, rgba(56,189,248,.28), transparent 66%);
	pointer-events: none;
}
.auth-hero-art-svg {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	transform: translate3d(var(--parallax-x), var(--parallax-y), 0) rotate(var(--parallax-r));
	transform-origin: 50% 54%;
	transition: transform .34s cubic-bezier(.2,.8,.2,1);
	will-change: transform;
}
.auth-hero-art-svg--compact {
	max-height: 144px;
}
.auth-hero-art-svg .network-area {
	fill: rgba(37,99,235,.08);
	stroke: rgba(125,211,252,.22);
	stroke-width: 1.2;
}
.auth-hero-art-svg .network-line {
	fill: none;
	stroke: rgba(125,211,252,.42);
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.auth-hero-art-svg .glow-path {
	stroke-dasharray: 12 9;
	filter: drop-shadow(0 0 10px rgba(56,189,248,.35));
	animation: authGlowPath 7s linear infinite;
}
.auth-hero-art-svg .pulse-node {
	transform-origin: center;
	fill: #bae6fd;
	stroke: rgba(14,165,233,.82);
	stroke-width: 2.2;
	animation: authNodePulse 2.6s ease-in-out infinite;
}
.auth-hero-art-svg .pulse-node.node-b {
	animation-delay: .55s;
}
.auth-hero-art-svg .pulse-node.node-c {
	animation-delay: 1.05s;
}
.auth-hero-art-svg .float-card {
	animation: authFloatY 6.2s ease-in-out infinite;
}
.auth-hero-art-svg .float-card.card-b {
	animation-delay: 1.1s;
}
.auth-hero-art-svg .float-card.card-c {
	animation-delay: 1.9s;
}
.auth-hero-art-svg .card-base {
	fill: rgba(15,23,42,.78);
	stroke: rgba(125,211,252,.34);
	stroke-width: 1;
}
.auth-hero-art-svg .card-title {
	fill: rgba(224,242,254,.92);
}
.auth-hero-art-svg .card-line {
	fill: rgba(148,163,184,.55);
}

.auth-cloud-note {
	margin-bottom: .95rem;
	padding: .7rem .82rem;
	border-radius: 12px;
	border: 1px solid rgba(96,165,250,.38);
	background: rgba(17,31,58,.68);
	display: grid;
	gap: .3rem;
	font-size: .84rem;
	color: var(--auth-muted);
	position: relative;
	z-index: 1;
}
.auth-cloud-note code {
	word-break: break-all;
	color: #dbeafe;
}
.auth-cloud-note a {
	color: var(--auth-link);
}
.auth-control .btn.secondary {
	background: rgba(30,41,59,.88);
	color: #dbeafe;
	border-color: rgba(96,165,250,.35);
}
.auth-control .btn.secondary:hover {
	background: rgba(37,52,78,.92);
	border-color: rgba(125,211,252,.5);
}
.auth-control button:not(.btn.secondary),
.auth-control input[type=submit],
.auth-control .btn:not(.secondary) {
	--mag-x: 0px;
	--mag-y: 0px;
	background: linear-gradient(135deg, var(--auth-accent-3), var(--auth-accent-1) 55%, var(--auth-accent-2));
	border-color: rgba(125,211,252,.5);
	color: #f8fbff;
	box-shadow: 0 12px 26px rgba(14,116,216,.35), inset 0 1px 0 rgba(255,255,255,.2);
	transform: translate3d(var(--mag-x), var(--mag-y), 0);
	transition: transform .16s cubic-bezier(.2,.8,.2,1), filter .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.auth-control button:not(.btn.secondary):hover,
.auth-control input[type=submit]:hover,
.auth-control .btn:not(.secondary):hover {
	transform: translate3d(var(--mag-x), calc(var(--mag-y) - 1px), 0);
	filter: saturate(1.08) brightness(1.03);
}
.auth-control button:not(.btn.secondary):active,
.auth-control input[type=submit]:active,
.auth-control .btn:not(.secondary):active {
	transform: translate3d(0, 0, 0) scale(.99);
}
.auth-control button[disabled],
.auth-control .btn[disabled],
.auth-control input[type=submit][disabled] {
	filter: grayscale(.15);
	opacity: .75;
	color: #dbeafe;
	border-color: rgba(148,163,184,.38);
	transform: translate3d(0, 0, 0);
}

@media (max-width: 1023px) {
	.auth-layout--split,
	.auth-split {
		grid-template-columns: 1fr;
	}
	.auth-hero {
		order: 2;
		padding: 1.2rem 1.05rem;
	}
	.auth-panel,
	.auth-card,
	.auth-surface {
		order: 1;
	}
	.auth-hero-list,
	.auth-hero-note {
		display: none;
	}
	.auth-hero-compact {
		display: block;
	}
	.auth-hero-pills {
		margin-top: .7rem;
	}
	.auth-layout--split .auth-hero-illustration {
		display: none;
	}
	.auth-hero-illustration--compact {
		display: block;
	}
}
@media (max-width: 639px) {
	.auth-shell {
		min-height: calc(100vh - 122px);
		padding: .8rem .74rem calc(.9rem + env(safe-area-inset-bottom));
	}
	.auth-surface,
	.auth-card,
	.auth-panel {
		padding: .9rem .82rem 1rem;
		border-radius: 16px;
	}
	.auth-tabs {
		margin-bottom: .76rem;
		gap: .2rem;
		padding: .2rem;
	}
	.auth-tab {
		font-size: .8rem;
		padding: .52rem .4rem;
	}
	.auth-brand-row {
		margin-bottom: .72rem;
	}
	.auth-brand-mark {
		width: 28px;
		height: 28px;
		border-radius: 10px;
		font-size: .74rem;
	}
	.auth-brand-text {
		font-size: .83rem;
	}
	.auth-subtitle {
		font-size: .84rem;
		margin-bottom: .72rem;
	}
	.auth-stepper {
		grid-template-columns: 1fr;
		gap: .28rem;
		margin-bottom: .72rem;
	}
	.auth-step {
		justify-content: flex-start;
		padding-inline: .6rem;
	}
	.auth-stepper::before {
		display: none;
	}
	.auth-trust-card {
		gap: .34rem;
		margin: .16rem 0 .72rem;
		padding: .54rem .56rem;
	}
	.auth-trust-item {
		gap: .38rem;
	}
	.auth-trust-icon {
		min-width: 30px;
		height: 18px;
		padding-inline: .3rem;
		font-size: .62rem;
	}
	.auth-trust-text {
		font-size: .73rem;
		line-height: 1.36;
	}
	.auth-card .form-row,
	.auth-panel .form-row,
	.auth-surface .form-row {
		margin-bottom: .64rem;
		padding-top: .38rem;
	}
	.auth-control .form-row.is-valid::after,
	.auth-control .form-row.is-invalid::after {
		top: .44rem;
		right: .42rem;
		font-size: .62rem;
		padding-inline: .38rem;
	}
	.auth-card .label,
	.auth-panel .label,
	.auth-surface .label {
		font-size: .78rem;
	}
	.auth-card .actions,
	.auth-panel .actions,
	.auth-surface .actions {
		margin-top: .48rem;
	}
	.auth-card .actions button,
	.auth-panel .actions button,
	.auth-surface .actions button {
		width: 100%;
	}
	.auth-card .link-row,
	.auth-panel .link-row,
	.auth-surface .link-row {
		gap: .42rem;
		font-size: .84rem;
	}
	.auth-help-next {
		font-size: .75rem;
		padding: .34rem .48rem;
	}
	.auth-otp-row {
		grid-template-columns: 1fr;
	}
	.auth-otp-row [data-email-otp-send] {
		width: 100%;
	}
	.auth-password-meter,
	.auth-password-match {
		margin-top: .28rem;
	}
	.auth-password-meter-label,
	.auth-password-match-label {
		font-size: .74rem;
	}
	.auth-password-wrap > input[type=password],
	.auth-password-wrap > input[type=text] {
		padding-right: 5.1rem !important;
	}
	.auth-password-toggle {
		right: .4rem;
		min-height: 32px;
		height: 32px;
		padding: 0 .66rem;
		font-size: .73rem;
	}
	.auth-cloud-note {
		margin-bottom: .72rem;
		padding: .62rem .66rem;
		font-size: .8rem;
	}
	.auth-hero-pills {
		display: none;
	}
	.auth-hero-illustration--compact {
		margin-top: .55rem;
		margin-bottom: .68rem;
		padding: .5rem .52rem;
	}
	.auth-hero-art-svg--compact {
		max-height: 112px;
	}
	.auth-hero-art-svg {
		transition-duration: .28s;
	}
	.auth-shell::after {
		opacity: .45;
		background-size: 22px 22px, 22px 22px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.auth-surface,
	.auth-card,
	.auth-panel {
		animation: none !important;
	}
}

/* Auth motion rollout: only enabled when auth-shell has auth-shell--brand-animated */
.auth-shell:not(.auth-shell--brand-animated) .auth-surface,
.auth-shell:not(.auth-shell--brand-animated) .auth-card,
.auth-shell:not(.auth-shell--brand-animated) .auth-panel {
	animation: none !important;
}
.auth-shell:not(.auth-shell--brand-animated) [data-auth-reveal] {
	opacity: 1;
	transform: none;
	filter: none;
}

.auth-shell--brand-animated {
	--auth-motion-ease: cubic-bezier(.2,.8,.2,1);
	--auth-motion-reveal-duration: .46s;
	--auth-motion-fade-duration: .58s;
	--auth-motion-glow-duration: 7.8s;
	--auth-motion-border-duration: 2.8s;
	--auth-motion-sheen-duration: 2.4s;
}
.auth-shell--brand-animated .auth-surface,
.auth-shell--brand-animated .auth-card,
.auth-shell--brand-animated .auth-panel {
	animation: authFadeIn var(--auth-motion-fade-duration) var(--auth-motion-ease) both;
}
.auth-shell--brand-animated.auth-motion-ready [data-auth-reveal] {
	opacity: 0;
	transform: translateY(10px);
	filter: blur(6px);
}
.auth-shell--brand-animated.auth-motion-ready [data-auth-reveal].is-revealed {
	animation: authRevealUp var(--auth-motion-reveal-duration) var(--auth-motion-ease) both;
}
.auth-shell--brand-animated .auth-hero::after {
	animation: authGlowSweep var(--auth-motion-glow-duration) ease-in-out infinite alternate;
}
.auth-shell--brand-animated .auth-tab.is-active {
	animation: authBorderPulse var(--auth-motion-border-duration) ease-in-out infinite;
}
.auth-shell--brand-animated .auth-control button:not(.btn.secondary),
.auth-shell--brand-animated .auth-control input[type=submit],
.auth-shell--brand-animated .auth-control .btn:not(.secondary) {
	position: relative;
	overflow: hidden;
	isolation: isolate;
}
.auth-shell--brand-animated .auth-control button:not(.btn.secondary)::before,
.auth-shell--brand-animated .auth-control input[type=submit]::before,
.auth-shell--brand-animated .auth-control .btn:not(.secondary)::before {
	content: '';
	position: absolute;
	inset: -70% auto -70% -130%;
	width: 90%;
	transform: skewX(-24deg);
	background: linear-gradient(90deg, transparent, rgba(255,255,255,.24), transparent);
	animation: authButtonSheen var(--auth-motion-sheen-duration) linear infinite;
	pointer-events: none;
}
.auth-shell.auth-motion-lite .auth-hero::after,
.auth-shell.auth-motion-lite .auth-tab.is-active,
.auth-shell.auth-motion-lite .auth-control button:not(.btn.secondary)::before,
.auth-shell.auth-motion-lite .auth-control input[type=submit]::before,
.auth-shell.auth-motion-lite .auth-control .btn:not(.secondary)::before,
.auth-shell.auth-motion-lite .auth-hero-art-svg .glow-path,
.auth-shell.auth-motion-lite .auth-hero-art-svg .pulse-node,
.auth-shell.auth-motion-lite .auth-hero-art-svg .float-card {
	animation: none !important;
}
.auth-shell.auth-motion-lite .auth-hero-art-svg {
	transform: none !important;
	transition: none !important;
}
.auth-shell--brand-animated [data-email-otp-form].is-sending [data-email-otp-send] {
	filter: saturate(1.05) brightness(1.02);
}
.auth-shell--brand-animated [data-email-otp-form].is-sending .auth-otp-msg {
	border-color: rgba(96,165,250,.52);
}
.auth-shell--brand-animated [data-email-otp-form].is-cooldown [data-email-otp-send] {
	opacity: .82;
}
.auth-shell--brand-animated [data-email-otp-form].is-error .auth-otp-msg {
	border-color: rgba(248,113,113,.55);
}
.auth-shell--brand-animated [data-email-otp-form].is-success .auth-otp-msg {
	border-color: rgba(45,212,130,.45);
}

.auth-control input[type=text]:focus-visible,
.auth-control input[type=password]:focus-visible,
.auth-control input[type=email]:focus-visible,
.auth-control input[type=number]:focus-visible,
.auth-control button:focus-visible,
.auth-control .btn:focus-visible {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(125,211,252,.22), 0 0 0 7px rgba(56,189,248,.1);
}
.auth-control form.was-submitted input:invalid {
	border-color: rgba(248,113,113,.62);
	box-shadow: 0 0 0 2px rgba(248,113,113,.16);
}
.auth-control form.was-submitted input:valid {
	border-color: rgba(52,211,153,.5);
}
.auth-control .actions button[type=submit] {
	min-width: 128px;
}
.auth-control [data-email-otp-form].is-ready-to-submit .actions button[type=submit] {
	border-color: rgba(45,212,191,.62);
	box-shadow: 0 10px 28px rgba(13,148,136,.36), inset 0 1px 0 rgba(167,243,208,.32);
}
.auth-control [data-email-otp-form].is-ready-to-submit .actions button[type=submit]::after {
	content: '\2713';
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	margin-left: .46rem;
	border-radius: 999px;
	font-size: .72rem;
	font-weight: 700;
	background: rgba(15,118,110,.28);
	border: 1px solid rgba(94,234,212,.5);
	vertical-align: middle;
}
.auth-control.auth-submitting {
	border-color: rgba(96,165,250,.62);
	box-shadow: 0 28px 70px rgba(6,16,36,.5), 0 0 0 1px rgba(125,211,252,.18), 0 1px 0 rgba(148,163,184,.12) inset;
	animation: authSubmitPulse 1.14s ease-in-out infinite;
}
.auth-control.auth-submitting::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(125,211,252,.95), transparent);
	animation: authSubmitRail 1.2s linear infinite;
}
.auth-control form.is-submitting .actions button[type=submit] {
	position: relative;
	pointer-events: none;
	filter: saturate(.82);
	opacity: .88;
}
.auth-control form.is-submitting .actions button[type=submit]::after {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,.35);
	border-top-color: rgba(255,255,255,.92);
	margin-left: .5rem;
	vertical-align: -2px;
	animation: authSpinner .6s linear infinite;
}
.auth-control .auth-otp-msg {
	transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

@keyframes authSpinner {
	to { transform: rotate(360deg); }
}
@keyframes authSubmitPulse {
	0%, 100% {
		border-color: rgba(96,165,250,.52);
		box-shadow: 0 28px 70px rgba(6,16,36,.5), 0 0 0 1px rgba(125,211,252,.12), 0 1px 0 rgba(148,163,184,.12) inset;
	}
	50% {
		border-color: rgba(34,211,238,.72);
		box-shadow: 0 28px 70px rgba(6,16,36,.5), 0 0 0 1px rgba(34,211,238,.18), 0 0 0 8px rgba(56,189,248,.08), 0 1px 0 rgba(148,163,184,.12) inset;
	}
}
@keyframes authSubmitRail {
	0% {
		transform: translateX(-44%);
		opacity: .4;
	}
	50% {
		opacity: .95;
	}
	100% {
		transform: translateX(44%);
		opacity: .4;
	}
}

@keyframes authRevealUp {
	from {
		opacity: 0;
		transform: translateY(10px);
		filter: blur(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
		filter: blur(0);
	}
}
@keyframes authFadeIn {
	from {
		opacity: 0;
		transform: translateY(12px) scale(.995);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}
@keyframes authGlowSweep {
	0% {
		transform: translate3d(-6%, 0, 0) scale(1);
		opacity: .36;
	}
	50% {
		transform: translate3d(3%, -2%, 0) scale(1.05);
		opacity: .78;
	}
	100% {
		transform: translate3d(8%, -4%, 0) scale(1.08);
		opacity: .52;
	}
}
@keyframes authBorderPulse {
	0%, 100% {
		border-color: rgba(96,165,250,.32);
		box-shadow: 0 10px 22px rgba(0,0,0,.24), inset 0 1px 0 rgba(191,219,254,.18);
	}
	50% {
		border-color: rgba(125,211,252,.62);
		box-shadow: 0 10px 22px rgba(0,0,0,.24), 0 0 0 1px rgba(125,211,252,.18), inset 0 1px 0 rgba(191,219,254,.3);
	}
}
@keyframes authButtonSheen {
	0% {
		left: -130%;
	}
	100% {
		left: 170%;
	}
}
@keyframes authGlowPath {
	0% {
		stroke-dashoffset: 0;
		opacity: .5;
	}
	50% {
		stroke-dashoffset: -120;
		opacity: 1;
	}
	100% {
		stroke-dashoffset: -240;
		opacity: .58;
	}
}
@keyframes authNodePulse {
	0%, 100% {
		transform: scale(1);
		opacity: .78;
	}
	50% {
		transform: scale(1.17);
		opacity: 1;
	}
}
@keyframes authFloatY {
	0%, 100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-6px);
	}
}

@media (max-width: 639px) {
	.auth-shell--brand-animated .auth-hero::after,
	.auth-shell--brand-animated .auth-control button:not(.btn.secondary)::before,
	.auth-shell--brand-animated .auth-control input[type=submit]::before,
	.auth-shell--brand-animated .auth-control .btn:not(.secondary)::before {
		animation: none !important;
	}
}

@media (max-width: 760px) {
	.auth-control input[type=text],
	.auth-control input[type=password],
	.auth-control input[type=email],
	.auth-control input[type=number] {
		font-size: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.auth-hero-art-svg {
		transform: none !important;
		transition: none !important;
	}
	.auth-tabs::after {
		transition: none !important;
	}
	.auth-control.auth-submitting {
		animation: none !important;
	}
	.auth-control.auth-submitting::after {
		animation: none !important;
	}
	.auth-control button:not(.btn.secondary),
	.auth-control input[type=submit],
	.auth-control .btn:not(.secondary) {
		transform: none !important;
		transition: filter .2s ease, box-shadow .2s ease, border-color .2s ease !important;
	}
	.auth-shell--brand-animated [data-auth-reveal] {
		opacity: 1 !important;
		transform: none !important;
		filter: none !important;
	}
	.auth-shell--brand-animated [data-auth-reveal].is-revealed,
	.auth-shell--brand-animated .auth-hero::after,
	.auth-shell--brand-animated .auth-tab.is-active,
	.auth-shell--brand-animated .auth-control button:not(.btn.secondary)::before,
	.auth-shell--brand-animated .auth-control input[type=submit]::before,
	.auth-shell--brand-animated .auth-control .btn:not(.secondary)::before,
	.auth-shell--brand-animated .auth-hero-art-svg .glow-path,
	.auth-shell--brand-animated .auth-hero-art-svg .pulse-node,
	.auth-shell--brand-animated .auth-hero-art-svg .float-card {
		animation: none !important;
	}
}
