.login-design-switcher {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 60;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: calc(100vw - 24px);
  perspective: 700px;
}

.login-design-switcher__btn {
  --sw-face: #2b3340;
  --sw-side: #1a2028;
  --sw-top: #3d4755;
  --sw-accent: #8b9bb4;
  position: relative;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  text-decoration: none !important;
  color: #fff;
  transform-style: preserve-3d;
  transform: rotateX(18deg) rotateY(-18deg);
  transition: transform 0.25s ease, filter 0.25s ease;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35));
}

.login-design-switcher__btn:hover,
.login-design-switcher__btn:focus {
  transform: rotateX(10deg) rotateY(-10deg) translateY(-4px) scale(1.06);
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.4));
  outline: none;
}

.login-design-switcher__btn.is-active {
  pointer-events: none;
  filter: drop-shadow(0 0 12px rgba(255, 214, 110, 0.55));
}

.login-design-switcher__cube {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.login-design-switcher__cube span {
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: var(--sw-face);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.login-design-switcher__cube .face-front {
  background: linear-gradient(145deg, var(--sw-top), var(--sw-face));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.login-design-switcher__cube .face-right {
  width: 12px;
  left: auto;
  right: -12px;
  transform-origin: left center;
  transform: rotateY(90deg);
  background: var(--sw-side);
  border-radius: 0 10px 10px 0;
}

.login-design-switcher__cube .face-bottom {
  height: 12px;
  top: auto;
  bottom: -12px;
  transform-origin: top center;
  transform: rotateX(-90deg);
  background: #12161c;
  border-radius: 0 0 10px 10px;
}

.login-design-switcher__icon {
  position: relative;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.login-design-switcher__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.login-design-switcher__tip {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(15, 18, 24, 0.92);
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.28);
}

.login-design-switcher__btn:hover .login-design-switcher__tip,
.login-design-switcher__btn:focus .login-design-switcher__tip {
  opacity: 1;
}

/* Theme accents */
.login-design-switcher__btn[data-design="classic"] {
  --sw-face: #4f46e5;
  --sw-side: #312e81;
  --sw-top: #818cf8;
  --sw-accent: #c7d2fe;
}

.login-design-switcher__btn[data-design="lamp"] {
  --sw-face: #1c1f24;
  --sw-side: #0f1114;
  --sw-top: #3a3f48;
  --sw-accent: #ffd66e;
}

.login-design-switcher__btn[data-design="animated"] {
  --sw-face: #0ea5e9;
  --sw-side: #075985;
  --sw-top: #38bdf8;
  --sw-accent: #e0f2fe;
}

.login-design-switcher__btn[data-design="bag"] {
  --sw-face: #111827;
  --sw-side: #030712;
  --sw-top: #374151;
  --sw-accent: #fbbf24;
}

.login-design-switcher__btn[data-design="bulb"] {
  --sw-face: #1e3a5f;
  --sw-side: #0f2744;
  --sw-top: #3b82f6;
  --sw-accent: #fde68a;
}

.login-design-switcher__btn.is-active .face-front {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 0 0 2px rgba(255, 214, 110, 0.65);
}

/* Classic page: dock below form actions if embedded */
.login-design-switcher--inline {
  position: static;
  justify-content: center;
  margin: 14px 0 4px;
  perspective: 700px;
}

body.login.modern-theme .login-design-switcher--inline .login-design-switcher__tip {
  background: rgba(15, 23, 42, 0.95);
}

@media (max-width: 520px) {
  .login-design-switcher {
    top: 10px;
    right: 10px;
    gap: 8px;
  }

  .login-design-switcher__btn {
    width: 44px;
    height: 44px;
  }

  .login-design-switcher__icon {
    width: 24px;
    height: 24px;
  }
}
