/* Modern Professional Auth Design with Extensive animationss */

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --dark-gradient: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.auth-page {
  font-family: 'Poppins', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: #0a0a0a;
}

/* Cosmic Particle Background (completely new) */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 10% 20%, rgba(40, 92, 220, 0.15), transparent 40%),
    radial-gradient(1000px 700px at 90% 30%, rgba(255, 120, 70, 0.12), transparent 45%),
    radial-gradient(800px 600px at 50% 80%, rgba(30, 200, 180, 0.12), transparent 35%),
    linear-gradient(135deg, #0b0b12 0%, #0e1230 60%, #0a0d22 100%);
  animation: auroraShift 18s ease-in-out infinite;
}

/* Starfield layers using box-shadow clusters */
.animated-bg::before,
.animated-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
}

/* Distant stars - many, slow drift */
.animated-bg::before {
  box-shadow:
    20vw 10vh 0 0 rgba(255,255,255,0.6),
    35vw 25vh 0 0 rgba(255,255,255,0.7),
    50vw 5vh 0 0 rgba(255,255,255,0.6),
    65vw 18vh 0 0 rgba(255,255,255,0.5),
    80vw 30vh 0 0 rgba(255,255,255,0.7),
    10vw 60vh 0 0 rgba(255,255,255,0.5),
    25vw 70vh 0 0 rgba(255,255,255,0.6),
    40vw 50vh 0 0 rgba(255,255,255,0.6),
    55vw 75vh 0 0 rgba(255,255,255,0.7),
    70vw 65vh 0 0 rgba(255,255,255,0.5),
    85vw 55vh 0 0 rgba(255,255,255,0.7),
    15vw 35vh 0 0 rgba(255,255,255,0.6),
    28vw 15vh 0 0 rgba(255,255,255,0.6),
    42vw 28vh 0 0 rgba(255,255,255,0.7),
    58vw 12vh 0 0 rgba(255,255,255,0.6),
    76vw 22vh 0 0 rgba(255,255,255,0.7),
    92vw 18vh 0 0 rgba(255,255,255,0.6),
    8vw 82vh 0 0 rgba(255,255,255,0.5),
    22vw 86vh 0 0 rgba(255,255,255,0.6),
    36vw 88vh 0 0 rgba(255,255,255,0.7),
    52vw 90vh 0 0 rgba(255,255,255,0.5),
    66vw 84vh 0 0 rgba(255,255,255,0.6),
    78vw 88vh 0 0 rgba(255,255,255,0.7),
    90vw 82vh 0 0 rgba(255,255,255,0.6),
    12vw 48vh 0 0 rgba(255,255,255,0.6),
    26vw 42vh 0 0 rgba(255,255,255,0.7),
    38vw 36vh 0 0 rgba(255,255,255,0.6),
    54vw 32vh 0 0 rgba(255,255,255,0.5),
    68vw 40vh 0 0 rgba(255,255,255,0.6),
    82vw 38vh 0 0 rgba(255,255,255,0.7);
  animation: starDriftSlow 60s linear infinite, twinkle 3s ease-in-out infinite;
  opacity: 0.85;
}

/* Near stars - fewer, larger, faster drift */
.animated-bg::after {
  width: 3px;
  height: 3px;
  box-shadow:
    12vw 20vh 0 0 rgba(255,255,255,0.9),
    28vw 12vh 0 0 rgba(255,255,255,0.8),
    44vw 26vh 0 0 rgba(255,255,255,0.9),
    60vw 8vh 0 0 rgba(255,255,255,0.8),
    76vw 18vh 0 0 rgba(255,255,255,0.9),
    16vw 68vh 0 0 rgba(255,255,255,0.9),
    32vw 72vh 0 0 rgba(255,255,255,0.8),
    48vw 64vh 0 0 rgba(255,255,255,0.9),
    64vw 70vh 0 0 rgba(255,255,255,0.8),
    80vw 62vh 0 0 rgba(255,255,255,0.9);
  animation: starDriftFast 38s linear infinite, twinkle 2.5s ease-in-out infinite;
  opacity: 0.95;
}

