body.auth-page {
  min-height: 100dvh;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(59, 130, 246, 0.16), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(124, 108, 255, 0.12), transparent 23%),
    radial-gradient(circle at 50% 88%, rgba(59, 130, 246, 0.08), transparent 26%),
    linear-gradient(180deg, #f7faff 0%, #eef3fb 100%);
  color: #0f172a;
  font-family:
    "Space Grotesk",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

body.auth-page::before,
body.auth-page::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.58;
  mix-blend-mode: screen;
}

body.auth-page::before {
  width: 340px;
  height: 340px;
  left: -120px;
  top: 16px;
  background: rgba(59, 130, 246, 0.1);
}

body.auth-page::after {
  width: 280px;
  height: 280px;
  right: -90px;
  bottom: -70px;
  background: rgba(124, 108, 255, 0.08);
}

.auth-page-shell {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  --auth-mx: 0;
  --auth-my: 0;
}

.auth-stage {
  position: relative;
  width: 100%;
  height: 100dvh;
  padding: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.auth-stage::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(247, 250, 255, 0.56)),
    linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, rgba(124, 108, 255, 0.02) 100%);
  box-shadow:
    0 18px 42px rgba(79, 124, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  z-index: -1;
}

.auth-shell {
  width: min(1360px, 100%);
  height: calc(100dvh - 32px);
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(360px, 430px);
  gap: clamp(20px, 2.6vw, 34px);
  align-items: stretch;
}

.auth-hero,
.auth-card {
  min-height: 0;
  transform-style: preserve-3d;
}

.auth-hero {
  display: grid;
  gap: 14px;
  padding: 8px 6px 4px;
  align-content: start;
}

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

.auth-brand-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  box-shadow:
    0 16px 28px rgba(59, 130, 246, 0.16),
    0 8px 18px rgba(124, 108, 255, 0.12);
  transform: translateZ(14px);
}

.auth-brand-copy {
  display: grid;
  gap: 2px;
}

.auth-brand-copy strong {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.auth-brand-copy span {
  color: #64748b;
  font-size: 0.93rem;
}

.auth-kicker,
.auth-route-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 0.58rem 0.92rem;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.14);
  background: rgba(255, 255, 255, 0.84);
  color: #4f7cff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.08);
}

.auth-hero-copy {
  display: grid;
  gap: 10px;
}

.auth-hero-copy h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.55rem, 4.15vw, 5rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  color: #0f172a;
}

.auth-hero-copy p {
  margin: 0;
  max-width: 52ch;
  color: #5f6b83;
  font-size: 1rem;
  line-height: 1.55;
}

.auth-scene {
  position: relative;
  min-height: 258px;
  border-radius: 32px;
  padding: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.13), transparent 28%),
    radial-gradient(circle at 82% 12%, rgba(124, 108, 255, 0.1), transparent 22%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(246, 249, 255, 0.52));
  border: 1px solid rgba(195, 213, 255, 0.68);
  box-shadow:
    0 16px 36px rgba(79, 124, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transform:
    perspective(1800px)
    rotateY(calc(var(--auth-mx) * 6deg))
    rotateX(calc(var(--auth-my) * -4deg));
}

.auth-scene::before,
.auth-scene::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.auth-scene::before {
  width: 240px;
  height: 240px;
  left: -84px;
  top: -72px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent 68%);
  animation: floatOrb 9s ease-in-out infinite;
}

.auth-scene::after {
  width: 230px;
  height: 230px;
  right: -70px;
  bottom: -78px;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.14), transparent 68%);
  animation: floatOrb 10s ease-in-out infinite reverse;
}

.auth-scene-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(1px);
  pointer-events: none;
}

.auth-scene-orb--one {
  width: 88px;
  height: 88px;
  left: 28px;
  top: 32px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.3), transparent 70%);
}

.auth-scene-orb--two {
  width: 118px;
  height: 118px;
  right: 26px;
  top: 24px;
  background: radial-gradient(circle, rgba(124, 108, 255, 0.26), transparent 70%);
}

.auth-scene-orb--three {
  width: 120px;
  height: 120px;
  right: 40px;
  bottom: 18px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 70%);
}

.auth-scene-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  padding: 0.66rem 0.94rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.07);
  color: #4f7cff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  animation: pillBob 5.8s ease-in-out infinite;
}

