* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  display: flex;
  justify-content: center;
  align-items: center;
}

.form-container {
  background-color: #fff;
  padding: 2.5rem 2rem;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 400px;
}

@keyframes fadeIn {
  from {
    transform: translateY(40px);
    opacity: 0;
  }
  to {
    transform: translateY(0px);
    opacity: 1;
  }
}

h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #333;
}

.form-group {
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: #444;
}

input {
  width: 100%;
  padding: 0.7rem;
  border: 2px solid #ddd;
  border-radius: 10px;
  transition: border 0.3s ease, box-shadow 0.3s ease;
  font-size: 1rem;
}

input:focus {
  border-color: #2575fc;
  box-shadow: 0 0 5px #2575fc55;
  outline: none;
}

button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 10px;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  color: white;
  font-size: 1rem;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.4s ease, transform 0.2s ease;
}

button:hover {
  background: linear-gradient(to right, #2575fc, #6a11cb);
  transform: scale(1.02);
}

.error {
  color: #ff4d4f;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  display: block;
}

.success-msg {
  margin-top: 1rem;
  color: #2ecc71;
  text-align: center;
  font-weight: bold;
  font-size: 1rem;
}
