body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.subtitle {
  color: #94a3b8;
  margin-bottom: 20px;
}

.card {
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  width: 420px;
  transition: 0.3s ease;
}

.input-group {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}

input {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #020617;
  color: white;
}

button {
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.generate-btn {
  width: 100%;
  margin: 15px 0;
  background: #2563eb;
  color: white;
}

.generate-btn:hover {
  background: #1d4ed8;
}

.strength-bar {
  height: 10px;
  background: #1e293b;
  border-radius: 10px;
  overflow: hidden;
}

#strengthFill {
  height: 100%;
  width: 0%;
  background: red;
  transition: 0.4s ease;
}

.strength-text {
  margin-top: 8px;
  font-size: 14px;
}

.rules {
  list-style: none;
  padding: 0;
  font-size: 14px;
}

.rules li {
  margin-bottom: 5px;
}

.back {
  margin-top: 20px;
  color: #3b82f6;
  text-decoration: none;
}

.back:hover {
  text-decoration: underline;
}

/* Floating animation */
@keyframes float1 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(80px,60px); }
}
@keyframes float2 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-100px,40px); }
}
@keyframes float3 {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(60px,-80px); }
}

.animate-float1 { animation: float1 18s ease-in-out infinite; }
.animate-float2 { animation: float2 22s ease-in-out infinite; }
.animate-float3 { animation: float3 26s ease-in-out infinite; }