.auth-scene-chip--left {
  left: 18px;
  top: 116px;
}

.auth-scene-chip--right {
  right: 18px;
  top: 196px;
  animation-delay: -1.6s;
}

.auth-scene-chip--bottom {
  left: 34px;
  bottom: 18px;
  animation-delay: -3s;
}

.auth-scene-card {
  position: relative;
  z-index: 2;
  width: min(100%, 620px);
  min-height: 210px;
  padding: 16px;
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(124, 108, 255, 0.08)),
    rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(184, 206, 255, 0.72);
  box-shadow:
    0 16px 34px rgba(79, 124, 255, 0.06),
    0 8px 16px rgba(79, 124, 255, 0.04);
  transform:
    translate3d(calc(var(--auth-mx) * 12px), calc(var(--auth-my) * 10px), 14px)
    rotateY(calc(var(--auth-mx) * 4deg))
    rotateX(calc(var(--auth-my) * -3deg));
}

.auth-scene-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.auth-scene-card-head strong {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
}

.auth-scene-card-head span {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #4f7cff;
}

.auth-scene-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(190, 206, 255, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.auth-scene-link-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3b82f6, #7c6cff);
  color: #fff !important;
  box-shadow: 0 14px 24px rgba(59, 130, 246, 0.2);
  flex: 0 0 auto;
}

.auth-scene-link-icon svg {
  width: 20px;
  height: 20px;
  color: #fff !important;
  stroke: #fff !important;
  fill: none;
}

.auth-scene-link-icon svg * {
  stroke: #fff !important;
  fill: none;
}

.auth-scene-link > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.auth-scene-link strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.auth-scene-link span {
  font-size: 0.88rem;
  color: #64748b;
}

.auth-scene-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
}

.auth-scene-mini {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(190, 206, 255, 0.64);
  padding: 14px;
  min-height: 138px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
  overflow: hidden;
}

.auth-scene-mini--chart {
  position: relative;
}

.auth-scene-mini--chart::before {
  content: "";
  position: absolute;
  inset: auto 16px 18px 16px;
  height: 80px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(59, 130, 246, 0.12), rgba(124, 108, 255, 0.2));
  clip-path: polygon(0 100%, 0 78%, 8% 72%, 16% 65%, 24% 62%, 32% 48%, 40% 54%, 48% 31%, 56% 24%, 64% 36%, 72% 18%, 80% 23%, 88% 10%, 100% 0, 100% 100%);
  filter: saturate(1.15);
}

.auth-scene-mini--chart::after {
  content: "";
  position: absolute;
  inset: 18px 16px auto;
  height: 2px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.12), rgba(148, 163, 184, 0.02));
}

.auth-scene-mini--qr {
  display: grid;
  place-items: center;
}

.auth-scene-qr {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, #3b82f6 0 17%, transparent 18%),
    radial-gradient(circle at 82% 18%, #7c6cff 0 17%, transparent 18%),
    radial-gradient(circle at 18% 82%, #0ea5e9 0 17%, transparent 18%),
    linear-gradient(135deg, #0f172a, #111827);
  box-shadow:
    0 18px 32px rgba(15, 23, 42, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.auth-scene-qr::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(255, 255, 255, 0.88) 8% 15%, transparent 15% 22%, rgba(255, 255, 255, 0.84) 22% 31%, transparent 31% 39%, rgba(255, 255, 255, 0.92) 39% 48%, transparent 48% 57%, rgba(255, 255, 255, 0.88) 57% 67%, transparent 67% 100%),
    linear-gradient(180deg, transparent 0 10%, rgba(255, 255, 255, 0.88) 10% 18%, transparent 18% 27%, rgba(255, 255, 255, 0.82) 27% 36%, transparent 36% 46%, rgba(255, 255, 255, 0.88) 46% 55%, transparent 55% 64%, rgba(255, 255, 255, 0.8) 64% 74%, transparent 74% 100%);
  opacity: 0.94;
  mix-blend-mode: screen;
}

.auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 6px;
}

.auth-metric {
  display: grid;
  gap: 10px;
  padding: 13px;
  min-height: 104px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(190, 206, 255, 0.64);
  box-shadow:
    0 14px 28px rgba(79, 124, 255, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
}

.auth-metric-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #7c6cff);
  color: #fff;
  box-shadow: 0 12px 22px rgba(59, 130, 246, 0.2);
}

.auth-metric-icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
  fill: none;
}

.auth-metric-icon svg * {
  stroke: #fff;
  fill: none;
}

.auth-metric strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.97rem;
  font-weight: 800;
  color: #0f172a;
}

