/**
 * Registration Form Custom Styling
 * Author: GitHub Copilot
 * Date: May 8, 2025
 */

/* Main container styling */
.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(249, 249, 249, 0.9), rgba(245, 245, 245, 0.9));
  background-size: cover;
  position: relative;
  padding: 2rem 1rem;
  overflow: hidden;
  /* CSS pattern background instead of image */
  background-image: radial-gradient(circle at 25px 25px, rgba(96, 44, 102, 0.05) 2px, transparent 0),
    radial-gradient(circle at 75px 75px, rgba(96, 44, 102, 0.05) 2px, transparent 0);
  background-size: 100px 100px;
}

/* Decorative elements */
.register-container::before,
.register-container::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  z-index: -1;
}

.register-container::before {
  background: radial-gradient(circle, rgba(96, 44, 102, 0.15), transparent 70%);
  top: -100px;
  right: -100px;
}

.register-container::after {
  background: radial-gradient(circle, rgba(96, 44, 102, 0.1), transparent 70%);
  bottom: -100px;
  left: -100px;
}

/* Floating geometric shapes */
.register-container .shape-1,
.register-container .shape-2,
.register-container .shape-3,
.register-container .shape-4 {
  position: absolute;
  z-index: -1;
  opacity: 0.4;
}

/* Add floating shape divs dynamically with JavaScript */

/* Card styling with improved aesthetics */
.register-card {
  width: 100%;
  max-width: 900px;
  border-radius: 15px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin: 0 auto;
  background-color: #fff;
  position: relative;
  border: 1px solid rgba(230, 230, 230, 0.7);
}

/* Card header accent line */
.register-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #602c66, #9057a3, #602c66);
  z-index: 1;
}

/* Card body padding */
.register-card .card-body {
  padding: 2.5rem;
  position: relative;
}

/* Form styling */
.register-form .form-label {
  font-weight: 500;
  color: #566a7f;
  margin-bottom: 0.25rem;
}

.register-form .form-control {
  border-radius: 8px;
  border-color: #e0e0e0;
  padding: 0.625rem 1rem;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
}

.register-form .form-control:focus {
  border-color: #602c66;
  box-shadow: 0 0 0 0.25rem rgba(96, 44, 102, 0.1);
  transform: translateY(-1px);
}

/* Progress bar styling - Using the same style as in ui-progress.blade.php */
.progress {
  height: 0.5rem;
  background-color: rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
  border-radius: 0.25rem;
  overflow: hidden;
}

.progress .progress-bar {
  background-color: #602c66;
  height: 0.5rem;
}

/* Step indicators with enhanced styling */
.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding: 0.5rem;
  background-color: rgba(240, 240, 240, 0.5);
  border-radius: 10px;
}

.step-indicator .step {
  flex: 1;
  text-align: center;
  padding: 0.5rem 0;
  font-weight: 500;
  color: #566a7f;
  position: relative;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.step-indicator .step.active {
  color: #fff;
  background-color: #602c66;
  box-shadow: 0 4px 10px rgba(96, 44, 102, 0.3);
  transform: translateY(-2px);
}

.step-indicator .step.completed {
  color: #602c66;
  background-color: rgba(96, 44, 102, 0.1);
}

/* Form section styling with subtle pattern */
.form-section {
  margin-bottom: 1.5rem;
  position: relative;
  background-color: #fcfcfc;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
}

.form-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* CSS pattern background instead of image */
  background-image: linear-gradient(45deg, rgba(96, 44, 102, 0.03) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(96, 44, 102, 0.03) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(96, 44, 102, 0.03) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(96, 44, 102, 0.03) 75%);
  background-size: 20px 20px;
  opacity: 0.3;
  z-index: -1;
  border-radius: 10px;
}

.form-section-title {
  color: #602c66;
  font-weight: 600;
  font-size: 1.2rem;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid rgba(96, 44, 102, 0.1);
  position: relative;
}

.form-section-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: #602c66;
}

/* Form row spacing */
.form-row {
  margin-bottom: 1rem;
}

/* Button styling with enhanced effects */
.btn-register {
  background: linear-gradient(135deg, #602c66, #7d3987);
  border: none;
  color: #fff;
  font-weight: 500;
  padding: 0.625rem 1.75rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(96, 44, 102, 0.3);
}

.btn-register:hover {
  background: linear-gradient(135deg, #4d2452, #6a3073);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(96, 44, 102, 0.4);
}

.btn-previous {
  background-color: #f8f9fa;
  border: 1px solid #dfe3e7;
  color: #566a7f;
  font-weight: 500;
  padding: 0.625rem 1.75rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-previous:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* Gender options styling */
.gender-options {
  display: flex;
  gap: 1.5rem;
}

/* Error text styling */
.error-text {
  display: block;
  color: #ff3e1d;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Custom radio buttons with primary color */
.form-check-input:checked {
  background-color: #602c66;
  border-color: #602c66;
}

/* Link styling */
a {
  color: #602c66;
  text-decoration: none;
}

a:hover {
  color: #4d2452;
  text-decoration: underline;
}

/* Form title styling */
h4.text-center,
.app-brand-text.text-primary {
  color: #602c66 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .register-card {
    max-width: 100%;
  }

  .register-card .card-body {
    padding: 1.5rem;
  }

  .gender-options {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Additional responsive adjustments */
@media (min-width: 768px) {
  .form-row .col-md-6:first-child {
    padding-right: 0.75rem;
  }

  .form-row .col-md-6:last-child {
    padding-left: 0.75rem;
  }

  .form-row .col-md-4:not(:first-child):not(:last-child) {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .form-row .col-md-4:first-child {
    padding-right: 0.5rem;
  }

  .form-row .col-md-4:last-child {
    padding-left: 0.5rem;
  }
}

/* Add animation for form transitions */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section {
  animation: fadeIn 0.5s ease-out;
}

/* Add JS to create floating shapes dynamically */
