/* Reset some default styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', Tahoma, sans-serif;
}

body {
  background: linear-gradient(135deg, #3a0ca3, #7209b7, #f72585);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #333;
}

.container {
  width: 100%;
  max-width: 560px;
}

.card {
  background: #fff;
  padding: 2.2rem;
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  animation: fadeIn 0.8s ease-in-out;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card h2 {
  text-align: center;
  background: linear-gradient(to right, #7209b7, #f72585);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.card h3 {
  color: #3a0ca3;
  margin-top: 1rem;
  font-size: 1.4rem;
  border-bottom: 2px solid #eee;
  padding-bottom: 4px;
}

.card input[type="text"],
.card input[type="email"],
.card input[type="password"],
.card input[type="date"],
.card input[type="file"],
.card textarea {
  width: 100%;
  padding: 0.85rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 1rem;
  background: #fafafa;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.card input:focus,
.card textarea:focus {
  border-color: #7209b7;
  box-shadow: 0 0 0 3px rgba(114, 9, 183, 0.2);
  outline: none;
  background: #fff;
}

button[type="submit"] {
  background: linear-gradient(90deg, #3a0ca3, #7209b7, #f72585);
  color: #fff;
  padding: 0.85rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(114, 9, 183, 0.5);
}

.errors {
  background: #ffe8e8;
  border: 1px solid #f27474;
  padding: 0.8rem;
  border-radius: 10px;
  color: #b10000;
  font-size: 0.95rem;
}

.card p {
  text-align: center;
  font-size: 0.95rem;
  color: #555;
}

.card a {
  color: #f72585;
  text-decoration: none;
  font-weight: 600;
}

.card a:hover {
  text-decoration: underline;
}

/* Animation */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 600px) {
  .card {
    padding: 1.5rem;
  }
}