.auth-metric span {
  display: block;
  color: #667085;
  font-size: 0.87rem;
  line-height: 1.5;
}

.auth-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.92));
  border: 1px solid rgba(190, 206, 255, 0.72);
  box-shadow:
    0 22px 48px rgba(79, 124, 255, 0.06),
    0 8px 16px rgba(79, 124, 255, 0.04);
  backdrop-filter: blur(16px);
  transform:
    perspective(1800px)
    rotateY(calc(var(--auth-mx) * -3.5deg))
    rotateX(calc(var(--auth-my) * 2.7deg));
}

.auth-card::before {
  content: "";
  position: absolute;
  inset: auto -48px -50px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.06);
  filter: blur(24px);
}

.auth-card-top {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.auth-card-top h2 {
  margin: 0;
  font-size: 1.75rem;
  line-height: 1.02;
  letter-spacing: -0.06em;
  color: #0f172a;
}

.auth-card-top p {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.auth-error {
  display: none;
  margin-bottom: 14px;
  padding: 0.82rem 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(239, 68, 68, 0.16);
  background: rgba(254, 242, 242, 0.94);
  color: #b91c1c;
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-error.show {
  display: block;
}

.auth-oauth {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-oauth-label {
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-oauth-button {
  width: 100%;
  height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid rgba(79, 124, 255, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96));
  color: #1d4ed8;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow:
    0 12px 22px rgba(59, 130, 246, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.auth-oauth-button:hover {
  transform: translateY(-1px);
  box-shadow:
    0 16px 26px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.auth-oauth-button:disabled {
  opacity: 0.68;
  cursor: not-allowed;
  transform: none;
}

.auth-oauth-icon {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4285f4, #7c6cff);
  color: #fff;
  box-shadow: 0 12px 22px rgba(59, 130, 246, 0.18);
  flex: 0 0 auto;
}

.auth-oauth-icon svg {
  width: 18px;
  height: 18px;
}

.auth-oauth-hint {
  margin: 0;
  padding: 0.8rem 0.95rem;
  border-radius: 16px;
  border: 1px dashed rgba(59, 130, 246, 0.22);
  background: rgba(239, 246, 255, 0.82);
  color: #3b82f6;
  font-size: 0.9rem;
  line-height: 1.5;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(148, 163, 184, 0.26);
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-2fa-wrap {
  display: grid;
  gap: 10px;
}

.auth-2fa-copy {
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  border: 1px dashed rgba(59, 130, 246, 0.2);
  background: rgba(239, 246, 255, 0.8);
  color: #1d4ed8;
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-link-button {
  margin-top: 10px;
  border: none;
  background: transparent;
  color: #2563eb;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

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

.auth-field {
  display: grid;
  gap: 7px;
}

.auth-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.auth-input {
  width: 100%;
  height: 48px;
  border-radius: 15px;
  border: 1px solid rgba(190, 206, 255, 0.72);
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.auth-submit {
  width: 100%;
  height: 52px;
  margin-top: 2px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #3b82f6, #7c6cff);
  color: #fff;
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow:
    0 16px 28px rgba(59, 130, 246, 0.18),
    0 8px 16px rgba(124, 108, 255, 0.12);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow:
    0 18px 30px rgba(59, 130, 246, 0.2),
    0 10px 18px rgba(124, 108, 255, 0.13);
}

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

.auth-foot {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-foot span {
  color: #64748b;
}

.auth-link {
  color: #3b82f6;
  font-weight: 800;
}

.auth-link:hover {
  color: #2563eb;
}

.auth-note {
  margin: 12px 0 0;
  color: #7a859a;
  font-size: 0.82rem;
  line-height: 1.56;
}

.auth-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at top, rgba(249, 115, 22, 0.12), transparent 30%),
    rgba(7, 12, 25, 0.56);
  backdrop-filter: blur(14px);
}

.auth-loading-overlay[hidden] {
  display: none;
}

.auth-loading-card {
  width: min(560px, 100%);
  padding: clamp(28px, 4vw, 42px);
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98)),
    rgba(15, 23, 42, 0.94);
  color: #f8fafc;
  box-shadow:
    0 28px 70px rgba(2, 6, 23, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.auth-loading-logo-shell {
  width: 92px;
  height: 92px;
  margin: 0 auto 24px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94));
  border: 1px solid rgba(96, 165, 250, 0.12);
  box-shadow:
    0 18px 34px rgba(15, 23, 42, 0.3),
    inset 0 0 0 6px rgba(255, 255, 255, 0.02);
}

.auth-loading-logo {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(249, 115, 22, 0.22);
}

.auth-loading-copy {
  text-align: center;
}

.auth-loading-kicker {
  display: block;
  margin-bottom: 10px;
  color: #ffb454;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.auth-loading-copy strong {
  display: block;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.auth-loading-copy span {
  display: block;
  margin-top: 14px;
  color: rgba(226, 232, 240, 0.8);
  font-size: 1rem;
  line-height: 1.7;
}

.auth-loading-progress {
  margin-top: 26px;
}

.auth-loading-progress-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.18);
}

.auth-loading-progress-bar {
  width: 44%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f97316, #fb923c);
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.45);
  animation: authLoadingPulse 1.6s ease-in-out infinite;
}

.auth-loading-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.auth-loading-dots span {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #fb923c;
  opacity: 0.28;
  animation: authLoadingDot 1.2s ease-in-out infinite;
}

.auth-loading-dots span:nth-child(2) {
  animation-delay: 0.16s;
}

.auth-loading-dots span:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(12px, -18px, 0) scale(1.04);
  }
}

@keyframes pillBob {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes authLoadingPulse {
  0%,
  100% {
    transform: scaleX(0.96);
    transform-origin: left center;
    opacity: 0.86;
  }
  50% {
    transform: scaleX(1);
    transform-origin: left center;
    opacity: 1;
  }
}

@keyframes authLoadingDot {
  0%,
  100% {
    opacity: 0.28;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-height: 860px) {
  .auth-stage {
    padding: 12px;
  }

  .auth-stage::before {
    inset: 8px;
  }

  .auth-shell {
    height: calc(100dvh - 24px);
    gap: 18px;
  }

  .auth-hero {
    gap: 12px;
  }

  .auth-brand-mark {
    width: 50px;
    height: 50px;
  }

  .auth-hero-copy h1 {
    font-size: clamp(2.2rem, 3.7vw, 4.2rem);
  }

  .auth-scene {
    min-height: 232px;
    padding: 16px;
  }

  .auth-scene-card {
    min-height: 190px;
  }

  .auth-metric {
    min-height: 94px;
    padding: 12px;
  }

  .auth-card {
    padding: 22px;
  }

  .auth-card-top h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 1120px) {
  body.auth-page {
    overflow-y: auto;
  }

  .auth-stage {
    height: auto;
    min-height: 100dvh;
    padding: 14px;
  }

  .auth-stage::before {
    inset: 8px;
  }

  .auth-shell {
    height: auto;
    min-height: calc(100dvh - 28px);
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .auth-hero {
    padding: 4px 2px 2px;
  }

  .auth-hero-copy h1 {
    max-width: 13ch;
  }
}

@media (max-width: 720px) {
  body.auth-page {
    overflow-y: auto;
  }

  .auth-stage {
    padding: 10px;
  }

  .auth-stage::before {
    inset: 6px;
    border-radius: 28px;
  }

  .auth-shell {
    width: min(100%, 100%);
    gap: 14px;
  }

  .auth-card {
    order: 1;
    padding: 18px;
    border-radius: 24px;
  }

  .auth-hero {
    order: 2;
    gap: 12px;
    padding: 0 2px 2px;
  }

  .auth-brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .auth-brand-copy span {
    font-size: 0.84rem;
  }

  .auth-kicker,
  .auth-route-badge {
    padding: 0.5rem 0.78rem;
    font-size: 0.74rem;
  }

  .auth-hero-copy {
    gap: 8px;
  }

  .auth-hero-copy h1 {
    max-width: none;
    font-size: 1.95rem;
    line-height: 0.98;
  }

  .auth-hero-copy p {
    max-width: none;
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .auth-scene {
    display: none;
  }

  .auth-metrics {
    display: none;
  }

  .auth-card-top h2 {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
