* {
  box-sizing: border-box;
}

body {
  height: 100vh;
  margin: 0;
  font-family: Arial, sans-serif;
  overflow: hidden;
  background: #0f2027;
}

/* Animated Blobs */
.blob {
  position: absolute;
  width: 300px;
  height: 300px;
  background: linear-gradient(45deg, #00c6ff, #0072ff);
  border-radius: 50%;
  filter: blur(80px);
  animation: float 12s infinite ease-in-out;
}

.blob1 { top: -50px; left: -50px; }
.blob2 { bottom: -60px; right: -40px; animation-delay: 3s; }
.blob3 { top: 40%; left: 60%; animation-delay: 6s; }

@keyframes float {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(40px, -40px); }
}

/* Form Card */
form {
  position: relative;
  z-index: 10;
  width: 360px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  padding: 25px;
  border-radius: 14px;
  color: white;
  margin: auto;
  top: 50%;
  transform: translateY(-50%);
}

h2 {
  text-align: center;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
  position: relative;
}

label {
  font-size: 14px;
}

input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 2px solid transparent;
  outline: none;
  margin-top: 4px;
}

input:focus {
  border-color: #00c6ff;
}

input.success { border-color: #2ecc71; }
input.error { border-color: #e74c3c; }

.toggle {
  position: absolute;
  right: 10px;
  top: 36px;
  cursor: pointer;
}

.counter {
  font-size: 11px;
}

.error {
  color: #ff7675;
  font-size: 12px;
  display: none;
}

.caps {
  color: #fdcb6e;
  font-size: 12px;
}

/* Strength Bar */
.strength-bar {
  display: flex;
  gap: 4px;
  margin-top: 6px;
}

.strength-bar span {
  flex: 1;
  height: 6px;
  background: #555;
  border-radius: 4px;
}

.strength-text {
  font-size: 12px;
}

button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 6px;
  background: #00c6ff;
  color: black;
  cursor: pointer;
  transition: transform 0.3s;
}

button:disabled {
  background: gray;
  cursor: not-allowed;
}

button:hover:not(:disabled) {
  transform: scale(1.05);
}

.success-msg {
  text-align: center;
  color: #2ecc71;
  margin-top: 10px;
}