@keyframes auroraShift {
  0%, 100% { filter: hue-rotate(0deg); }
  50% { filter: hue-rotate(20deg); }
}

@keyframes starDriftSlow {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-4vw, -2vh, 0); }
}

@keyframes starDriftFast {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-8vw, -4vh, 0); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* Particle System (floating sparks and embers) */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
  animation: particleRise 12s linear infinite;
}

/* Variations for diversity */
.particle:nth-child(odd) {
  width: 2px;
  height: 2px;
  background: rgba(255,255,255,0.9);
  animation-duration: 10s;
}
.particle:nth-child(3n) {
  width: 4px;
  height: 4px;
  background: rgba(255,240,180,0.9);
  box-shadow: 0 0 10px rgba(255, 240, 180, 0.6);
  animation-duration: 14s;
}
.particle:nth-child(5n) {
  background: rgba(180,220,255,0.9);
  box-shadow: 0 0 10px rgba(180, 220, 255, 0.6);
  animation-duration: 16s;
}

/* Initial horizontal distribution */
.particle:nth-child(1) { left: 5%; }
.particle:nth-child(2) { left: 12%; }
.particle:nth-child(3) { left: 19%; }
.particle:nth-child(4) { left: 26%; }
.particle:nth-child(5) { left: 33%; }
.particle:nth-child(6) { left: 40%; }
.particle:nth-child(7) { left: 47%; }
.particle:nth-child(8) { left: 54%; }
.particle:nth-child(9) { left: 61%; }
.particle:nth-child(10) { left: 68%; }
.particle:nth-child(11) { left: 75%; }
.particle:nth-child(12) { left: 82%; }
.particle:nth-child(13) { left: 89%; }
.particle:nth-child(14) { left: 96%; }
.particle:nth-child(15) { left: 15%; }
.particle:nth-child(16) { left: 22%; }
.particle:nth-child(17) { left: 29%; }
.particle:nth-child(18) { left: 36%; }
.particle:nth-child(19) { left: 43%; }
.particle:nth-child(20) { left: 50%; }

@keyframes particleRise {
  0%   { transform: translate3d(0, 100vh, 0) scale(0.8); opacity: 0; }
  10%  { opacity: 0.7; }
  50%  { transform: translate3d(6px, 50vh, 0) scale(1); }
  100% { transform: translate3d(-8px, -10vh, 0) scale(0.9); opacity: 0; }
}

/* Remove legacy waves (new background supersedes) */
.wave-container, .wave { display: none !important; }

/* Remove legacy orbs (new background supersedes) */
.orb, .orb-1, .orb-2, .orb-3 { display: none !important; }

/* Remove legacy grid lines */
.grid-lines { display: none !important; }

/* Main Container */
.container {
  position: relative;
  z-index: 10;
}

/* Particles.js container: full-viewport, behind content, above backdrop */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Modern Glass Card */
.auth-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(30px) saturate(150%);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3.5rem 3rem;
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.3),
    0 0 100px rgba(102, 126, 234, 0.1),
    inset 0 0 50px rgba(255, 255, 255, 0.03);
  position: relative;
  overflow: hidden;
  animation: cardEntrance 0.6s ease-out forwards;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes cardEntrance {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.4),
    0 0 150px rgba(102, 126, 234, 0.2),
    inset 0 0 50px rgba(255, 255, 255, 0.05);
}

/* Animated Border Effect - DISABLED FOR PERFORMANCE */
.auth-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent,
    rgba(102, 126, 234, 0.6),
    transparent 30%
  );
  /* Animation disabled - this is very heavy on performance */
  display: none;
}

.auth-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: rgba(10, 10, 10, 0.95);
  border-radius: 28px;
  z-index: 1;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.auth-card > * {
  position: relative;
  z-index: 2;
}

/* Logo animations */
.auth-card img {
  filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
  transition: transform 0.3s ease;
}

.auth-card img:hover {
  transform: scale(1.05);
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 0 20px rgba(102, 126, 234, 0.5));
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(102, 126, 234, 0.7));
  }
}

