/* ==========================================================================
   3Bee Register Page - 1:1 Figma Custom Enhancements & Micro-Interactions
   ========================================================================== */

/* Warm ambient background glow matching Figma Group 1 vector mesh */
.bg-figma-mesh {
  background-color: #FFFFFF;
  background-image: 
    radial-gradient(ellipse 120% 80% at 50% 100%, rgba(244, 197, 66, 0.45) 0%, rgba(228, 150, 9, 0.28) 35%, rgba(255, 255, 255, 0.1) 75%, #FFFFFF 100%),
    radial-gradient(circle at 10% 90%, rgba(244, 197, 66, 0.25) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(228, 150, 9, 0.25) 0%, transparent 50%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Step transition animations */
.step-section {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Error state enhancements */
.has-error .input-container {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

.has-error .error-message {
  display: block !important;
  animation: shake 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* Custom Checkbox (Figma 1:1) */
.custom-checkbox {
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

#terms:checked + .custom-checkbox {
  background-color: #E49609;
  border-color: #E49609;
}

#terms:checked + .custom-checkbox::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #FFFFFF;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* OTP Boxes Error State */
.otp-box-error {
  border-color: #EF4444 !important;
  background-color: #FEF2F2 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
  animation: shake 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Button Loading State */
.btn-loading {
  position: relative;
  cursor: wait !important;
  opacity: 0.85 !important;
}

.spinner {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  border: 2.5px solid rgba(17, 24, 39, 0.25);
  border-radius: 50%;
  border-top-color: #111827;
  animation: spin 0.6s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Hide helper class */
.hidden {
  display: none !important;
}
