* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, #0f172a, #020617);
  color: white;
}

.container {
  width: 340px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(15px);
  box-shadow: 0 0 30px rgba(0,0,0,0.6);
  animation: fadeIn 0.6s ease;
}

h2 {
  margin-bottom: 20px;
  font-weight: 600;
}

.input-box {
  position: relative;
}

.input-box input {
  width: 100%;
  padding: 12px 40px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: #e5e7eb;
  color: black;
  transition: 0.3s;
}

.input-box input:focus {
  box-shadow: 0 0 10px #3b82f6;
}

.icon {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #555;
}

.toggle {
  position: absolute;
  right: 12px;
  top: 12px;
  color: #555;
  cursor: pointer;
}

.meter {
  height: 8px;
  background: #1f2937;
  border-radius: 10px;
  margin-top: 15px;
  overflow: hidden;
}

.bar {
  height: 100%;
  width: 0%;
  border-radius: 10px;
  transition: width 0.4s ease-in-out, background 0.3s ease, box-shadow 0.3s ease;
}

.very-weak {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, #ef4444, #f87171);
  box-shadow: 0 0 10px #ef4444;
  transition: width 0.4s ease-in-out, background 0.3s ease, box-shadow 0.3s ease-out;
}

.weak {
  height: 100%;
  width: 50%;
  background: linear-gradient(90deg, #f97316, #fb923c);
  box-shadow: 0 0 10px #f97316;
  transition: width 0.4s ease-in-out, background 0.3s ease, box-shadow 0.3s ease;
}

.medium {
  height: 100%;
  width: 75%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  box-shadow: 0 0 10px #f59e0b;
  transition: width 0.4s ease-in-out, background 0.3s ease, box-shadow 0.3s ease;
}

.strong {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #22c55e, #4ade80);
  box-shadow: 0 0 12px #22c55e;
  transition: width 0.4s ease-in-out, background 0.3s ease, box-shadow 0.3s ease;
}

.strength-text {
  margin-top: 10px;
  font-size: 14px;
  color: #cbd5f5;
}

.requirements {
  margin-top: 15px;
  list-style: none;
  font-size: 13px;
}

.requirements li {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #94a3b8;
  transition: 0.3s;
}

.valid {
  color: #22c55e;
}

.valid i {
  color: #22c55e;
}

.invalid {
  color: #ef4444;
}

.invalid i {
  color: #ef4444;
}

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