/* Registration Success Page Styles */

.success-card {
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border: 2px solid #ffd700;
  border-radius: 16px;
  padding: 50px 40px;
  max-width: 600px;
  box-shadow: 
    0 0 40px rgba(255, 215, 0, 0.2),
    0 10px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 215, 0, 0.1);
  position: relative;
  overflow: hidden;
  animation: cardEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.success-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #ffd700, #ffed4e, #ffd700, #ffed4e);
  border-radius: 16px;
  z-index: -1;
  opacity: 0;
  animation: borderGlow 4s ease-in-out infinite;
}

@keyframes borderGlow {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.3; }
}

.successicon-wrapper {
  text-align: center;
  margin-bottom: 25px;
  position: relative;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: iconPulse 2.5s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  position: relative;
  z-index: 5;
}

@keyframes iconPulse {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.4);
  }
  50% { 
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(255, 215, 0, 0.5);
  }
}

.success-icon::after {
  content: '✓';
  color: #000;
  font-weight: bold;
  font-size: 40px;
}

.success-title {
  color: #ffd700;
  text-align: center;
  font-size: 28px;
  margin-bottom: 10px;
  font-weight: 600;
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
  animation: titleFade 0.8s ease-out 0.2s both;
}

@keyframes titleFade {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-subtitle {
  color: #c9c9c9;
  text-align: center;
  font-size: 16px;
  margin-bottom: 30px;
  font-weight: 400;
  animation: titleFade 0.8s ease-out 0.4s both;
}

.message-box {
  background: rgba(255, 215, 0, 0.08);
  border: 1px solid rgba(255, 215, 0, 0.25);
  border-radius: 12px;
  padding: 20px 25px;
  animation: titleFade 0.8s ease-out 0.6s both;
}

.message-box p {
  color: #d4d4d4;
  text-align: center;
  line-height: 1.7;
  font-size: 15px;
  margin: 0;
}

/* Fireworks particles */
.particle {
  position: fixed;
  width: 3px;
  height: 3px;
  background: #ffd700;
  border-radius: 50%;
  pointer-events: none;
  animation: particleFloat 2.5s ease-out infinite;
  opacity: 0;
  z-index: 1000;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0);
  }
  15% {
    opacity: 1;
    transform: translate(var(--tx), var(--ty)) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(calc(var(--tx) * 2.5), calc(var(--ty) * 2.5)) scale(0);
  }
}

/* Background ambient particles */
.bg-particle {
  position: fixed;
  width: 2px;
  height: 2px;
  background: #ffd700;
  border-radius: 50%;
  pointer-events: none;
  animation: bgFloat 20s linear infinite;
  opacity: 0.2;
  z-index: 1;
}

@keyframes bgFloat {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.2;
  }
  90% {
    opacity: 0.2;
  }
  100% {
    transform: translateY(-100px) translateX(50px) rotate(360deg);
    opacity: 0;
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .success-card {
    padding: 40px 25px;
  }

  .success-title {
    font-size: 24px;
  }

  .success-subtitle {
    font-size: 14px;
  }

  .success-icon {
    width: 70px;
    height: 70px;
  }

  .success-icon::after {
    font-size: 35px;
  }

  .message-box {
    padding: 18px 20px;
  }

  .message-box p {
    font-size: 14px;
  }
}