/* register.css — User Registration Page */

:root {
  --primary-color: #1AA5AE;
  --primary-light: rgba(26, 165, 174, 0.1);
  --secondary-color: #0d6efd;
  --success-color: #198754;
  --danger-color: #dc3545;
  --light-bg: #f8fdf8;
  --card-shadow: 0 8px 30px rgba(26, 165, 174, 0.08);
  --transition: all 0.3s ease;
}

body {
  background: linear-gradient(135deg, #f3fdf3 0%, #eef7ff 100%);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
}

.registration-container {
  max-width: 900px;
  margin: 2rem auto;
}

.registration-card {
  background: white;
  border-radius: 20px;
  box-shadow: var(--card-shadow);
  border: none;
  overflow: hidden;
  transition: var(--transition);
}

.card-header {
  background: linear-gradient(135deg, var(--primary-color), #148a91);
  border-radius: 0 !important;
  padding: 1.5rem 2rem;
  position: relative;
}

.card-header .back-btn {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  text-decoration: none;
  font-size: 14px;
}

.card-header .back-btn:hover {
  opacity: 0.9;
}

.card-body {
  padding: 2.5rem;
}

/* Progress Steps */
.progress-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 2rem 0 3rem;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 50px;
  right: 50px;
  height: 3px;
  background: #e9ecef;
  z-index: 1;
}

.step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  border: 3px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  font-weight: 600;
  color: #6c757d;
  transition: var(--transition);
  font-size: 18px;
}

.step.active .step-circle {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 0 0 6px rgba(26, 165, 174, 0.2);
}

.step.completed .step-circle {
  background: var(--success-color);
  border-color: var(--success-color);
  color: white;
}

.step.completed .step-circle i {
  display: block;
}

.step.completed .step-circle span {
  display: none;
}

.step-circle i {
  display: none;
}

.step-label {
  font-size: 14px;
  font-weight: 600;
  color: #6c757d;
}

.step.active .step-label {
  color: var(--primary-color);
}

.form-section {
  animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.form-control,
.form-select,
.select2-container--default .select2-selection--single {
  border: 2px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 16px;
  transition: var(--transition);
  height: auto;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(26, 165, 174, 0.25);
}

.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-label .text-danger {
  color: var(--danger-color) !important;
}


.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), #148a91);
  border: none;
  border-radius: 10px;
  padding: 12px 30px;
  font-weight: 600;
  transition: var(--transition);
  font-size: 16px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(26, 165, 174, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  border-radius: 10px;
  padding: 12px 30px;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Role Selection Cards */
.role-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 15px;
  margin: 2rem 0;
}

.role-card {
  background: white;
  border: 2px solid #e9ecef;
  border-radius: 15px;
  padding: 20px 15px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  height: 100%;
}

.role-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(26, 165, 174, 0.1);
}

.role-card.selected {
  border-color: var(--primary-color);
  background: var(--primary-light);
  box-shadow: 0 10px 25px rgba(26, 165, 174, 0.1);
}

.role-icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 10px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.role-card h6 {
  font-weight: 600;
  margin-bottom: 5px;
  font-size: 14px;
}

.role-card p {
  font-size: 12px;
  color: #6c757d;
  margin: 0;
  line-height: 1.4;
}

/* Navigation Buttons */
.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e9ecef;
}

/* Error Styling */
.error {
  color: var(--danger-color);
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.error-message {
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {

  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  75% {
    transform: translateX(5px);
  }
}

.input-error {
  border-color: var(--danger-color) !important;
}

.input-error:focus {
  border-color: var(--danger-color) !important;
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

/* Success Message */
.success-message {
  background: linear-gradient(135deg, #d4edda, #c3e6cb);
  border: 1px solid #c3e6cb;
  border-radius: 15px;
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1.5rem;
}

.avatar-upload {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.avatar-preview {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e9ecef;
}

.avatar-upload-label {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.avatar-upload-label:hover {
  background: #148a91;
  transform: scale(1.1);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
  .card-body {
    padding: 1.5rem;
  }

  .role-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .progress-steps {
    margin: 1rem 0 2rem;
  }

  .progress-steps::before {
    display: none;
  }

  .step {
    flex-direction: column;
  }

  .step-circle {
    margin-bottom: 5px;
  }

  .step-label {
    font-size: 12px;
  }

  .form-navigation {
    flex-direction: column;
    gap: 10px;
  }

  .form-navigation .btn {
    width: 100%;
  }
}

@media (max-width: 576px) {
  .role-cards {
    grid-template-columns: 1fr;
  }

  .card-body {
    padding: 1rem;
  }

  .registration-container {
    margin: 1rem auto;
  }
}

/* Loading Spinner */
.spinner-btn .fa-spinner {
  margin-right: 8px;
}

/* Terms Checkbox */
.terms-checkbox {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  margin: 20px 0;
}

/* Section Titles */
.section-title {
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-light);
}

/* Form Row Spacing */
.form-row-spacing {
  margin-bottom: 1.5rem;
}

.section-title {
  background: #eef4ff;
  padding: 10px;
  font-weight: 600;
  border-left: 5px solid var(--primary-color);
  margin-top: 35px;
}
