@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;font-family: ‘Inter’, sans,serif;
   background: linear-gradient(135deg, #3e1a4e, #1a1a1a 100%);

  color: #f2f3f5;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

/* Contenedor flotante del formulario */
.form-container {
  background-color: #2b2d31;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  width: 100%;
  max-width: 420px;
  animation: fadeIn 0.5s ease-out;
}

/* Título */
h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 600;
}

/* Descripción */
p {
  text-align: center;
  color: #b5bac1;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* Etiquetas */
label {
  display: block;
  margin-bottom: 0.4rem;
  color: #b5bac1;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Inputs */
input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 4px;
  background-color: #4b4b4b;
  color: #f2f3f5;
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: outline 0.2s ease;
}

input:focus {
  outline: 2px solid #cd5fd1;
  background-color: #1a1b1e;
}

/* Botón  */
.btn {
  width: 100%;
  padding: 0.75rem;
   background-color: #a353d4;
  color: #0e0d0d;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #a353d4;
  transform: scale(1.02);
}

.btn:active {
  transform: scale(1);
}

/* Lista de errores */
.errorlist {
  color: #ec3ff2;
  font-size: 0.8rem;
  list-style: none;
  margin-top: -0.5rem;
  margin-bottom: 1rem;
  padding-left: 0;
}

/* Animación de entrada */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 480px) {
  .form-container {
    padding: 1.5rem;
  }

  h2 {
    font-size: 1.3rem;
  }
}