/* arushan.bio — sign-in / sign-up window in the new brand style */
@keyframes nlAuthGlow {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-14px, 10px) scale(1.08);
  }
}

html body #authModal#authModal.modalbg,
html body #authModal#authModal.modalbg.open {
  position: fixed !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(18, 12, 42, .45) !important;
  -webkit-backdrop-filter: blur(8px) saturate(130%) !important;
  backdrop-filter: blur(8px) saturate(130%) !important;
  z-index: 99999 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

html body #authModal#authModal.modalbg:not(.open) {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.22s cubic-bezier(.16, 1, .3, 1), visibility 0s linear 0.22s !important;
}

html body #authModal#authModal.modalbg.open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transition: opacity 0.24s cubic-bezier(.16, 1, .3, 1), visibility 0s linear 0s !important;
}

html body #authModal#authModal #authForm.modal {
  position: relative !important;
  isolation: isolate !important;
  width: 100% !important;
  max-width: 392px !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  max-height: calc(100vh - 32px) !important;
  max-height: calc(100dvh - 32px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  margin: auto !important;
  padding: 32px 26px 24px !important;
  border-radius: 26px !important;
  border: 1px solid rgba(255, 255, 255, .85) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(249, 247, 255, .95)) !important;
  color: #141026 !important;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif !important;
  box-shadow: 0 35px 80px -25px rgba(52, 28, 150, .45), 0 0 0 1px rgba(104, 71, 238, .08) !important;
  text-align: left !important;
  animation: none !important;
  transform: translateY(10px) scale(.97) !important;
  opacity: 0 !important;
  transition: transform 0.24s cubic-bezier(.16, 1, .3, 1), opacity 0.20s ease !important;
  will-change: transform, opacity !important;
}

html body #authModal#authModal #authForm.modal::-webkit-scrollbar:horizontal {
  display: none !important;
  height: 0 !important;
}

html body #authModal#authModal.open #authForm.modal {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
}

html body #authModal #authForm.modal::before {
  content: "" !important;
  position: absolute !important;
  z-index: -1 !important;
  top: -90px !important;
  right: -70px !important;
  width: 240px !important;
  height: 240px !important;
  border-radius: 50% !important;
  background: radial-gradient(circle, rgba(157, 136, 255, .55), rgba(104, 71, 238, 0) 70%) !important;
  animation: nlAuthGlow 9s ease-in-out infinite !important;
  pointer-events: none !important;
}

html body #authModal #authTitle {
  margin: 0 0 6px !important;
  text-align: center !important;
  font: 800 26px/1.15 Outfit, Inter, system-ui, sans-serif !important;
  letter-spacing: -0.02em !important;
  color: #0f0b1f !important;
}

html body #authModal #authTitle::before {
  content: "" !important;
  display: block !important;
  width: 58px !important;
  height: 58px !important;
  margin: 0 auto 16px !important;
  border-radius: 18px !important;
  background: #fff url("/logo-mark.png") center / 72% no-repeat !important;
  box-shadow: 0 14px 30px -12px rgba(104, 71, 238, .55), 0 0 0 1px rgba(104, 71, 238, .10) !important;
}

html body #authModal #authLead {
  margin: 0 0 22px !important;
  text-align: center !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  color: #6b6880 !important;
}

html body #authModal #authNotice:empty {
  display: none !important;
}

html body #authModal #authNotice {
  margin: 0 0 14px !important;
}

html body #authModal #authNotice>*,
html body #authModal #authNotice .notice {
  border-radius: 14px !important;
  padding: 12px 14px !important;
  background: #f5f3ff !important;
  border: 1px solid rgba(104, 71, 238, 0.22) !important;
  color: #1f1638 !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
}

html body #authModal #authNotice .notice a {
  color: #6847ee !important;
  font-weight: 700 !important;
  text-decoration: underline !important;
}

html body #authModal #authForm .input {
  margin: 0 0 14px !important;
}

