body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #667eea, #764ba2);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.form-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 2rem;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  color: #fff;
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

input {
  padding: 0.7rem;
  margin-bottom: 0.5rem;
  border: none;
  border-radius: 8px;
  outline: none;
  transition: 0.3s;
}

input:focus {
  transform: scale(1.03);
  box-shadow: 0 0 8px rgba(255,255,255,0.6);
}

input.valid {
  border: 2px solid #10b981;
}

input.invalid {
  border: 2px solid #ef4444;
}

.error-msg {
  color: #ff6b6b;
  font-size: 0.75rem;
  margin-bottom: 0.5rem;
}

button {
  padding: 0.8rem;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}

button:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

#password-strength {
  font-size: 0.8rem;
  font-weight: bold;
}

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

.password-box input {
  width: 100%;
  padding: 0.6rem;
  padding-right: 40px; /* space for icon */
  border: 1px solid #ccc;
  border-radius: 6px;
}

#toggle-pass {
  position: absolute;
  right: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  color: #6b7280;
}

/* hover effect */
#toggle-pass:hover {
  color: #111;
}

