/* Enhanced Registration Styles */
.register-body {
  background: linear-gradient(
    135deg,
    var(--pastel-blue) 0%,
    var(--pastel-yellow) 50%,
    var(--pastel-pink) 100%
  );
  min-height: 100vh;
  font-family: 'Lexie Readable', 'Inter', sans-serif;
}

.register-container {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.register-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  position: relative;
}

.register-header {
  background: linear-gradient(45deg, var(--primary-brand), var(--accent-blue));
  color: white;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.register-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.register-subtitle {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

/* Progress Indicator */
.progress-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.progress-step {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  transition: var(--transition);
  position: relative;
}

.progress-step.active {
  background: var(--secondary-brand);
  color: var(--primary-brand);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 186, 58, 0.4);
}

.progress-step.completed {
  background: var(--accent-green);
  color: white;
}

.progress-step.inactive {
  background: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.7);
}

.progress-line {
  width: 60px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.progress-line.completed::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent-green);
  animation: progressFill 0.5s ease-out;
}

@keyframes progressFill {
  from {
    width: 0;
  }

  to {
    width: 100%;
  }
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Form Steps */
.form-step {
  display: none;
  padding: 2rem;
  animation: slideIn 0.5s ease-out;
}

.form-step.active {
  display: block;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-title {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-brand);
  margin-bottom: 1rem;
  text-align: center;
}

.step-description {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

/* Floating Label Input Groups */
.floating-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.floating-input {
  width: 100%;
  padding: 1rem 1rem 1rem 3rem;
  font-size: 1.1rem;
  margin-bottom: 15px;
  border: 2px solid #e0e7ff;
  border-radius: 12px;
  background: white;
  transition: var(--transition);
  font-family: 'Lexie Readable', sans-serif;
  letter-spacing: 0.02em;
}

.floating-input:focus {
  outline: none;
  border-color: var(--primary-brand);
  box-shadow: 0 0 0 3px rgba(22, 91, 77, 0.1);
}

.floating-input:focus + .floating-label,
.floating-input:not(:placeholder-shown) + .floating-label {
  transform: translateY(-1.9rem) scale(0.85);
  color: var(--primary-brand);
  font-weight: 700;
}

.floating-label {
  position: absolute;
  left: 3rem;
  top: 1.05rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  pointer-events: none;
  background: white;
  padding: 0 0.5rem;
  font-family: 'Fredoka', sans-serif;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 1.3rem;
  font-size: 1.2rem;
  color: var(--primary-brand);
  z-index: 1;
}

/* Password field with toggle */
.password-toggle {
  position: absolute;
  right: 1rem;
  top: 40%;
  transform: translateY(-50%) scale(0.85);
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 2;
}

.password-toggle:hover {
  color: var(--primary-brand);
  transform: translateY(-50%) scale(1);
}

/* Validation Styles */
.floating-input.valid {
  border-color: var(--accent-green);
}

.floating-input.invalid {
  border-color: var(--accent-coral);
}

.validation-message {
  position: absolute;
  z-index: 1;
  font-size: 0.87rem;
  margin-top: -0.45rem;
  margin-left: 0.4rem;
  padding-left: 3rem;
  font-weight: 600;
}

.validation-message.success {
  color: var(--accent-green);
}

.validation-message.error {
  color: var(--accent-coral);
}

/* Terms and Conditions */
.terms-container {
  background: var(--pastel-green);
  border-radius: 12px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border: 2px solid transparent;
  transition: var(--transition);
}

.terms-container.checked {
  border-color: var(--accent-green);
  background: rgba(112, 225, 123, 0.1);
}

.terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.terms-checkbox input[type='checkbox'] {
  width: 20px;
  height: 20px;
  margin-top: 0.2rem;
  accent-color: var(--accent-green);
}

.terms-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  font-family: 'Lexie Readable', sans-serif;
}

.terms-text a {
  color: var(--primary-brand);
  font-weight: 700;
  text-decoration: underline;
}

/* Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background: var(--bg-light);
}

.nav-btn-form {
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-weight: 700;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Fredoka', sans-serif;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-back {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--text-secondary);
}

.btn-back:hover {
  background: var(--text-secondary);
  color: white;
  transform: translateY(-2px);
}

.btn-next,
.btn-submit {
  background: linear-gradient(
    45deg,
    var(--accent-coral),
    var(--secondary-brand)
  );
  color: white;
  box-shadow: var(--shadow-soft);
}

.btn-next:hover,
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  filter: brightness(1.1);
}

.btn-submit {
  background: linear-gradient(45deg, var(--accent-green), var(--primary-brand));
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: var(--shadow-soft) !important;
  filter: none !important;
}

.btn-back:disabled,
.btn-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: var(--shadow-soft) !important;
  filter: none !important;
}

.btn-submit .fa-spinner {
  animation: spin 1s linear infinite;
}

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

/* Success Animation */
.success-animation {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.success-animation.show {
  display: block;
  animation: bounceIn 0.8s ease-out;
}

@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);
  }
}

.success-icon {
  font-size: 4rem;
  color: var(--accent-green);
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.1);
  }
}

.confetti {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--secondary-brand);
  animation: confettiFall 3s linear infinite;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .register-title {
    font-size: 2rem;
  }

  .progress-container {
    gap: 0.5rem;
  }

  .progress-step {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .progress-line {
    width: 40px;
  }

  .form-step {
    padding: 1.5rem;
  }

  .floating-input {
    padding: 0.875rem 0.875rem 0.875rem 2.5rem;
    font-size: 1rem;
  }

  .floating-label {
    left: 2.5rem;
    font-size: 1rem;
  }

  .input-icon {
    left: 0.75rem;
    font-size: 1.1rem;
  }

  .form-navigation {
    padding: 1.5rem;
    flex-direction: column;
    gap: 1rem;
  }

  .nav-btn-form {
    width: 100%;
    justify-content: center;
  }

  .validation-message {
    margin-left: 0;
  }
}

@media (max-width: 576px) {
  .register-header {
    padding: 1.5rem 1rem;
  }

  .register-title {
    font-size: 1.8rem;
  }

  .progress-labels {
    font-size: 0.8rem;
  }

  .step-title {
    font-size: 1.5rem;
  }

  .input-icon {
    position: absolute;
    top: 1.27rem;
  }
}

@media (max-width: 520px) {
  .validation-message {
    font-size: 0.72rem;
    margin-left: -32px;
  }
}

@media (max-width: 381px) {
  .validation-message {
    margin-left: -38px;
  }
}

@media (max-width: 364px) {
  .validation-message {
    font-size: 0.68rem;
  }
}

@media (max-width: 349px) and (min-width: 320px) {
  .validation-message {
    font-size: 0.59rem;
  }
}