/* Registration Form Styling */
.registerContainer {
  min-height: calc(100vh - 120px); /* Account for navbar and footer */
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 2rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.formCard {
  border: none;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  width: 100%;
  max-width: 900px;
}

.formCardBody {
  padding: 2rem !important;
}

.formTitle {
  color: #2c3e50;
  font-weight: 700;
  margin-bottom: 1.5rem;
  position: relative;
  font-size: 1.75rem;
}

.formTitle::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #6c757d);
  margin: 0.5rem auto;
  border-radius: 2px;
}

.accountTypeSelector {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.accountTypeSelector .form-label {
  color: white !important;
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.accountTypeSelector .form-select {
  background-color: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.5rem;
}

.accountTypeSelector .form-select option {
  background-color: #007bff;
  color: white;
}

.sectionCard {
  border: 1px solid #e9ecef;
  border-radius: 10px;
  margin-bottom: 1.25rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sectionCard:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.sectionHeader {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-bottom: 1px solid #dee2e6;
  padding: 0.75rem 1.25rem;
}

.sectionHeader h5 {
  color: #495057;
  font-weight: 600;
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 1.1rem;
}

.sectionHeader h5::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: #007bff;
  margin-right: 0.75rem;
  border-radius: 2px;
}

.sectionBody {
  padding: 1.25rem;
}

.formGroup {
  margin-bottom: 1rem;
}

.formLabel {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.required {
  color: #dc3545;
  margin-left: 0.25rem;
  font-size: 0.8rem;
}

.formControl {
  border: 2px solid #e9ecef;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  height: auto;
}

.formControl:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.1);
}

.formControl.isInvalid {
  border-color: #dc3545;
}

.passwordRequirements {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 0.6rem;
  margin-top: 0.4rem;
  font-size: 0.8rem;
}

.passwordRequirements strong {
  display: block;
  margin-bottom: 0.4rem;
  color: #495057;
}

.passwordRequirements ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem;
}

.passwordRequirements li {
  position: relative;
  padding-left: 1rem;
  color: #6c757d;
  font-size: 0.75rem;
}

.passwordRequirements li::before {
  content: '✓';
  color: #28a745;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 0.7rem;
}

.phoneInput {
  position: relative;
}

.phoneIcon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #6c757d;
  font-size: 0.9rem;
}

.phoneInput .formControl {
  padding-left: 2.25rem;
}

.businessFields {
  background: linear-gradient(135deg, #e3f2fd 0%, #f8f9fa 100%);
  border: 2px solid #bbdefb;
  border-radius: 12px;
  padding: 0;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.businessHeader {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  color: white;
  padding: 0.75rem 1.25rem;
  margin: 0;
}

.businessHeader h5 {
  color: white !important;
  margin: 0;
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.businessHeader h5::before {
  content: '🏢';
  margin-right: 0.75rem;
  font-size: 1rem;
}

.businessSectionBody {
  padding: 1.25rem;
  background: white;
}

.submitButton {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: none;
  border-radius: 8px;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  margin-top: 1rem;
}

.submitButton:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.submitButton:disabled {
  background: #6c757d;
  transform: none;
  box-shadow: none;
}

.loadingSpinner {
  margin-right: 0.5rem;
}

.errorAlert {
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-left: 4px solid #dc3545;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.loginLink {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  font-size: 0.9rem;
}

.loginLink:hover {
  color: #0056b3;
  text-decoration: underline;
}

.taxRateGroup {
  position: relative;
}

.taxRateGroup .input-group-text {
  background: #e9ecef;
  border: 2px solid #e9ecef;
  border-left: none;
  color: #495057;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
}

.helpText {
  font-size: 0.75rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .registerContainer {
    padding: 1rem 0;
  }
  
  .formCardBody {
    padding: 1.25rem !important;
  }
  
  .formTitle {
    font-size: 1.5rem;
  }
  
  .sectionBody, .businessSectionBody {
    padding: 1rem;
  }
  
  .passwordRequirements ul {
    grid-template-columns: 1fr;
  }
  
  .accountTypeSelector {
    padding: 0.75rem;
  }
}

@media (max-width: 576px) {
  .formTitle {
    font-size: 1.35rem;
  }
  
  .formCardBody {
    padding: 1rem !important;
  }
  
  .submitButton {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Form Animations */
.fadeIn {
  animation: fadeIn 0.5s ease-in;
}

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

.slideIn {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Focus States */
.formControl:focus,
.form-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 0.15rem rgba(0, 123, 255, 0.25);
}

/* Custom Select Styling */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
}

/* Input Group Enhancements */
.input-group .form-control {
  border-right: none;
}

.input-group .input-group-text {
  border-left: none;
}

/* Text Muted Improvements */
.text-muted {
  font-size: 0.75rem !important;
  color: #6c757d !important;
  margin-top: 0.25rem;
} 