/* Decorative fallback motifs; licensing metadata lives in login-eggs/<locale>/. */
.auth-locale-egg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.78;
  background-repeat: no-repeat;
  background-position: right 8% center;
  background-size: min(52vw, 420px) auto;
}

.auth-locale-egg::before,
.auth-locale-egg::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.auth-locale-egg[data-egg-locale="en"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 460'%3E%3Ccircle cx='250' cy='228' r='151' fill='none' stroke='%23f96302' stroke-width='2' opacity='.5'/%3E%3Ccircle cx='250' cy='228' r='108' fill='none' stroke='%23fff' stroke-width='7' opacity='.17'/%3E%3Ccircle cx='250' cy='228' r='16' fill='%23f96302'/%3E%3Cpath d='M38 229h45l15-45 25 90 28-132 28 174 24-104 20 52h64' fill='none' stroke='%23f96302' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.auth-locale-egg[data-egg-locale="en"]::after {
  inset: 16% 10% auto auto;
  width: 96px;
  height: 96px;
  border: 1px solid rgba(249, 99, 2, 0.65);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(249, 99, 2, 0.06), 0 0 38px rgba(249, 99, 2, 0.22);
}

.auth-locale-egg[data-egg-locale="ru"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 460'%3E%3Cpath d='M270 49c-62 37-86 93-86 179 0 89 31 143 86 183 55-40 86-94 86-183 0-86-24-142-86-179Z' fill='%23f96302' opacity='.84'/%3E%3Cpath d='M270 105c-34 24-49 61-49 123s18 101 49 128c31-27 49-66 49-128s-15-99-49-123Z' fill='%23fff' opacity='.94'/%3E%3Cpath d='M270 155c-17 16-24 38-24 73s8 57 24 73c16-16 25-38 25-73s-9-57-25-73Z' fill='%23f96302'/%3E%3Cpath d='M52 103h164l-68 64h147l-89 76h180' fill='none' stroke='%23fff' stroke-width='5' opacity='.7'/%3E%3Cpath d='m82 340 143-49m-98 90 143-49m-67 93 143-49' stroke='%23f96302' stroke-width='4'/%3E%3C/svg%3E");
}

.auth-locale-egg[data-egg-locale="ru"]::before {
  inset: 10% 8% auto auto;
  width: 220px;
  height: 220px;
  background: linear-gradient(135deg, transparent 49%, rgba(249, 99, 2, 0.3) 50%) 0 0 / 56px 56px;
  clip-path: polygon(32% 0, 100% 0, 100% 78%, 0 100%);
}

.auth-locale-egg[data-egg-locale="ru"]::after {
  inset: auto 12% 11% auto;
  width: 170px;
  height: 170px;
  background: radial-gradient(circle, #fff 0 2px, transparent 3px) 0 0 / 34px 34px;
  opacity: 0.48;
}

.auth-locale-egg[data-egg-locale="ja"] {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 460 460'%3E%3Cpath d='M272 62c-43 9-75 42-75 89 0 26 13 46 26 62-27 30-39 66-34 117l15 74h141l15-74c6-51-7-87-34-117 13-16 26-36 26-62 0-47-32-80-75-89Z' fill='%2300e5ff' opacity='.57'/%3E%3Cpath d='M225 194c26 18 69 18 95 0m-92 82c29 18 63 18 88 0' fill='none' stroke='%23ff3eb5' stroke-width='5' stroke-linecap='round'/%3E%3Cpath d='M44 152c28-53 58 53 86 0s58 53 86 0m140 0c28-53 58 53 86 0' fill='none' stroke='%2300e5ff' stroke-width='6'/%3E%3Cpath d='M32 320c31-42 56 42 83 0s56 42 83 0 56-42 83 0 56 42 83 0 56-42 83 0' fill='none' stroke='%23ff3eb5' stroke-width='5'/%3E%3C/svg%3E");
}

.auth-locale-egg[data-egg-locale="ja"]::before {
  inset: 8% 4% auto auto;
  width: 270px;
  height: 270px;
  border-radius: 50%;
  background: conic-gradient(from 65deg, rgba(0, 229, 255, 0.04), rgba(255, 62, 181, 0.3), rgba(0, 229, 255, 0.04));
  filter: blur(12px);
}

.auth-locale-egg[data-egg-locale="ja"]::after {
  inset: auto 8% 11% auto;
  width: 250px;
  height: 48px;
  background: repeating-linear-gradient(90deg, transparent 0 9px, rgba(0, 229, 255, 0.56) 10px 12px, transparent 13px 18px);
  transform: skewX(-18deg);
  opacity: 0.72;
}

.auth-locale-egg.egg-play {
  animation: auth-locale-egg-enter 1.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes auth-locale-egg-enter {
  from { opacity: 0; transform: translate3d(30px, 0, 0) scale(0.94); }
  60% { opacity: 0.9; }
  to { opacity: 0.78; transform: translate3d(0, 0, 0) scale(1); }
}

@media (max-width: 720px) {
  .auth-locale-egg {
    background-position: right -28px center;
    background-size: 280px auto;
    opacity: 0.48;
  }

  .auth-locale-egg::before,
  .auth-locale-egg::after {
    transform: scale(0.72);
    transform-origin: bottom right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-locale-egg.egg-play { animation: none; }
}