/* Title Styling */
.auth-title {
  font-size: 2.8rem;
  font-weight: 700;
  background: linear-gradient(135deg, #fff 0%, #667eea 50%, #f5576c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
  position: relative;
}

.auth-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

@keyframes lineExpand {
  0%, 100% { width: 80px; }
  50% { width: 120px; }
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.auth-subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
  animations: fadeInUp 0.8s ease 0.2s both;
}

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

/* Form Group animations */
.form-group {
  animations: fadeInUp 0.8s ease both;
  margin-bottom: 1.5rem;
}

.form-group:nth-child(1) { animations-delay: 0.3s; }
.form-group:nth-child(2) { animations-delay: 0.4s; }
.form-group:nth-child(3) { animations-delay: 0.5s; }
.form-group:nth-child(4) { animations-delay: 0.6s; }
.form-group:nth-child(5) { animations-delay: 0.7s; }
.form-group:nth-child(6) { animations-delay: 0.8s; }
.form-group:nth-child(7) { animations-delay: 0.9s; }
.form-group:nth-child(8) { animations-delay: 1s; }

/* Input Group Styling */
.input-group {
  position: relative;
  overflow: hidden;
}

.input-group-text {
  background: rgba(102, 126, 234, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: none !important;
  border-radius: 15px 0 0 15px !important;
  padding: 0.9rem 1rem !important;
  transition: all 0.3s ease;
}

.input-group:hover .input-group-text,
.input-group:focus-within .input-group-text {
  background: rgba(102, 126, 234, 0.2) !important;
  border-color: rgba(102, 126, 234, 0.5) !important;
}

.input-group-text i {
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text i {
  transform: scale(1.2) rotate(10deg);
  filter: drop-shadow(0 0 8px currentColor);
}

/* Modern Input Fields */
.auth-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-left: none !important;
  border-radius: 0 15px 15px 0 !important;
  padding: 0.9rem 1.2rem !important;
  color: #fff !important;
  font-size: 1rem !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.auth-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.auth-input:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.auth-input:focus {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(102, 126, 234, 0.5) !important;
  box-shadow: 
    0 0 0 3px rgba(102, 126, 234, 0.1),
    0 8px 25px rgba(102, 126, 234, 0.2) !important;
  transform: translateY(-2px);
}

.auth-input:focus::placeholder {
  transform: translateX(5px);
  opacity: 0.6;
}

/* Animated Button */
.auth-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: 200% 200%;
  border: none;
  border-radius: 15px;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  animations: fadeInUp 0.8s ease 1.1s both;
}

.auth-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.auth-btn:hover::before {
  width: 400px;
  height: 400px;
}

.auth-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
  background-position: 100% 0;
}

.auth-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.auth-btn i {
  transition: transform 0.3s ease;
  display: inline-block;
}

.auth-btn:hover i {
  transform: translateX(5px) scale(1.1);
}

/* Checkbox Styling */
.form-check {
  animations: fadeInUp 0.8s ease 1s both;
}

.form-check-input {
  width: 1.3em;
  height: 1.3em;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.form-check-input:hover {
  border-color: rgba(102, 126, 234, 0.6);
  transform: scale(1.1);
}

.form-check-input:checked {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-color: #667eea;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
}

.form-check-input:checked::after {
  content: 'âœ“';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 0.9em;
  font-weight: bold;
  animations: checkPop 0.3s ease;
}

@keyframes checkPop {
  0% { transform: translate(-50%, -50%) scale(0); }
  50% { transform: translate(-50%, -50%) scale(1.3); }
  100% { transform: translate(-50%, -50%) scale(1); }
}

.form-check-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.3s ease;
  user-select: none;
}

.form-check-label:hover {
  color: #fff;
}

/* Modern Links */
.auth-link {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  display: inline-block;
}

.auth-link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.auth-link:hover {
  color: #764ba2;
  transform: translateX(3px);
}

.auth-link:hover::before {
  width: 100%;
}

/* Alert Messages */
.alert {
  background: rgba(245, 87, 108, 0.1) !important;
  border: 1px solid rgba(245, 87, 108, 0.3) !important;
  border-radius: 15px;
  color: #ff6b6b !important;
  padding: 1rem 1.5rem;
  backdrop-filter: blur(10px);
  animations: alertSlide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.alert::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animations: alertShine 2s infinite;
}

@keyframes alertSlide {
  0% {
    opacity: 0;
    transform: translateX(-100%);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes alertShine {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Floating Elements */
.floating-element {
  position: absolute;
  pointer-events: none;
  opacity: 0.1;
  animations: float-random 20s ease-in-out infinite;
}

.floating-element:nth-child(1) {
  top: 10%;
  left: 10%;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.5), transparent);
  animations-duration: 15s;
}

.floating-element:nth-child(2) {
  top: 60%;
  right: 10%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(245, 87, 108, 0.5), transparent);
  animations-duration: 20s;
  animations-delay: 5s;
}

@keyframes float-random {
  0%, 100% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(30px, -30px) rotate(90deg);
  }
  50% {
    transform: translate(-20px, 20px) rotate(180deg);
  }
  75% {
    transform: translate(20px, 30px) rotate(270deg);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .auth-card {
    padding: 2.5rem 1.8rem;
    /* margin: 1rem; */
    border-radius: 25px;
  }
  
  .auth-title {
    font-size: 2.2rem;
  }
  
  .auth-subtitle {
    font-size: 0.95rem;
  }
  
  .auth-input,
  .input-group-text {
    padding: 0.8rem 1rem !important;
  }
  
  .auth-btn {
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
  }
  
  .orb {
    filter: blur(60px);
  }
  
  /* Scale down rotating squares on mobile */
  .big-square {
    width: 250px;
    height: 250px;
  }
  
  .small-square {
    transform: scale(0.7);
  }
  
  .corner-square {
    width: 100px;
    height: 100px;
  }
  
  .corner-square-1,
  .corner-square-3 {
    left: -50px;
  }
  
  .corner-square-2,
  .corner-square-4 {
    right: -50px;
  }
  
  .corner-square-1,
  .corner-square-2 {
    top: -50px;
  }
  
  .corner-square-3,
  .corner-square-4 {
    bottom: -50px;
  }
}

@media (max-width: 576px) {
  .auth-card {
    padding: 2rem 1.5rem;
  }
  
  .auth-title {
    font-size: 1.8rem;
  }
  
  .form-group {
    margin-bottom: 1.2rem;
  }
}

/* Loading animations */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.loading-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(102, 126, 234, 0.2);
  border-top-color: #667eea;
  border-radius: 50%;
  animations: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Rotating Squares System */
.rotating-squares {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

/* Big Central Rotating Square */
.big-square {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%) rotate(0deg);
  animations: bigSquareRotate 30s linear infinite;
}

.big-square::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.15) 0%, 
    rgba(118, 75, 162, 0.15) 50%, 
    rgba(245, 87, 108, 0.15) 100%);
  border: 3px solid rgba(102, 126, 234, 0.3);
  border-radius: 30px;
  box-shadow: 
    0 0 60px rgba(102, 126, 234, 0.4),
    inset 0 0 60px rgba(102, 126, 234, 0.2);
  animation: bigSquareRotate 4s ease-in-out infinite;
}

