/* Theme/Core orbs exist outside Elementor; preserve their existing dimensions. */
body .tiny-orb,
body [style*="kimi-orb.svg"],
body [style*="kimi-orb.png"] {
  background: transparent url("https://ki-mi.ir/wp-content/uploads/2026/10/kimi-orb-animated-1.svg") center / contain no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  animation: none !important;
}
body .tiny-orb::before,
body .tiny-orb::after {
  content: none !important;
}
/* Paint the correct resource before the small DOM normalizer runs. */
body img[src*="/kimi-orb.svg"],
body img[src*="/kimi-orb.png"],
body img[src*="/orb.svg"] {
  content: url("https://ki-mi.ir/wp-content/uploads/2026/10/kimi-orb-animated-1.svg") !important;
  object-fit: contain;
}
/* Kimi Account Portal creates its orb from HTML/CSS, not an image. */
html body .kap-orb {
  background: transparent url("https://ki-mi.ir/wp-content/uploads/2026/10/kimi-orb-animated-1.svg") center / contain no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  animation: none !important;
}
html body .kap-orb::before,
html body .kap-orb::after {
  content: none !important;
  display: none !important;
}
html body .kap-orb > span,
html body .kap-orb > i {
  display: none !important;
}
html body .kap-orb.kne-orb-ready {
  background-image: none !important;
}
html body .kap-orb > img.kne-portal-orb {
  display: block !important;
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  animation: none !important;
}
/* Double both dimensions of the login orb; zoom also reserves layout space. */
html body .kap-login .kap-welcome > .kap-orb {
  zoom: 2;
}
/* Login layout: align the two columns at their top and close the orb/text gap. */
html body .kap-login {
  align-items: start !important;
}
html body .kap-login .kap-welcome {
  position: relative;
  top: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: start;
  gap: 0 !important;
  padding-top: 0 !important;
}
html body .kap-login .kap-welcome > .kap-eyebrow {
  position: absolute;
  inset-inline-start: 0;
  top: -32px;
  margin: 0 !important;
}
html body .kap-login .kap-welcome > .kap-orb {
  flex: none;
  /* zoom=2 also scales margins; compensate for the SVG's transparent padding. */
  margin: -18px 0 -20px !important;
}
html body .kap-login .kap-welcome > h1 {
  margin: 8px 0 0 !important;
  line-height: 1.5;
}
html body .kap-login .kap-welcome > p {
  margin: 14px 0 0 !important;
}
html body .kap-login .kap-welcome > .kap-trust {
  margin-top: 22px !important;
}
@media (min-width: 901px) {
  html body .kap-login {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 64px;
    max-width: 944px;
    margin-inline: auto;
  }
  html body .kap-login .kap-welcome,
  html body .kap-login .kap-login-card {
    width: 100%;
    max-width: 440px;
    min-width: 0;
  }
}
/* A proper 20px account icon, centered in the phone field. */
html body .kap-phone {
  position: relative;
}
html body .kap-phone > span[aria-hidden="true"] {
  position: absolute !important;
  top: 50% !important;
  right: 16px !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 1 !important;
  color: transparent !important;
  background: url("icon-account-user.svg") center / 20px 20px no-repeat !important;
  pointer-events: none;
}
html body .kap-phone > input {
  padding-right: 52px !important;
}
