/* Password Strength Meter Styles */
.password-strength-container {
  margin-top: 8px;
  margin-bottom: 16px;
}

.password-strength-meter {
  height: 6px;
  background-color: #e9ecef;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

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

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

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

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

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

.password-strength-bar.strong {
  background-color: #20c997;
  width: 100%;
}

.password-strength-text {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.password-strength-text.very-weak {
  color: #dc3545;
}

.password-strength-text.weak {
  color: #fd7e14;
}

.password-strength-text.fair {
  color: #ffc107;
}

.password-strength-text.good {
  color: #28a745;
}

.password-strength-text.strong {
  color: #20c997;
}

.password-requirements {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 12px;
  margin-top: 8px;
  font-size: 0.875rem;
}

.password-requirements h6 {
  margin-bottom: 8px;
  font-weight: 600;
  color: #495057;
}

.password-requirements ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.password-requirements li {
  margin-bottom: 4px;
  position: relative;
  padding-left: 20px;
}

.password-requirements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.password-requirements li.requirement-met::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2328a745'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}

.password-requirements li.requirement-unmet::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc3545'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}

.password-requirements li.requirement-met {
  color: #28a745;
}

.password-requirements li.requirement-unmet {
  color: #6c757d;
}

/* Animation for strength bar */
.password-strength-bar {
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    width: 0%;
  }
  to {
    width: var(--strength-width);
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .password-requirements {
    padding: 10px;
    font-size: 0.8rem;
  }
  
  .password-strength-text {
    font-size: 0.8rem;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .password-requirements {
    background-color: #343a40;
    border-color: #495057;
    color: #f8f9fa;
  }
  
  .password-requirements h6 {
    color: #e9ecef;
  }
  
  .password-requirements li.requirement-unmet {
    color: #adb5bd;
  }
}
