/* Giriş / kayıt — özel imleç + gönder preloader (landing ile uyumlu) */

.hd-auth-cursor {
  visibility: hidden;
  pointer-events: none;
}

body.hd-cursor-auth .hd-auth-cursor {
  visibility: visible;
}

.hd-auth-cursor__ring,
.hd-auth-cursor__dot {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 10700;
  will-change: transform;
  border-radius: 50%;
  transform-origin: center center;
}

.hd-auth-cursor__ring {
  width: 38px;
  height: 38px;
  margin: 0;
  border: 2px solid rgba(167, 139, 250, 0.78);
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.15),
    0 0 28px rgba(139, 92, 246, 0.22);
  background: rgba(10, 8, 20, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hd-auth-cursor__dot {
  width: 7px;
  height: 7px;
  margin: 0;
  background: linear-gradient(135deg, #e9d5ff 0%, #f472b6 55%, #93c5fd 100%);
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.55);
}

body.hd-cursor-auth:not(.hd-cursor-auth--text) {
  cursor: none !important;
}

body.hd-cursor-auth:not(.hd-cursor-auth--text) a,
body.hd-cursor-auth:not(.hd-cursor-auth--text) button,
body.hd-cursor-auth:not(.hd-cursor-auth--text) [role="button"],
body.hd-cursor-auth:not(.hd-cursor-auth--text) label,
body.hd-cursor-auth:not(.hd-cursor-auth--text) summary,
body.hd-cursor-auth:not(.hd-cursor-auth--text) input,
body.hd-cursor-auth:not(.hd-cursor-auth--text) textarea,
body.hd-cursor-auth:not(.hd-cursor-auth--text) select {
  cursor: none !important;
}

body.hd-cursor-auth.hd-cursor-auth--text {
  cursor: auto;
}

body.hd-cursor-auth.hd-cursor-auth--text input,
body.hd-cursor-auth.hd-cursor-auth--text textarea,
body.hd-cursor-auth.hd-cursor-auth--text select {
  cursor: text !important;
}

/* Auth gönder — preloader */
.hd-auth-submit-btn {
  position: relative;
  min-height: 3rem;
  overflow: hidden;
  transition: box-shadow 0.45s ease, transform 0.35s ease;
}

.hd-auth-submit-btn:disabled {
  opacity: 1;
  pointer-events: none;
  cursor: progress;
}

.hd-auth-submit-btn__inner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 2.75rem;
}

.hd-auth-submit-btn__label,
.hd-auth-submit-btn__busy {
  grid-area: 1 / 1;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
}

.hd-auth-submit-btn__label {
  font-weight: inherit;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 0 0.35rem;
}

.hd-auth-submit-btn__busy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.15rem 0;
  opacity: 0;
  transform: scale(0.92) translateY(4px);
  filter: blur(4px);
  pointer-events: none;
}

.hd-auth-submit-btn.is-sending .hd-auth-submit-btn__label {
  opacity: 0;
  transform: scale(0.94) translateY(-6px);
  filter: blur(3px);
}

.hd-auth-submit-btn.is-sending .hd-auth-submit-btn__busy {
  opacity: 1;
  transform: scale(1) translateY(0);
  filter: blur(0);
}

.hd-auth-submit-btn__glow {
  position: absolute;
  width: 120%;
  height: 180%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 120deg, transparent, rgba(167, 139, 250, 0.35), rgba(244, 114, 182, 0.25), transparent 55%);
  animation: hd-auth-submit-glow-spin 2.8s linear infinite;
  opacity: 0;
  pointer-events: none;
}

.hd-auth-submit-btn.is-sending .hd-auth-submit-btn__glow {
  opacity: 1;
}

@keyframes hd-auth-submit-glow-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hd-auth-submit-btn__waves {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.35rem;
  height: 1.35rem;
  z-index: 1;
}

.hd-auth-submit-btn__wave {
  width: 5px;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #e9d5ff 0%, #f472b6 55%, rgba(147, 197, 253, 0.85) 100%);
  transform-origin: center bottom;
  animation: hd-auth-submit-wave 0.95s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.35);
}

.hd-auth-submit-btn__wave:nth-child(2) {
  animation-delay: 0.12s;
}

.hd-auth-submit-btn__wave:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes hd-auth-submit-wave {
  0%, 100% {
    transform: scaleY(0.28);
    opacity: 0.45;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.hd-auth-submit-btn__hint {
  position: relative;
  z-index: 1;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.88);
  animation: hd-auth-submit-hint-pulse 1.6s ease-in-out infinite;
}

.hd-auth-submit-btn--outline .hd-auth-submit-btn__hint {
  color: rgba(248, 250, 252, 0.92);
}

@keyframes hd-auth-submit-hint-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.hd-auth-submit-btn.hd-btn-primary.is-sending,
.hd-auth-submit-btn.btn-outline-light.is-sending {
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.35),
    0 10px 36px -8px rgba(139, 92, 246, 0.4),
    0 0 48px -12px rgba(236, 72, 153, 0.2);
}

.hd-auth-submit-btn.btn-outline-light.is-sending {
  box-shadow:
    0 0 0 1px rgba(196, 181, 253, 0.5),
    0 0 36px -6px rgba(139, 92, 246, 0.45),
    0 0 28px -8px rgba(244, 114, 182, 0.15);
}

@media (prefers-reduced-motion: reduce) {
  .hd-auth-submit-btn__glow,
  .hd-auth-submit-btn__wave,
  .hd-auth-submit-btn__hint {
    animation: none !important;
  }
  .hd-auth-submit-btn.is-sending .hd-auth-submit-btn__busy {
    filter: none;
  }
}