.big-square::after {
  content: '';
  position: absolute;
  inset: 20px;
  background: transparent;
  border: 2px solid rgba(245, 87, 108, 0.3);
  border-radius: 20px;
  animation: bigSquareRotate 20s linear infinite reverse;
}

@keyframes bigSquareRotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes bigSquarePulse {
  0%, 100% { 
    box-shadow: 
      0 0 60px rgba(102, 126, 234, 0.4),
      inset 0 0 60px rgba(102, 126, 234, 0.2);
  }
  50% { 
    box-shadow: 
      0 0 100px rgba(102, 126, 234, 0.6),
      inset 0 0 100px rgba(102, 126, 234, 0.3);
  }
}

/* Small Orbiting Squares */
.small-square {
  position: absolute;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.2), 
    rgba(245, 87, 108, 0.2));
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.5);
  animation: floatRotate 15s ease-in-out infinite;
  backdrop-filter: blur(5px);
}

/* Small Square 1 - Top */
.small-square-1 {
  top: 15%;
  left: 50%;
  width: 80px;
  height: 80px;
  transform: translate(-50%, -50%);
  animation: orbit1 25s linear infinite, rotateSquare 8s linear infinite;
}

/* Small Square 2 - Right */
.small-square-2 {
  top: 50%;
  right: 15%;
  width: 60px;
  height: 60px;
  transform: translate(50%, -50%);
  animation: orbit2 20s linear infinite reverse, rotateSquare 6s linear infinite;
}

