/* Animations */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-10px) rotate(1deg);
  }
  66% {
    transform: translateY(5px) rotate(-1deg);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.6), 0 0 40px rgba(147, 51, 234, 0.3);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes checkIn {
  0% {
    transform: scale(0.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Floating accents */
.floating-orb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.floating-orb:nth-child(1) {
  width: 80px;
  height: 80px;
  background: linear-gradient(45deg, #3b82f6, #8b5cf6);
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-orb:nth-child(2) {
  width: 60px;
  height: 60px;
  background: linear-gradient(45deg, #10b981, #06b6d4);
  top: 20%;
  right: 15%;
  animation-delay: 2s;
}

.floating-orb:nth-child(3) {
  width: 100px;
  height: 100px;
  background: linear-gradient(45deg, #f59e0b, #ef4444);
  bottom: 15%;
  left: 15%;
  animation-delay: 4s;
}

.floating-orb:nth-child(4) {
  width: 70px;
  height: 70px;
  background: linear-gradient(45deg, #8b5cf6, #ec4899);
  bottom: 25%;
  right: 10%;
  animation-delay: 1s;
}

/* Glassmorphism cards */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dark .glass-card {
  background: rgba(31, 41, 55, 0.15);
  border-color: rgba(55, 65, 81, 0.35);
}

.glass-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
}

.dark .glass-card:hover {
  border-color: rgba(75, 85, 99, 0.45);
}

/* Buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to right, #2563eb, #9333ea, #ec4899) !important;
  color: #ffffff !important;
  font-weight: 600;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-size: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  transform: scale(1.05) translateY(-1px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.12), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.45);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-gradient {
  padding: 0.75rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  transition: all 0.3s ease;
  transform: translateZ(0);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gradient:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px -10px rgba(59, 130, 246, 0.35);
}

.btn-success {
  background: linear-gradient(to right, #22c55e, #0ea5e9);
}

.btn-success:hover {
  background: linear-gradient(to right, #16a34a, #0284c7);
}

/* Stepper */
.step-indicator {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  border: 2px solid rgba(209, 213, 219, 0.8);
  color: #1f2937;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
}

.dark .step-indicator {
  border-color: rgba(75, 85, 99, 0.6);
  background: rgba(31, 41, 55, 0.8);
  color: #e5e7eb;
}

.step-indicator.active {
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 15px 25px -10px rgba(99, 102, 241, 0.6);
  animation: pulse-glow 2s infinite;
}

.step-indicator.completed {
  background: linear-gradient(to right, #10b981, #059669);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 15px 25px -10px rgba(16, 185, 129, 0.5);
}

.step-connector {
  flex: 1 1 auto;
  height: 0.25rem;
  margin: 0 0.75rem;
  border-radius: 9999px;
  background: rgba(229, 231, 235, 0.9);
  transition: all 0.4s ease;
}

.dark .step-connector {
  background: rgba(55, 65, 81, 0.8);
}

.step-connector.active {
  background: linear-gradient(to right, #3b82f6, #8b5cf6);
  box-shadow: 0 4px 10px -4px rgba(99, 102, 241, 0.45);
}

/* Utility delays */
.animate-delay-100 {
  animation-delay: 100ms;
}

.animate-delay-200 {
  animation-delay: 200ms;
}

.animate-delay-300 {
  animation-delay: 300ms;
}

.animate-delay-400 {
  animation-delay: 400ms;
}

.animate-delay-500 {
  animation-delay: 500ms;
}

/* Shimmer effect */
.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200px 100%;
  animation: shimmer 2s infinite;
}

/* Checkbox helpers */
.register-checkbox-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Responsive helpers */
@media (max-width: 768px) {
  .floating-orb {
    display: none;
  }
}