html body #authModal #authForm .input label {
  display: block !important;
  margin: 0 0 7px 2px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  color: #8a86a0 !important;
}

html body #authModal #authForm .input input {
  width: 100% !important;
  height: 50px !important;
  padding: 0 16px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(104, 71, 238, .16) !important;
  background: #f5f3ff !important;
  color: #141026 !important;
  font: 500 15px Inter, system-ui, sans-serif !important;
  outline: none !important;
  box-shadow: none !important;
  transition: border-color .2s, box-shadow .2s, background-color .2s !important;
}

html body #authModal #authForm .input input::placeholder {
  color: #a7a3bb !important;
}

html body #authModal #authForm .input input:focus {
  border-color: #6847ee !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(104, 71, 238, .15) !important;
}

html body #authModal #authSubmit {
  width: 100% !important;
  height: 52px !important;
  margin: 8px 0 0 !important;
  border: 0 !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #7f62ff, #6847ee 55%, #5a39e0) !important;
  color: #fff !important;
  font: 700 15px Inter, system-ui, sans-serif !important;
  letter-spacing: 0 !important;
  box-shadow: 0 16px 30px -12px rgba(104, 71, 238, .75), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
  transition: transform .2s, box-shadow .2s, opacity .2s !important;
}

html body #authModal #authSubmit:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 20px 36px -12px rgba(104, 71, 238, .85), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
}

html body #authModal #authSubmit:active {
  transform: translateY(0) scale(.99) !important;
}

html body #authModal #authSubmit:disabled {
  opacity: .7 !important;
  cursor: progress !important;
  transform: none !important;
}

html body #authModal #authForm .switchauth {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  margin: 16px 0 0 !important;
  font-size: 14px !important;
  color: #6b6880 !important;
}

html body #authModal #switchAuth {
  border: 0 !important;
  padding: 2px 4px !important;
  background: none !important;
  color: #6847ee !important;
  font: 700 14px Inter, system-ui, sans-serif !important;
  cursor: pointer !important;
  border-radius: 8px !important;
}

html body #authModal #switchAuth:hover {
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

html body #authModal #authForm>div[style] {
  color: #8a86a0 !important;
  margin-top: 14px !important;
}

html body #authModal #authForm>div[style] a {
  color: #6847ee !important;
}

html body #authModal #closeAuth {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 38px !important;
  height: 38px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: rgba(104, 71, 238, .08) !important;
  color: transparent !important;
  font-size: 0 !important;
  box-shadow: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color .2s, transform .2s !important;
}

html body #authModal #closeAuth::before {
  content: "\00d7" !important;
  font: 400 24px/1 Inter, system-ui, sans-serif !important;
  color: #4e2fcc !important;
}

html body #authModal #closeAuth:hover {
  background: rgba(104, 71, 238, .15) !important;
  transform: rotate(90deg) !important;
}

html body #authModal #authEmail:-webkit-autofill,
html body #authModal #authPassword:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 40px #f5f3ff inset !important;
  -webkit-text-fill-color: #141026 !important;
}

@media (max-width: 480px) {
  html body #authModal #authForm.modal {
    padding: 30px 20px 20px !important;
    border-radius: 24px !important;
  }

  html body #authModal #authTitle {
    font-size: 23px !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  html body #authModal.open #authForm.modal,
  html body #authModal #authForm.modal::before {
    animation: none !important;
  }
}

/* stage1 fix: beat legacy !important rules */
html body #authModal #closeAuth {
  height: 38px !important;
  width: 38px !important;
  border: 0 !important;
  color: transparent !important;
  overflow: hidden !important
}

html body #authModal #closeAuth::before {
  color: #4e2fcc !important
}

html body #authModal #authForm .switchauth #switchAuth {
  text-decoration: none !important
}

html body #authModal #authForm>div[style] a {
  text-decoration: none !important
}

html body #authModal #authTitle,
html body #authModal #authLead,
html body #authModal #authSubmit,
html body #authModal .switchauth {
  transition: opacity 0.16s ease, transform 0.16s ease !important;
}