/* Small Square 3 - Bottom */
.small-square-3 {
  bottom: 15%;
  left: 50%;
  width: 70px;
  height: 70px;
  transform: translate(-50%, 50%);
  animation: orbit3 30s linear infinite, rotateSquare 10s linear infinite;
}

/* Small Square 4 - Left */
.small-square-4 {
  top: 50%;
  left: 15%;
  width: 65px;
  height: 65px;
  transform: translate(-50%, -50%);
  animation: orbit4 22s linear infinite reverse, rotateSquare 7s linear infinite;
}

/* Small Square 5 - Top Right */
.small-square-5 {
  top: 25%;
  right: 25%;
  width: 50px;
  height: 50px;
  animation: orbit5 18s linear infinite, rotateSquare 5s linear infinite reverse;
}

/* Small Square 6 - Top Left */
.small-square-6 {
  top: 25%;
  left: 25%;
  width: 55px;
  height: 55px;
  animation: orbit6 28s linear infinite reverse, rotateSquare 9s linear infinite;
}

/* Small Square 7 - Bottom Right */
.small-square-7 {
  bottom: 25%;
  right: 25%;
  width: 45px;
  height: 45px;
  animation: orbit7 24s linear infinite, rotateSquare 6s linear infinite;
}

/* Small Square 8 - Bottom Left */
.small-square-8 {
  bottom: 25%;
  left: 25%;
  width: 58px;
  height: 58px;
  animation: orbit8 26s linear infinite reverse, rotateSquare 8s linear infinite reverse;
}

/* Additional floating squares */
.small-square-9 {
  top: 40%;
  left: 35%;
  width: 40px;
  height: 40px;
  animation: orbit9 16s linear infinite, rotateSquare 4s linear infinite;
}

.small-square-10 {
  top: 60%;
  right: 35%;
  width: 48px;
  height: 48px;
  animation: orbit10 19s linear infinite reverse, rotateSquare 7s linear infinite;
}

@keyframes rotateSquare {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.2); }
  100% { transform: rotate(360deg) scale(1); }
}

@keyframes orbit1 {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(180px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(180px) rotate(-360deg); }
}

@keyframes orbit2 {
  0% { transform: translate(50%, -50%) rotate(0deg) translateX(160px) rotate(0deg); }
  100% { transform: translate(50%, -50%) rotate(360deg) translateX(160px) rotate(-360deg); }
}

@keyframes orbit3 {
  0% { transform: translate(-50%, 50%) rotate(0deg) translateX(200px) rotate(0deg); }
  100% { transform: translate(-50%, 50%) rotate(360deg) translateX(200px) rotate(-360deg); }
}

@keyframes orbit4 {
  0% { transform: translate(-50%, -50%) rotate(0deg) translateX(170px) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg) translateX(170px) rotate(-360deg); }
}

