/* Header transparente con logo centrado */
.header {
  position: relative;
  text-align: center;
  margin-bottom: 2em;
}

.logo {
  width: 150px;
  height: auto;
  margin-bottom: 1em; /* Separa el logo del formulario */
}

/* Fondo y cuerpo principal */
body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
  url('../images/fondo_frio.png') no-repeat center center fixed;
  background-size: cover;
}

/* Icono de la casita */
.home-icon {
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 1.5em;
  color: rgb(227, 227, 227);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.home-icon-image {
  width: 30px;
  height: 30px;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.home-icon:hover {
  background-color: rgba(0, 0, 0, 0.1);
  transform: scale(1.1);
}

/* Contenedor principal del login */
.login-container {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(224, 224, 224, 0.85);
  border-radius: 8px;
  padding: 2em 2.5em;
  width: 350px;
  text-align: center;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

h1 {
  font-size: 1.5em;
  color: #333;
  margin-bottom: 1.5em;
  font-weight: bold;
}

/* Campos del formulario */
form label {
  display: block;
  font-size: 1em;
  margin-bottom: 0.5em;
  color: #333333;
}

form input {
  width: 100%;
  padding: 0.75em;
  margin-bottom: 1em;
  border: 1px solid #CCCCCC;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

input:focus {
  outline: none;
  border-color: #0c3273;
}

/* Botón de login */
button {
  width: 100%;
  padding: 0.75em;
  font-size: 1em;
  color: white;
  background-color: #0c3273;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #0a285a;
}

/* Mensaje de error */
.error-message {
  color: red;
  margin-bottom: 1em;
  font-size: 0.9em;
  font-weight: bold;
}

/* Responsivo */
@media (max-width: 768px) {
  .login-container {
    width: 85%;
    padding: 1.5em;
  }

  h1 {
    font-size: 1.2em;
  }
}

@media (max-width: 480px) {
  .login-container {
    width: 90%;
    padding: 1em;
  }

  h1 {
    font-size: 1em;
  }
}
