/* One shared hero on login, registration and registration tracking. */
.auth-hero.right-panel {
  position: sticky; top: 0; isolation: isolate; align-self: flex-start;
  flex: 1.15; width: auto; min-width: 0; height: 100dvh; min-height: 640px;
  padding: clamp(24px, 4vw, 48px); overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-start; gap: 0;
  color: #fff; direction: rtl;
  background: radial-gradient(ellipse at 20% 25%, #cb1d3040, transparent 60%), #0d0d10;
}
.auth-hero.right-panel::before, .auth-hero.right-panel::after { content: none; }
.auth-hero .auth-brand { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; align-self: flex-start; gap: 8px; flex-shrink: 0; }
.auth-hero .auth-brand img { width: clamp(130px, 14vw, 200px); height: auto; object-fit: contain; }
.auth-hero .auth-brand-name { display: inline-block; font-size: 1.8em; line-height: 1.2; color: #cb232e; font-weight: 800; margin: 0; }
.auth-hero .auth-headline { position: relative; z-index: 2; font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.6; color: #fff; font-weight: 800; margin: 22px 0 0; text-align: right; }
.auth-hero .auth-scene-space { position: relative; flex: 1; min-height: 190px; margin: 4px -28px 8px; z-index: 1; }
.auth-hero .auth-lab-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; transform: translate(var(--lab-x, 0px), var(--lab-y, 0px)); transition: transform .6s ease-out; filter: drop-shadow(0 16px 18px #0005); pointer-events: none; }
.auth-hero .scene-slot { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .6s; }
.auth-hero .scene-slot.on { opacity: .85; }
.auth-hero .scene-slot canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.auth-hero .role-strip { position: relative; z-index: 2; width: 100%; margin: 0; direction: rtl; }
.auth-hero .role-chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; }
.auth-hero .role-chip {
  border: 1px solid #ffffff30; border-radius: 999px; background: #101217cc;
  color: #e2e8f0; padding: 7px 12px; font-family: inherit; font-size: .74rem;
  font-weight: 600; white-space: nowrap; cursor: pointer; box-shadow: none; transform: none;
}
.auth-hero .role-chip.hover-active, .auth-hero .role-chip:hover { background: #a71728; border-color: #e7394b; color: white; transform: none; }
.auth-hero .role-chip:focus-visible, .auth-hero .role-slide-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.auth-hero .role-slide { border: 0; border-top: 1px solid #ffffff26; border-radius: 0; background: transparent; padding: 15px 0 0; margin: 18px 0 0; box-shadow: none; }
.auth-hero .role-slide-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 8px; }
.auth-hero .role-slide-label { color: #fff; font-size: .88rem; font-weight: 700; }
.auth-hero .role-slide-dots { display: flex; gap: 6px; }
.auth-hero .role-slide-dot { width: 7px; height: 7px; min-width: 0; padding: 0; border: 0; border-radius: 50%; background: #ffffff50; cursor: pointer; }
.auth-hero .role-slide-dot.active { width: 18px; border-radius: 5px; background: #ed3348; }
.auth-hero .role-slide-body { opacity: 1; transition: opacity .2s; }
.auth-hero .role-slide-body.switching { opacity: 0; }
.auth-hero .role-slide-line { color: #d3d8e0; font-size: .8rem; line-height: 1.8; min-height: 2.7em; margin: 0; }
.auth-hero .footer-tag { display: flex; justify-content: space-between; gap: 12px; color: #a5acb8; font-size: .7rem; margin: 16px 0 0; padding: 0; direction: rtl; }
.icon-badge:has(img[src^="/static/logo.png"]) { width: 90px; height: 56px; background: white; }
.icon-badge img[src^="/static/logo.png"] { width: 68px; height: auto; object-fit: contain; }
.intro-brand img[src^="/static/logo.png"] { width: 64px; height: auto; border-radius: 0; }
@media (max-width: 900px) {
  .split-wrap { flex-direction: column; }
  .auth-hero.right-panel {
    position: relative; order: -1; width: 100%; height: auto; min-height: 0;
    flex: none; padding: 20px; display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    grid-template-rows: auto auto auto; column-gap: 8px;
  }
  .auth-hero .auth-brand { grid-column: 1; grid-row: 1; align-self: end; }
  .auth-hero .auth-brand img { width: clamp(88px, 19vw, 130px); }
  .auth-hero .auth-headline { grid-column: 1; grid-row: 2; margin: 12px 0 8px; font-size: clamp(1rem, 3vw, 1.35rem); line-height: 1.65; }
  .auth-hero .auth-brand-name { white-space: nowrap; }
  .auth-hero .scene-slot { display: none; }
  .auth-hero .auth-scene-space { grid-column: 2; grid-row: 1 / 3; min-height: 155px; margin: -8px -14px 0 -20px; }
  .auth-hero .auth-lab-art { display: block; transform: none; }
  .auth-hero .role-strip { grid-column: 1 / -1; min-width: 0; margin-top: 12px; }
  .auth-hero .role-chips { flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: thin; scrollbar-color: #a71728 transparent; }
  .auth-hero .role-chip { flex-shrink: 0; min-height: 44px; font-size: .72rem; padding: 8px 12px; }
  .auth-hero .role-slide { margin-top: 4px; padding-top: 12px; }
  .auth-hero .role-slide-dots { display: none; }
  .auth-hero .role-slide-line { min-height: 0; }
  .auth-hero .footer-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { .auth-hero *, .auth-hero .scene-slot { transition: none !important; } }

@media (prefers-reduced-motion: reduce) { .auth-hero .auth-lab-art { transform: none !important; } }
