body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #eceff4;
  margin: 0;
}

.container {
  background-color: #ffffff;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  width: 90%;
  max-width: 400px;
}

h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #2e3440;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

#password {
  width: 100%;
  padding: 0.8rem 2.5rem 0.8rem 1rem;
  border: 2px solid #d8dee9;
  border-radius: 6px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease;
}

.toggle-password-icon {
  position: absolute;
  right: 1rem;
  cursor: pointer;
  user-select: none;
  color: #4c566a;
}

#password:focus {
  border-color: #5e81ac;
  outline: none;
}

#strength-text {
  margin-top: 1.5rem;
  margin-bottom: 0;
  font-size: 1.1rem;
  color: #2e3440;
  font-weight: bold;
}

#strength-text span {
  font-weight: bold;
  transition: color 0.3s ease;
}

#requirements-list {
  list-style-type: none;
  padding: 0;
  margin: 1.5rem 0 0;
  text-align: left;
}

#requirements-list li {
  display: flex;
  align-items: center;
  margin-bottom: 0.75rem;
  color: #4c566a;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

#requirements-list .icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #d8dee9;
  border-radius: 50%;
  margin-right: 0.75rem;
  position: relative;
  transition: all 0.3s ease;
}

#requirements-list li.valid {
  color: #2e3440;
  text-decoration: line-through;
}

#requirements-list li.valid .icon {
  border-color: green;
  background-color: green;
}

#requirements-list li.valid .icon::before {
  content: '✔';
  color: white;
  font-size: 12px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Strength-based styling */
.weak {
  color: #bf616a;
}

.medium {
  color: #ebcb8b;
}

.strong {
  color: #a3be8c;
}

#toggle-requirements {
  margin-top: 1rem;
  cursor: pointer;
  color: #5e81ac;
  font-size: 0.9rem;
  text-decoration: underline;
}
