*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  background: linear-gradient(135deg, #1f1c2c, #928dab);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.container {
  width: 90%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 8px 32px rgba(0,0,0,0.37);
  backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 40px 30px;
  animation: fadeIn 0.5s ease-in;
  border: 1px solid rgba(255,255,255,0.1);
}

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

h2 {
  text-align: center;
  color: #ffffff;
  margin-bottom: 40px;
  letter-spacing: 1px;
  font-size: 1.5rem;
}

#pwdOutput {
  width: 100%;
  padding: 14px;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: monospace;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}

button {
  background: linear-gradient(135deg, #ff6ec4, #7873f5);
  color: #fff;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.2s ease;
  float: right;
}

button:hover {
  transform: scale(1.05);
  background: linear-gradient(135deg, #fc67fa, #5e61f4);
}

input[type="range"] {
  width: 100%;
  margin-top: 40px;
  appearance: none;
  background: #ddd;
  height: 6px;
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 22px;
  width: 22px;
  border-radius: 50%;
  background: #ff33cc;
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

h3 {
  margin-top: 20px;
  background-color: #ffffff;
  color: #333;
  display: inline-block;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: bold;
}
