/* ===== Registration Wizard Styling ===== */

.wizard-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #F5F7FB 0%, #FFFFFF 100%);
  margin-top: 80px;
  padding-bottom: 100px;
}

.wizard-card {
  width: 100%;
  max-width: 500px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 40px 32px;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

/* Progress Bar */
.wizard-progress {
  margin-bottom: 32px;
}

.progress-bar-wrapper {
  width: 100%;
  height: 4px;
  background-color: #E5E7EB;
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #F97316 0%, #EA580C 100%);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Step Content */
.wizard-step {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

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

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

.step-content {
  display: flex;
  flex-direction: column;
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 8px;
  line-height: 1.2;
}

.step-subtitle {
  font-size: 14px;
  color: #6B7280;
  margin-bottom: 24px;
}

/* Form Fields */
.step-field {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
  margin-bottom: 8px;
  display: block;
}

.form-control-lg,
.form-select {
  height: 48px;
  font-size: 16px;
  padding: 12px 16px;
  border: 2px solid #D1D5DB;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

.form-control-lg:focus,
.form-select:focus {
  border-color: #F97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
  outline: none;
}

.form-control-lg::placeholder {
  color: #9CA3AF;
}

.input-group-lg .form-control {
  height: 48px;
  font-size: 16px;
}

.input-group-lg .btn {
  height: 48px;
  padding: 12px 16px;
  font-size: 14px;
}

/* Role Cards */
.role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

.role-card {
  padding: 24px;
  border: 2px solid #E5E7EB;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
  background-color: #F9FAFB;
}

.role-card:hover {
  border-color: #F97316;
  background-color: #FEF3E2;
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.15);
}

.role-card.selected {
  border-color: #F97316;
  background-color: #FFF3E0;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.role-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
}

.role-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 4px;
}

.role-card p {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
}

/* Buttons */
.btn-lg {
  height: 48px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 24px;
  letter-spacing: 0.3px;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background-color: #F97316;
  border-color: #F97316;
  color: #FFFFFF;
}

.btn-primary:hover {
  background-color: #EA580C;
  border-color: #EA580C;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(249, 115, 22, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline-secondary {
  border-color: #D1D5DB;
  color: #6B7280;
}

.btn-outline-secondary:hover {
  border-color: #9CA3AF;
  background-color: #F3F4F6;
}

/* Button Layout */
.wizard-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.wizard-buttons .btn-block {
  width: 100%;
}

.wizard-buttons .btn-outline-secondary {
  grid-column: 1;
}

.wizard-buttons .btn-primary {
  grid-column: 2;
}

/* Optional Section */
.optional-section {
  background-color: #F9FAFB;
  padding: 16px;
  border-radius: 8px;
  margin-top: 20px;
}

.optional-section h5 {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

/* Profile Upload */
.profile-upload {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border: 2px dashed #D1D5DB;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  background-color: #FFFFFF;
}

.profile-upload:hover {
  border-color: #F97316;
  background-color: #FEF3E2;
}

.profile-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: #F3F4F6;
  border: 3px solid #D1D5DB;
  font-size: 32px;
  transition: all 0.25s ease;
}

.profile-upload:hover .profile-avatar {
  border-color: #F97316;
  background-color: #FFF3E0;
  font-size: 40px;
}

.profile-avatar[style*="background-image"] {
  border-color: #F97316;
  background-size: cover;
  background-position: center;
}

.profile-text {
  font-size: 14px;
  font-weight: 500;
  color: #1F2937;
}

.profile-upload:hover .profile-text {
  color: #F97316;
}

/* Wizard Footer */
.wizard-footer {
  text-align: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}

.wizard-footer p {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
}

.wizard-footer a {
  color: #F97316;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wizard-footer a:hover {
  color: #EA580C;
}

/* ===== Simple Login Page ===== */

.login-simple-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, #F5F7FB 0%, #FFFFFF 100%);
  margin-top: 80px;
  padding-bottom: 100px;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  padding: 40px 32px;
  animation: slideUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}

.login-title {
  font-size: 28px;
  font-weight: 700;
  color: #1F2937;
  margin-bottom: 8px;
}

.login-subtitle {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.login-extras {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0 24px 0;
  gap: 12px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #6B7280;
  cursor: pointer;
  user-select: none;
}

.remember-me input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #F97316;
}

.forgot-password {
  font-size: 14px;
  color: #F97316;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.forgot-password:hover {
  color: #EA580C;
}

.login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #E5E7EB;
}

.login-footer p {
  font-size: 14px;
  color: #6B7280;
  margin: 0;
}

.login-footer a {
  color: #F97316;
  text-decoration: none;
  transition: color 0.2s ease;
}

.login-footer a:hover {
  color: #EA580C;
}

.login-badges {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.badge-item {
  font-size: 12px;
  color: #10B981;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
  .wizard-card,
  .login-card {
    padding: 28px 20px;
    border-radius: 12px;
  }

  .step-title {
    font-size: 20px;
  }

  .role-cards {
    grid-template-columns: 1fr;
  }

  .wizard-buttons {
    grid-template-columns: 1fr;
  }

  .wizard-buttons .btn-outline-secondary {
    grid-column: 1;
    order: 2;
  }

  .wizard-buttons .btn-primary {
    grid-column: 1;
    order: 1;
  }

  .login-extras {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .wizard-container,
  .login-simple-container {
    padding: 12px;
    margin-top: 70px;
  }

  .wizard-card,
  .login-card {
    padding: 24px 16px;
  }

  .step-title {
    font-size: 18px;
  }

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

  .form-control-lg,
  .form-select {
    height: 44px;
    font-size: 16px; /* Prevents zoom on iOS */
  }

  .btn-lg {
    height: 44px;
    font-size: 15px;
  }

  .login-title {
    font-size: 24px;
  }
}
