body {
  font-family: 'Segoe UI', 'Hiragino Kaku Gothic ProN', sans-serif;
  background: linear-gradient(135deg, #14385c, #596672);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin-top: 30px;
}

/* Contenedor del formulario */
form {
  background: #fff;
  padding: 40px 50px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  width: 340px;
  animation: fadeIn 0.6s ease;
}

/* Título */
h1 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
  font-size: 24px;
  letter-spacing: 1px;
}

/* Etiquetas */
label {
  display: block;
  margin-bottom: 12px;
  color: #444;
  font-weight: 500;
}

/* Inputs */
input {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
  border-color: #3498db;
  box-shadow: 0 0 6px rgba(52,152,219,0.4);
  outline: none;
}

/* Botón */
button {
  width: 100%;
  background-color: #3498db;
  color: white;
  border: none;
  padding: 12px;
  margin-top: 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
  background-color: #2980b9;
  transform: translateY(-2px);
}

/* Mensaje de error */
.error-message {
  color: #e74c3c;
  text-align: center;
  margin-bottom: 15px;
  font-size: 14px;
}

/* Footer */
footer {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: #778899;
}

footer hr {
  border: none;
  border-top: 1px solid #d3d3d3;
  margin: 0 auto 15px auto;
  width: 50%;
}


/* Animación */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Ajustes para móviles */
@media (max-width: 480px) {

  body {
    margin-top: 0;
    padding: 20px 0;
    height: auto;
    min-height: 100vh;
  }

  form {
    width: 100%;
    max-width: 340px;
    padding: 20px 15px; /* padding reducido para evitar desbordes */
    box-sizing: border-box; /* evita que el padding achique el contenido */
  }

  input {
    width: 100%;
    box-sizing: border-box; /* evita que el padding interno lo haga crecer */
  }
}
