/* Password strength indicator */
.password-strength {
  margin-top: 0.5rem;
  font-size: 0.75rem;
}

.strength-meter {
  height: 4px;
  background-color: #e9ecef;
  border-radius: 10px;
  margin: 0.3rem 0;
  overflow: hidden;
}

.strength-bar {
  height: 100%;
  width: 0%;
  transition: all 0.3s ease;
  border-radius: 10px;
}

.strength-weak .strength-bar {
  width: 25%;
  background-color: #dc3545;
}

.strength-fair .strength-bar {
  width: 50%;
  background-color: #fd7e14;
}

.strength-good .strength-bar {
  width: 75%;
  background-color: #ffc107;
}

.strength-strong .strength-bar {
  width: 100%;
  background-color: #28a745;
}

.password-requirements {
  margin-top: 0.5rem;
  font-size: 0.65rem;
}

.requirement {
  display: flex;
  align-items: center;
  margin-bottom: 0.2rem;
  color: #6c757d;
}

.requirement-icon {
  margin-right: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #6c757d;
  display: inline-block;
}

.requirement.met .requirement-icon {
  background-color: #28a745;
}

.requirement.met {
  color: #28a745;
}

/* SweetAlert2 dark mode fixes */
.dark-mode .swal2-toast {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border: 1px solid #374151 !important;
}

.dark-mode .swal2-toast .swal2-title {
  color: #f8fafc !important;
}

.dark-mode .swal2-toast .swal2-content {
  color: #cbd5e1 !important;
}

.dark-mode .swal2-toast .swal2-close {
  color: #94a3b8 !important;
}

.dark-mode .swal2-toast .swal2-close:hover {
  color: #f8fafc !important;
}

/* Ensure no backdrop interference */
.swal2-container {
  pointer-events: none !important;
}

.swal2-toast {
  pointer-events: auto !important;
}