body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #f2f4f8;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  background: #266b03;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  width: 320px;
  text-align: center;
}
.login-container h2 {
  margin-bottom: 10px;
}

.logo {
  width: 85%;
  margin-bottom: 20px;
  margin-top: 10px;
}

.login-form .campo-input {
  width: 85%;
  margin: 0 auto 15px auto;
  background-color: #f0f0f0;
  border-radius: 5px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 42px;
}

.login-form .campo-input input {
  border: none;
  outline: none;
  background: none;
  font-size: 15px;
  width: 100%;
  height: 100%;
  padding-left: 10px;
  color: #333;
}

.login-form .campo-input i {
  font-size: 17px;
  color: #666;
}

.campo-input:focus-within {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
}

.login-form button {
  width: 100%;
  padding: 14px;
  background-color: #af1628;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 17px;
  cursor: pointer;
}

.login-form button:hover {
  background-color: #89222e;
}

.btn-volver {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: #af1628;
  color: white;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s;
  z-index: 200;
}

.btn-volver:hover {
  background-color: #89222e;
}

.error {
  margin-top: 10px;
  color: rgb(255, 255, 255);
  font-weight: bold;
  text-align: center;
}

.btn-volver i,
.login-form button i {
  font-size: 18px;
  vertical-align: middle;
}

.contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.titulo-principal {
  font-size: 28px;
  font-weight: bold;
  color: #222;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 25px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.boton-acceso {
  width: 85%;
  margin: 0 auto 15px auto;
  background-color: #af1628;
  color: white;
  padding: 14px;
  border-radius: 5px;
  font-size: 17px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.3s;
}

.boton-acceso:hover {
  background-color: #89222e;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
    padding: 20px;
    height: auto;
  }

  .login-container {
    width: 100%;
    max-width: 400px;
    height: auto;
    padding: 20px;
    box-sizing: border-box;
  }

  .login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .campo-input {
    width: 100%;
    flex-direction: row;
  }

  .campo-input input {
    font-size: 16px;
  }

  .boton-acceso,
  button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }

  button {
    font-size: 16px;
    padding: 12px;
  }

  .logo {
    max-width: 80%;
    height: auto;
    margin: 10px 0;
  }

  .btn-volver {
    position: static;
    display: block;
    margin: 15px auto;
    width: 90%;
    max-width: 300px;
    text-align: center;
  }

  h2 {
    font-size: 18px;
    text-align: center;
  }
}
