/* login.css */

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(145deg, #0d1b2a, #1b263b);
  color: #fff;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Contenedor del login */
form {
  background-color: #1e2a3a;
  padding: 30px 40px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Título */
h1 {
  color: #61dafb;
  font-size: 2rem;
  margin-bottom: 20px;
  text-shadow: 0 0 5px #1b93e0;
}

/* Inputs */
input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #0f1925;
  color: #fff;
  transition: 0.3s;
}

input[type="text"]::placeholder,
input[type="password"]::placeholder {
  color: #ccc;
}

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  box-shadow: 0 0 5px #1b93e0;
  border: 1px solid #1b93e0;
}

/* Botón */
button {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  background-color: #3498db;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #2980b9;
}

/* Mensaje de error */
.error {
  background-color: #e74c3c;
  padding: 10px 15px;
  border-radius: 6px;
  color: #fff;
  text-align: center;
  margin-bottom: 15px;
  box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
}

/* Responsive */
@media (max-width: 480px) {
  form {
    padding: 20px;
    border-radius: 10px;
  }

  h1 {
    font-size: 1.5rem;
  }
}