@keyframes orbit5 {
  0% { transform: rotate(0deg) translateX(120px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(120px) rotate(-360deg); }
}

@keyframes orbit6 {
  0% { transform: rotate(0deg) translateX(140px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(140px) rotate(-360deg); }
}

@keyframes orbit7 {
  0% { transform: rotate(0deg) translateX(130px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(130px) rotate(-360deg); }
}

@keyframes orbit8 {
  0% { transform: rotate(0deg) translateX(150px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(150px) rotate(-360deg); }
}

@keyframes orbit9 {
  0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

@keyframes orbit10 {
  0% { transform: rotate(0deg) translateX(110px) rotate(0deg); }
  100% { transform: rotate(360deg) translateX(110px) rotate(-360deg); }
}

@keyframes floatRotate {
  0%, 100% {
    filter: hue-rotate(0deg) brightness(1);
  }
  50% {
    filter: hue-rotate(60deg) brightness(1.3);
  }
}

/* Corner Accent Squares */
.corner-square {
  position: fixed;
  width: 150px;
  height: 150px;
  border: 3px solid rgba(102, 126, 234, 0.2);
  border-radius: 20px;
  z-index: 1;
  pointer-events: none;
}

.corner-square-1 {
  top: -75px;
  left: -75px;
  animation: cornerRotate1 20s linear infinite;
}

.corner-square-2 {
  top: -75px;
  right: -75px;
  animation: cornerRotate2 25s linear infinite reverse;
}

.corner-square-3 {
  bottom: -75px;
  left: -75px;
  animation: cornerRotate1 22s linear infinite reverse;
}

.corner-square-4 {
  bottom: -75px;
  right: -75px;
  animation: cornerRotate2 27s linear infinite;
}

@keyframes cornerRotate1 {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes cornerRotate2 {
  0% { transform: rotate(0deg); border-color: rgba(102, 126, 234, 0.2); }
  50% { border-color: rgba(245, 87, 108, 0.3); }
  100% { transform: rotate(360deg); border-color: rgba(102, 126, 234, 0.2); }
}

/* Success Checkmark animation */
.success-checkmark {
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border-radius: 50%;
  display: block;
  stroke-width: 3;
  stroke: #4ade80;
  stroke-miterlimit: 10;
  box-shadow: inset 0 0 0 #4ade80;
  animation: fill 0.4s ease-in-out 0.4s forwards, scale 0.3s ease-in-out 0.9s both;
}

.success-checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 3;
  stroke-miterlimit: 10;
  stroke: #4ade80;
  fill: none;
  animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
  100% { stroke-dashoffset: 0; }
}

@keyframes scale {
  0%, 100% { transform: none; }
  50% { transform: scale3d(1.1, 1.1, 1); }
}

@keyframes fill {
  100% { box-shadow: inset 0 0 0 30px #4ade80; }
}
/* Compact registration adjustments for mobile */
@media (max-width: 576px) {
  .register-compact .auth-card {
    padding: 1rem 1rem;
  }
  .register-compact .auth-title {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
  }
  .register-compact .auth-subtitle {
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
  }
  .register-compact .form-group {
    margin-bottom: 0.6rem;
  }
  .register-compact .input-group-text {
    padding: 0.4rem 0.6rem;
  }
  .register-compact .auth-input {
    padding: 0.45rem 0.75rem;
    height: 40px;
  }
  .register-compact #passwordStrength {
    margin-top: 0.3rem !important;
  }
  .register-compact .auth-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.95rem;
  }
  .register-compact .sponsor-help {
    display: none;
  }
  .register-compact .security-info {
    display: none;
  }
}
/* Compact success page adjustments for mobile */
@media (max-width: 576px) {
  .success-compact .success-card {
    padding: 1rem 1rem;
    margin: 0.5rem;
  }
  .success-compact .congrats-text {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
  }
  .success-compact .welcome-text,
  .success-compact .congratulation-text {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
  .success-compact .credentials-header {
    font-size: 1rem;
    margin: 0.9rem 0 0.6rem;
  }
  .success-compact .info-card {
    padding: 0.75rem;
    margin: 0.5rem 0;
    border-width: 1px;
  }
  .success-compact .info-value {
    font-size: 1rem;
  }
  .success-compact .note-card {
    padding: 0.7rem;
    margin: 0.8rem 0;
  }
  .success-compact .login-btn {
    padding: 0.7rem 1rem;
    font-size: 1rem;
  }

  /* Hide non-essential decorative elements on mobile */
  .success-compact .sparkle,
  .success-compact .particles,
  .success-compact .orb,
  .success-compact .grid-lines,
  .success-compact .wave-container,
  .success-compact .additional-info {
    display: none !important;
  }
}